[*] Binary protection state of ubiupdatevol
Partial RELRO No Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function printf tear down of ubiupdatevol
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/56048-12514271.gzip_extract/gzip.uncompressed_extract/5243916-15068666.gzip_extract/gzip.uncompressed_extract/usr/sbin/ubiupdatevol @ 0x10aa0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main (char ** stream, int32_t argc, char ** argv) {
| int32_t var_0h;
| int32_t var_4h;
| int32_t var_8h;
| int32_t var_10h;
| int32_t var_10h_2;
| int32_t var_18h;
| int32_t var_18h_2;
| void * ptr;
| int32_t var_24h;
| int32_t var_28h;
| int32_t var_30h;
| int32_t var_30h_2;
| int32_t var_90h;
| int32_t var_b0h;
| int32_t var_b0h_2;
| size_t size;
| int32_t var_14ch;
| r0 = argc;
| r1 = argv;
| /* [10] -r-x section size 11724 named .text */
0x00010aa0 push {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x00010aa4 ldr sb, [pc, 0x890] | sb = "skip";
0x00010aa8 ldr sl, [pc, 0x890] | sl = "ts:h?V";
0x00010aac ldr r8, [pc, 0x890] | r8 = "ts:h?V";
0x00010ab0 sub sp, sp, 0x14c |
0x00010ab4 mov r4, r0 | r4 = r0;
0x00010ab8 mov r6, r1 | r6 = r1;
| do {
| label_0:
0x00010abc add r7, sp, 0x28 | r7 += var_28h;
0x00010ac0 mov fp, 0 |
0x00010ac4 str r7, [sp] | *(sp) = r7;
0x00010ac8 mov r3, sb | r3 = sb;
0x00010acc mov r2, sl | r2 = sl;
0x00010ad0 mov r1, r6 | r1 = r6;
0x00010ad4 mov r0, r4 | r0 = r4;
0x00010ad8 str fp, [sp, 0x90] | var_90h = fp;
0x00010adc bl 0x10920 | r0 = getopt_long ();
0x00010ae0 cmn r0, 1 |
0x00010ae4 mov r5, r0 | r5 = r0;
| if (r0 == 1) {
0x00010ae8 beq 0x10c60 | goto label_18;
| }
0x00010aec cmp r0, 0x56 |
| if (r0 == 0x56) {
0x00010af0 beq 0x10c20 | goto label_19;
| }
| if (r0 > 0x56) {
0x00010af4 bgt 0x10b70 | goto label_20;
| }
0x00010af8 cmp r0, 0x3a |
| if (r0 == 0x3a) {
0x00010afc beq 0x10c34 | goto label_21;
| }
0x00010b00 cmp r0, 0x3f |
| if (r0 == 0x3f) {
0x00010b04 beq 0x10bfc | goto label_22;
| }
0x00010b08 cmp r0, fp |
| if (r0 != fp) {
0x00010b0c bne 0x10c4c | goto label_23;
| }
0x00010b10 ldr r3, [sp, 0x28] | r3 = var_28h;
0x00010b14 cmp r3, 0 |
0x00010b18 bne 0x10abc |
| } while (r3 != 0);
0x00010b1c add r1, sp, 0x90 | r1 += var_90h;
0x00010b20 ldr r0, [r8] | r0 = *(r8);
0x00010b24 bl 0x11504 | fcn_00011504 (r0, r1);
0x00010b28 ldr r3, [pc, 0x818] | r3 = optarg;
0x00010b2c strd r0, r1, [r3, -8] | __asm ("strd r0, r1, [r3, -8]");
0x00010b30 ldr r3, [sp, 0x90] | r3 = var_90h;
0x00010b34 cmp r3, 0 |
| if (r3 != 0) {
0x00010b38 lsreq r1, r1, 0x1f | r1 >>= 0x1f;
| }
| if (r3 == 0) {
0x00010b3c movne r1, 1 | r1 = 1;
| }
0x00010b40 cmp r1, 0 |
| if (r1 == 0) {
0x00010b44 beq 0x10abc | goto label_0;
| }
0x00010b48 ldr r3, [r8] | r3 = *(r8);
0x00010b4c ldr r2, [pc, 0x7f8] | r2 = *(0x11348);
0x00010b50 ldr r1, [pc, 0x7f8] | r1 = "ubiupdatevol";
| label_1:
0x00010b54 ldr r0, [pc, 0x7f8] |
0x00010b58 ldr r0, [r0] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010b5c bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "ubiupdatevol", r2, r3)
| label_2:
0x00010b60 mvn r5, 0 | r5 = ~0;
| label_4:
0x00010b64 mov r0, r5 | r0 = r5;
0x00010b68 add sp, sp, 0x14c |
0x00010b6c pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_20:
0x00010b70 cmp r0, 0x73 |
| if (r0 != 0x73) {
0x00010b74 beq 0x10bc0 |
0x00010b78 cmp r0, 0x74 |
| if (r0 != 0x74) {
0x00010b7c beq 0x10bb0 |
0x00010b80 cmp r0, 0x68 |
| if (r0 != 0x68) {
0x00010b84 bne 0x10c4c | goto label_23;
| }
0x00010b88 ldr r1, [pc, 0x7c8] | r1 = stderr;
0x00010b8c ldr r0, [pc, 0x7c8] | r0 = "ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.";
0x00010b90 bl 0x108fc | printf ("ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.", r1)
0x00010b94 ldr r1, [pc, 0x7c4] | r1 = "_s";
0x00010b98 ldr r0, [pc, 0x7bc] | r0 = "ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.";
0x00010b9c bl 0x108fc | printf ("ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.", "_s")
0x00010ba0 ldr r0, [pc, 0x7bc] | r0 = "Usage:_ubiupdatevol__UBI_volume_node_file_name____t____s__size_____h____V_____truncate____size_size______help_____version___image_file_Example_1:_ubiupdatevol__dev_ubi0_1_fs.img___write_file__fs.img__to_UBI_volume__dev_ubi0_1Example_2:_ubiupdatevo";
0x00010ba4 bl 0x10944 | puts ("Usage:_ubiupdatevol__UBI_volume_node_file_name____t____s__size_____h____V_____truncate____size_size______help_____version___image_file_Example_1:_ubiupdatevol__dev_ubi0_1_fs.img___write_file__fs.img__to_UBI_volume__dev_ubi0_1Example_2:_ubiupdatevo");
| label_3:
0x00010ba8 mov r0, fp | r0 = fp;
0x00010bac bl 0x10a40 | exit (r0);
| }
0x00010bb0 ldr r3, [pc, 0x7b0] | r3 = "_t____truncate_____________truncate_volume__wipe_it_out__s____size_bytes__________bytes_to_read_from_input______skip_bytes__________leading_bytes_to_skip_from_input_h____help_________________print_help_message_V____version______________print_program";
0x00010bb4 mov r2, 1 | r2 = 1;
0x00010bb8 str r2, [r3] | *(r3) = r2;
0x00010bbc b 0x10abc | goto label_0;
| }
0x00010bc0 add r1, sp, 0x90 | r1 += var_90h;
0x00010bc4 ldr r0, [r8] | r0 = *(r8);
0x00010bc8 bl 0x11504 | fcn_00011504 (r0, r1);
0x00010bcc ldr r3, [pc, 0x798] | r3 = *(0x11368);
0x00010bd0 strd r0, r1, [r3] | __asm ("strd r0, r1, [r3]");
0x00010bd4 ldr r3, [sp, 0x90] | r3 = var_90h;
0x00010bd8 cmp r3, 0 |
| if (r3 != 0) {
0x00010bdc lsreq r1, r1, 0x1f | r1 >>= 0x1f;
| }
| if (r3 == 0) {
0x00010be0 movne r1, 1 | r1 = 1;
| }
0x00010be4 cmp r1, 0 |
| if (r1 == 0) {
0x00010be8 beq 0x10abc | goto label_0;
| }
0x00010bec ldr r3, [r8] | r3 = *(r8);
0x00010bf0 ldr r2, [pc, 0x754] | r2 = *(0x11348);
0x00010bf4 ldr r1, [pc, 0x774] | r1 = *(0x1136c);
0x00010bf8 b 0x10b54 | goto label_1;
| label_22:
0x00010bfc ldr r1, [pc, 0x754] | r1 = stderr;
0x00010c00 ldr r0, [pc, 0x754] | r0 = "ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.";
0x00010c04 bl 0x108fc | printf ("ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.", r1)
0x00010c08 ldr r1, [pc, 0x750] | r1 = "_s";
0x00010c0c ldr r0, [pc, 0x748] | r0 = "ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.";
0x00010c10 bl 0x108fc | printf ("ubiupdatevol_version_2.1.0___a_tool_to_write_data_to_UBI_volumes.", "_s")
0x00010c14 ldr r0, [pc, 0x748] | r0 = "Usage:_ubiupdatevol__UBI_volume_node_file_name____t____s__size_____h____V_____truncate____size_size______help_____version___image_file_Example_1:_ubiupdatevol__dev_ubi0_1_fs.img___write_file__fs.img__to_UBI_volume__dev_ubi0_1Example_2:_ubiupdatevo";
0x00010c18 bl 0x10944 | puts ("Usage:_ubiupdatevol__UBI_volume_node_file_name____t____s__size_____h____V_____truncate____size_size______help_____version___image_file_Example_1:_ubiupdatevol__dev_ubi0_1_fs.img___write_file__fs.img__to_UBI_volume__dev_ubi0_1Example_2:_ubiupdatevo");
0x00010c1c b 0x10b60 | goto label_2;
| label_19:
0x00010c20 ldr r2, [pc, 0x74c] | r2 = "_s:_error_:_bad_size:___s_";
0x00010c24 ldr r1, [pc, 0x720] | r1 = *(0x11348);
0x00010c28 ldr r0, [pc, 0x748] | r0 = "2.1.0";
0x00010c2c bl 0x108fc | printf ("2.1.0", r1, "_s:_error_:_bad_size:___s_")
0x00010c30 b 0x10ba8 | goto label_3;
| label_21:
0x00010c34 ldr r3, [pc, 0x718] | r3 = "_s:_error_:_bad_skip:___s_";
0x00010c38 ldr r2, [pc, 0x70c] | r2 = *(0x11348);
0x00010c3c ldr r1, [pc, 0x738] | r1 = "%s (mtd-utils) %s\n";
0x00010c40 ldr r0, [r3] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010c44 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%s (mtd-utils) %s\n", r2, "_s:_error_:_bad_skip:___s_")
0x00010c48 b 0x10b60 | goto label_2;
| label_23:
0x00010c4c ldr r3, [pc, 0x700] | r3 = "_s:_error_:_bad_skip:___s_";
0x00010c50 ldr r0, [pc, 0x728] | r0 = "_s:_error_:_parameter_is_missing";
0x00010c54 ldr r1, [r3] | r1 = "_s:_error_:_bad_skip:___s_";
0x00010c58 bl 0x10a64 | fputs ("_s:_error_:_parameter_is_missing", "_s:_error_:_bad_skip:___s_");
0x00010c5c b 0x10b60 | goto label_2;
| label_18:
0x00010c60 ldr r3, [pc, 0x71c] |
0x00010c64 ldr r3, [r3] | r3 = "Use__h_for_help";
0x00010c68 cmp r4, r3 |
| if (r4 != r3) {
0x00010c6c bne 0x10c88 | goto label_24;
| }
0x00010c70 ldr r2, [pc, 0x6d4] | r2 = *(0x11348);
0x00010c74 ldr r1, [pc, 0x70c] | r1 = optind;
| do {
| label_5:
0x00010c78 ldr r3, [pc, 0x6d4] | r3 = "_s:_error_:_bad_skip:___s_";
0x00010c7c ldr r0, [r3] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010c80 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", r1, r2, "_s:_error_:_bad_skip:___s_")
0x00010c84 b 0x10b64 | goto label_4;
| label_24:
0x00010c88 sub r4, r4, 2 | r4 -= 2;
0x00010c8c cmp r3, r4 |
0x00010c90 ldr r4, [pc, 0x6d0] | r4 = "_t____truncate_____________truncate_volume__wipe_it_out__s____size_bytes__________bytes_to_read_from_input______skip_bytes__________leading_bytes_to_skip_from_input_h____help_________________print_help_message_V____version______________print_program";
| if (r3 == r4) {
0x00010c94 beq 0x10cac | goto label_25;
| }
0x00010c98 ldr r2, [r4] | r2 = *(r4);
0x00010c9c cmp r2, 0 |
| if (r2 != 0) {
0x00010ca0 ldreq r2, [pc, 0x6a4] | r2 = "ubiupdatevol";
| }
| if (r2 != 0) {
0x00010ca4 ldreq r1, [pc, 0x6e0] | r1 = "_s:_error_:_specify_UBI_device_name_and_image_file_name_as_first_2_parameters__use__h_for_help_";
| }
0x00010ca8 beq 0x10c78 |
| } while (r2 == 0);
| label_25:
0x00010cac ldr r2, [r6, r3, lsl 2] | offset_0 = r3 << 2;
| r2 = *((r6 + offset_0));
0x00010cb0 add r6, r6, r3, lsl 2 | r6 += (r3 << 2);
0x00010cb4 ldr r0, [r6, 4] | r0 = *((r6 + 4));
0x00010cb8 str r2, [r4, 4] | *((r4 + 4)) = r2;
0x00010cbc cmp r0, 0 |
0x00010cc0 str r0, [r4, 8] | *((r4 + 8)) = r0;
| if (r0 == 0) {
0x00010cc4 beq 0x10d14 | goto label_26;
| }
0x00010cc8 ldr r3, [r4] | r3 = *(r4);
0x00010ccc cmp r3, 0 |
| if (r3 == 0) {
0x00010cd0 ldrne r2, [pc, 0x674] | r2 = "ubiupdatevol";
| }
| if (r3 != 0) {
0x00010cd4 ldrne r1, [pc, 0x6b4] | r1 = "%s: error!: You can't truncate and specify an image (use -h for help)\n";
| goto label_27;
| }
| if (r3 != 0) {
| label_27:
0x00010cd8 bne 0x10c78 | goto label_5;
| }
0x00010cdc ldr r1, [pc, 0x6b0] | r1 = "%s: error!: You can't truncate and specify an image (use -h for help)\n";
0x00010ce0 bl 0x10a1c | r0 = strcmp (r0, "%s: error!: You can't truncate and specify an image (use -h for help)\n");
0x00010ce4 cmp r0, 0 |
| if (r0 != 0) {
0x00010ce8 moveq r3, 1 | r3 = 1;
| }
| if (r0 != 0) {
0x00010cec streq r3, [r4, 0x120] | *((r4 + 0x120)) = r3;
| }
0x00010cf0 ldr r3, [r4, 0x120] | r3 = *((r4 + 0x120));
0x00010cf4 cmp r3, 0 |
| if (r3 == 0) {
0x00010cf8 beq 0x10d14 | goto label_26;
| }
0x00010cfc ldr r3, [pc, 0x668] | r3 = *(0x11368);
0x00010d00 ldrd r2, r3, [r3] | __asm ("ldrd r2, r3, [r3]");
0x00010d04 orrs r3, r2, r3 | r3 = r2 | r3;
| if (r3 != r2) {
0x00010d08 ldreq r2, [pc, 0x63c] | r2 = "ubiupdatevol";
| }
| if (r3 == r2) {
0x00010d0c ldreq r1, [pc, 0x684] | r1 = "_s:_error_:_file_size_must_be_specified_if_input_is_stdin";
| goto label_28;
| }
| if (r3 == r2) {
| label_28:
0x00010d10 beq 0x10c78 | goto label_5;
| }
| label_26:
0x00010d14 bl 0x11e80 | r0 = fcn_00011e80 ();
0x00010d18 subs sl, r0, 0 | sl = r0 - 0;
| if (sl != r0) {
0x00010d1c bne 0x10d84 | goto label_29;
| }
0x00010d20 bl 0x10a34 | errno_location ();
0x00010d24 ldr r6, [pc, 0x628] | r6 = "_s:_error_:_bad_skip:___s_";
0x00010d28 ldr r2, [pc, 0x61c] | r2 = *(0x11348);
0x00010d2c ldr r4, [r0] | r4 = *(r0);
0x00010d30 ldr r0, [r6] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010d34 cmp r4, 0 |
| if (r4 != 0) {
0x00010d38 bne 0x10d50 | goto label_30;
| }
0x00010d3c ldr r1, [pc, 0x658] | r1 = "_s:_error_:_file_size_must_be_specified_if_input_is_stdin";
0x00010d40 bl 0x1098c | fprintf (r0, "_s:_error_:_file_size_must_be_specified_if_input_is_stdin")
| do {
| label_6:
0x00010d44 mov r0, sl | r0 = sl;
0x00010d48 bl 0x11dac | fcn_00011dac (r0);
0x00010d4c b 0x10b64 | goto label_4;
| label_30:
0x00010d50 ldr r1, [pc, 0x648] | r1 = "%s: error!: UBI is not present in the system\n";
0x00010d54 bl 0x1098c | fprintf (r0, "%s: error!: UBI is not present in the system\n")
0x00010d58 ldr r6, [r6] | r6 = *(r6);
| label_7:
0x00010d5c mov r0, r4 | r0 = r4;
0x00010d60 bl 0x10908 | strerror (r0);
0x00010d64 ldr r3, [pc, 0x638] | r3 = "%s: error!: cannot open libubi\n";
0x00010d68 ldr r1, [pc, 0x638] | r1 = *(0x113a4);
0x00010d6c mov r2, 0xe | r2 = 0xe;
0x00010d70 str r4, [sp] | *(sp) = r4;
0x00010d74 str r0, [sp, 4] | var_4h = r0;
0x00010d78 mov r0, r6 | r0 = r6;
| label_8:
0x00010d7c bl 0x1098c | fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4)
0x00010d80 b 0x10d44 |
| } while (1);
| label_29:
0x00010d84 ldr r1, [r4, 4] | r1 = *((r4 + 4));
0x00010d88 bl 0x1266c | r0 = fcn_0001266c (r0, r1);
0x00010d8c cmp r0, 1 |
| if (r0 != 1) {
0x00010d90 bne 0x10db0 | goto label_31;
| }
0x00010d94 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00010d98 ldr r2, [pc, 0x5ac] | r2 = *(0x11348);
0x00010d9c ldr r1, [pc, 0x608] | r1 = "%*serror %d (%s)\n";
| label_9:
0x00010da0 ldr r0, [pc, 0x5ac] |
0x00010da4 ldr r0, [r0] | r0 = "_s:_error_:_bad_skip:___s_";
| do {
0x00010da8 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%*serror %d (%s)\n", r2, r3)
0x00010dac b 0x10d44 | goto label_6;
| label_31:
0x00010db0 cmp r0, 0 |
0x00010db4 ldr r6, [r4, 4] | r6 = *((r4 + 4));
| if (r0 >= 0) {
0x00010db8 bge 0x10df0 | goto label_32;
| }
0x00010dbc bl 0x10a34 | errno_location ();
0x00010dc0 ldr r7, [pc, 0x58c] | r7 = "_s:_error_:_bad_skip:___s_";
0x00010dc4 mov r3, r6 | r3 = r6;
0x00010dc8 ldr r2, [pc, 0x57c] | r2 = *(0x11348);
0x00010dcc ldr r4, [r0] | r4 = *(r0);
0x00010dd0 ldr r0, [r7] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010dd4 cmp r4, 0x13 |
| if (r4 != 0x13) {
0x00010dd8 ldreq r1, [pc, 0x5d0] | r1 = "%s: error!: \"%s\" is not an UBI volume node\n";
| }
0x00010ddc beq 0x10da8 |
| } while (r4 == 0x13);
0x00010de0 ldr r1, [pc, 0x5cc] | r1 = "%s: error!: \"%s\" is not an UBI volume node\n";
0x00010de4 bl 0x1098c | fprintf (r0, "%s: error!: \"%s\" is not an UBI volume node\n")
0x00010de8 ldr r6, [r7] | r6 = *(r7);
0x00010dec b 0x10d5c | goto label_7;
| label_32:
0x00010df0 add r2, sp, 0x90 | r2 += var_90h;
0x00010df4 mov r1, r6 | r1 = r6;
0x00010df8 mov r0, sl | r0 = sl;
0x00010dfc bl 0x1345c | r0 = fcn_0001345c (r0, r1);
0x00010e00 cmp r0, 0 |
| if (r0 == 0) {
0x00010e04 beq 0x10e50 | goto label_33;
| }
0x00010e08 bl 0x10a34 | errno_location ();
0x00010e0c ldr r7, [pc, 0x540] | r7 = "_s:_error_:_bad_skip:___s_";
0x00010e10 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00010e14 ldr r2, [pc, 0x530] | r2 = *(0x11348);
0x00010e18 ldr r1, [pc, 0x598] | r1 = "%s: error!: error while probing \"%s\"\n";
0x00010e1c ldr r6, [r0] | r6 = *(r0);
| do {
0x00010e20 ldr r0, [r7] | r0 = *(r7);
0x00010e24 bl 0x1098c | fprintf (r0, "%s: error!: error while probing \"%s\"\n", r2, r3, r4, r5, r6)
0x00010e28 mov r0, r6 | r0 = r6;
0x00010e2c ldr r4, [r7] | r4 = *(r7);
0x00010e30 bl 0x10908 | strerror (r0);
0x00010e34 str r6, [sp] | *(sp) = r6;
0x00010e38 ldr r3, [pc, 0x564] | r3 = "%s: error!: cannot open libubi\n";
0x00010e3c mov r2, 0xe | r2 = 0xe;
0x00010e40 ldr r1, [pc, 0x560] | r1 = *(0x113a4);
0x00010e44 str r0, [sp, 4] | var_4h = r0;
0x00010e48 mov r0, r4 | r0 = r4;
0x00010e4c b 0x10d7c | goto label_8;
| label_33:
0x00010e50 ldr r6, [r4] | r6 = *(r4);
0x00010e54 cmp r6, 0 |
| if (r6 == 0) {
0x00010e58 beq 0x10f18 | goto label_34;
| }
0x00010e5c mov r1, 2 | r1 = 2;
0x00010e60 ldr r0, [r4, 4] | r0 = *((r4 + 4));
0x00010e64 bl 0x10a04 | r0 = open64 ();
0x00010e68 cmn r0, 1 |
0x00010e6c mov r6, r0 | r6 = r0;
| if (r0 != 1) {
0x00010e70 bne 0x10e90 | goto label_35;
| }
0x00010e74 bl 0x10a34 | errno_location ();
0x00010e78 ldr r7, [pc, 0x4d4] | r7 = "_s:_error_:_bad_skip:___s_";
0x00010e7c ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00010e80 ldr r2, [pc, 0x4c4] | r2 = *(0x11348);
0x00010e84 ldr r1, [pc, 0x530] | r1 = "%s: error!: cannot get information about UBI volume \"%s\"\n";
0x00010e88 ldr r6, [r0] | r6 = *(r0);
0x00010e8c b 0x10e20 |
| } while (1);
| label_35:
0x00010e90 mov r1, r0 | r1 = r0;
0x00010e94 mov r2, 0 | r2 = 0;
0x00010e98 mov r3, 0 | r3 = 0;
0x00010e9c mov r0, sl | r0 = sl;
0x00010ea0 bl 0x12bfc | r0 = fcn_00012bfc (r0);
0x00010ea4 cmp r0, 0 |
| if (r0 != 0) {
0x00010ea8 beq 0x10f00 |
0x00010eac bl 0x10a34 | errno_location ();
0x00010eb0 ldr r8, [pc, 0x49c] | r8 = "_s:_error_:_bad_skip:___s_";
0x00010eb4 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00010eb8 ldr r2, [pc, 0x48c] | r2 = *(0x11348);
0x00010ebc ldr r1, [pc, 0x4fc] | r1 = "%s: error!: cannot open \"%s\"\n";
0x00010ec0 ldr r7, [r0] | r7 = *(r0);
0x00010ec4 ldr r0, [r8] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010ec8 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%s: error!: cannot open \"%s\"\n", r2, r3)
0x00010ecc mov r0, r7 | r0 = r7;
0x00010ed0 ldr r4, [r8] | r4 = "_s:_error_:_bad_skip:___s_";
0x00010ed4 bl 0x10908 | strerror (r0);
0x00010ed8 str r7, [sp] | *(sp) = r7;
0x00010edc ldr r3, [pc, 0x4c0] | r3 = "%s: error!: cannot open libubi\n";
0x00010ee0 mov r2, 0xe | r2 = 0xe;
0x00010ee4 ldr r1, [pc, 0x4bc] | r1 = *(0x113a4);
0x00010ee8 str r0, [sp, 4] | var_4h = r0;
0x00010eec mov r0, r4 | r0 = r4;
0x00010ef0 bl 0x1098c | fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n")
0x00010ef4 mov r0, r6 | r0 = r6;
0x00010ef8 bl 0x10a88 | close (r0);
0x00010efc b 0x10d44 | goto label_6;
| }
0x00010f00 mov r0, r6 | r0 = r6;
0x00010f04 bl 0x10a88 | close (r0);
| label_12:
0x00010f08 mov r0, sl | r0 = sl;
0x00010f0c bl 0x11dac | fcn_00011dac (r0);
0x00010f10 mov r5, 0 | r5 = 0;
0x00010f14 b 0x10b64 | goto label_4;
| label_34:
0x00010f18 ldr r8, [sp, 0xbc] | r8 = size;
0x00010f1c mov r0, r8 | r0 = r8;
0x00010f20 bl 0x10950 | r0 = malloc (r0);
0x00010f24 subs r3, r0, 0 | r3 = r0 - 0;
0x00010f28 str r3, [sp, 0x20] | ptr = r3;
| if (r3 != r0) {
0x00010f2c moveq r3, r8 | r3 = r8;
| }
| if (r3 != r0) {
0x00010f30 ldreq r2, [pc, 0x414] | r2 = "ubiupdatevol";
| }
| if (r3 == r0) {
0x00010f34 ldreq r1, [pc, 0x488] | r1 = "_s:_error_:_cannot_allocate__d_bytes_of_memory";
| goto label_36;
| }
| if (r3 == r0) {
| label_36:
0x00010f38 beq 0x10da0 | goto label_9;
| }
0x00010f3c ldr r8, [pc, 0x428] | r8 = *(0x11368);
0x00010f40 ldrd r2, r3, [r8] | __asm ("ldrd r2, r3, [r8]");
0x00010f44 strd r2, r3, [sp, 0x18] | __asm ("strd r2, r3, [var_18h]");
0x00010f48 orrs r3, r2, r3 | r3 = r2 | r3;
| if (r3 != r2) {
0x00010f4c bne 0x10fa0 | goto label_37;
| }
0x00010f50 ldr sb, [r4, 8] | sb = *((r4 + 8));
0x00010f54 mov r1, r7 | r1 = r7;
0x00010f58 mov r0, sb | r0 = sb;
0x00010f5c bl 0x10914 | r0 = stat64 ();
0x00010f60 cmp r0, 0 |
| if (r0 >= 0) {
0x00010f64 bge 0x10f8c | goto label_38;
| }
0x00010f68 ldr r0, [pc, 0x3e4] |
0x00010f6c mov r3, sb | r3 = sb;
0x00010f70 ldr r2, [pc, 0x3d4] | r2 = *(0x11348);
0x00010f74 ldr r1, [pc, 0x44c] | r1 = "_s:_error_:_cannot_allocate__d_bytes_of_memory";
0x00010f78 ldr r0, [r0] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010f7c bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "_s:_error_:_cannot_allocate__d_bytes_of_memory", r2, r3)
| do {
| label_10:
0x00010f80 ldr r0, [sp, 0x20] | r0 = ptr;
0x00010f84 bl 0x10a94 | free (r0);
0x00010f88 b 0x10d44 | goto label_6;
| label_38:
0x00010f8c ldrd r2, r3, [r7, 0x30] | __asm ("ldrd r2, r3, [var_30h]");
0x00010f90 ldrd r0, r1, [r8, 8] | __asm ("ldrd r0, r1, [r8, 8]");
0x00010f94 subs r2, r2, r0 | r2 -= r0;
0x00010f98 sbc r3, r3, r1 | __asm ("sbc r3, r3, r1");
0x00010f9c strd r2, r3, [sp, 0x18] | __asm ("strd r2, r3, [var_18h]");
| label_37:
0x00010fa0 ldr r0, [r4, 4] | r0 = *((r4 + 4));
0x00010fa4 ldrd r2, r3, [sp, 0xb0] | __asm ("ldrd r2, r3, [var_b0h]");
0x00010fa8 ldrd r8, sb, [sp, 0x18] | __asm ("ldrd r8, sb, [var_18h]");
0x00010fac cmp r2, r8 |
0x00010fb0 sbcs r1, r3, sb | __asm ("sbcs r1, r3, sb");
| if (r2 >= r8) {
0x00010fb4 bge 0x10fe8 | goto label_39;
| }
0x00010fb8 str r0, [sp, 8] | var_8h = r0;
0x00010fbc ldr r0, [pc, 0x390] |
0x00010fc0 strd r2, r3, [sp, 0x10] | __asm ("strd r2, r3, [var_10h]");
0x00010fc4 ldr r1, [pc, 0x400] | r1 = "_s:_error_:_stat_failed_on___s_";
0x00010fc8 mov r2, r8 | r2 = r8;
0x00010fcc mov r3, sb | r3 = sb;
0x00010fd0 strd r2, r3, [sp] | __asm ("strd r2, r3, [sp]");
0x00010fd4 ldr r2, [pc, 0x370] | r2 = *(0x11348);
0x00010fd8 ldr r3, [r4, 8] | r3 = *((r4 + 8));
0x00010fdc ldr r0, [r0] | r0 = "_s:_error_:_bad_skip:___s_";
0x00010fe0 bl 0x1098c | fprintf (r0, "_s:_error_:_stat_failed_on___s_", r2, r3)
0x00010fe4 b 0x10f80 |
| } while (1);
| label_39:
0x00010fe8 mov r1, 2 | r1 = 2;
0x00010fec bl 0x10a04 | r0 = open64 ();
0x00010ff0 cmn r0, 1 |
0x00010ff4 mov r7, r0 | r7 = r0;
| if (r0 == 1) {
0x00010ff8 bne 0x11048 |
0x00010ffc bl 0x10a34 | errno_location ();
0x00011000 ldr r7, [pc, 0x34c] | r7 = "_s:_error_:_bad_skip:___s_";
0x00011004 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00011008 ldr r2, [pc, 0x33c] | r2 = *(0x11348);
0x0001100c ldr r1, [pc, 0x3bc] | r1 = "%s: error!: \"%s\" (size %lld) will not fit volume \"%s\" (size %lld)\n";
0x00011010 ldr r6, [r0] | r6 = *(r0);
0x00011014 ldr r0, [r7] | r0 = "_s:_error_:_bad_skip:___s_";
0x00011018 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%s: error!: \"%s\" (size %lld) will not fit volume \"%s\" (size %lld)\n", r2, r3, r4, r5, r6)
0x0001101c mov r0, r6 | r0 = r6;
0x00011020 ldr r4, [r7] | r4 = "_s:_error_:_bad_skip:___s_";
0x00011024 bl 0x10908 | strerror (r0);
0x00011028 str r6, [sp] | *(sp) = r6;
0x0001102c ldr r3, [pc, 0x370] | r3 = "%s: error!: cannot open libubi\n";
0x00011030 mov r2, 0xe | r2 = 0xe;
0x00011034 ldr r1, [pc, 0x36c] | r1 = *(0x113a4);
0x00011038 str r0, [sp, 4] | var_4h = r0;
0x0001103c mov r0, r4 | r0 = r4;
0x00011040 bl 0x1098c | fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4, r5, r6)
0x00011044 b 0x10f80 | goto label_10;
| }
0x00011048 ldr r1, [r4, 0x120] | r1 = *((r4 + 0x120));
0x0001104c cmp r1, 0 |
| if (r1 == 0) {
0x00011050 beq 0x11084 | goto label_40;
| }
0x00011054 ldr r3, [pc, 0x2ec] | r3 = optarg;
0x00011058 ldrd r2, r3, [r3, -8] | __asm ("ldrd r2, r3, [r3, -8]");
0x0001105c orrs r3, r2, r3 | r3 = r2 | r3;
| if (r3 == r2) {
0x00011060 beq 0x11170 | goto label_41;
| }
0x00011064 ldr r3, [pc, 0x2e8] | r3 = "_s:_error_:_bad_skip:___s_";
0x00011068 ldr r2, [pc, 0x2dc] | r2 = *(0x11348);
0x0001106c ldr r1, [pc, 0x360] | r1 = "_s:_error_:_cannot_open_UBI_volume___s_";
0x00011070 ldr r0, [r3] | r0 = "_s:_error_:_bad_skip:___s_";
0x00011074 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "_s:_error_:_cannot_open_UBI_volume___s_", r2, "_s:_error_:_bad_skip:___s_")
| do {
| label_11:
0x00011078 mov r0, r7 | r0 = r7;
0x0001107c bl 0x10a88 | close (r0);
0x00011080 b 0x10f80 | goto label_10;
| label_40:
0x00011084 ldr r0, [r4, 8] | r0 = *((r4 + 8));
0x00011088 bl 0x10a04 | r0 = open64 ();
0x0001108c cmn r0, 1 |
0x00011090 mov r6, r0 | r6 = r0;
| if (r0 != 1) {
0x00011094 bne 0x110e4 | goto label_42;
| }
0x00011098 bl 0x10a34 | errno_location ();
0x0001109c ldr r8, [pc, 0x2b0] | r8 = "_s:_error_:_bad_skip:___s_";
0x000110a0 ldr r3, [r4, 8] | r3 = *((r4 + 8));
0x000110a4 ldr r2, [pc, 0x2a0] | r2 = *(0x11348);
0x000110a8 ldr r1, [pc, 0x30c] | r1 = "%s: error!: cannot get information about UBI volume \"%s\"\n";
0x000110ac ldr r6, [r0] | r6 = *(r0);
0x000110b0 ldr r0, [r8] | r0 = "_s:_error_:_bad_skip:___s_";
0x000110b4 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%s: error!: cannot get information about UBI volume \"%s\"\n", r2, r3, r4, r5, r6)
0x000110b8 mov r0, r6 | r0 = r6;
0x000110bc ldr r4, [r8] | r4 = "_s:_error_:_bad_skip:___s_";
0x000110c0 bl 0x10908 | strerror (r0);
0x000110c4 str r6, [sp] | *(sp) = r6;
0x000110c8 ldr r3, [pc, 0x2d4] | r3 = "%s: error!: cannot open libubi\n";
0x000110cc mov r2, 0xe | r2 = 0xe;
0x000110d0 ldr r1, [pc, 0x2d0] | r1 = *(0x113a4);
0x000110d4 str r0, [sp, 4] | var_4h = r0;
0x000110d8 mov r0, r4 | r0 = r4;
0x000110dc bl 0x1098c | fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4, r5, r6)
0x000110e0 b 0x11078 |
| } while (1);
| label_42:
0x000110e4 ldr r3, [pc, 0x25c] | r3 = optarg;
0x000110e8 ldrd r8, sb, [r3, -8] | __asm ("ldrd r8, sb, [r3, -8]");
0x000110ec orrs r3, r8, sb | r3 = r8 | sb;
| if (r3 != r8) {
0x000110f0 beq 0x11170 |
0x000110f4 mov r3, 1 | r3 = 1;
0x000110f8 str r3, [sp] | *(sp) = r3;
0x000110fc mov r2, r8 | r2 = r8;
0x00011100 mov r3, sb | r3 = sb;
0x00011104 bl 0x10a58 | lseek64 ();
0x00011108 mvn r3, 0 | r3 = ~0;
0x0001110c mvn r2, 0 | r2 = ~0;
0x00011110 cmp r1, r3 |
0x00011114 cmpeq r0, r2 | __asm ("cmpeq r0, r2");
| if (r1 != r3) {
0x00011118 bne 0x11170 | goto label_41;
| }
0x0001111c bl 0x10a34 | errno_location ();
0x00011120 ldr fp, [pc, 0x22c] | fp = obj.stderr;
0x00011124 ldr r2, [pc, 0x220] | r2 = *(0x11348);
0x00011128 ldr r1, [pc, 0x2a8] | r1 = "%s: error!: seeking stdin not supported\n";
0x0001112c ldr r4, [r0] | r4 = *(r0);
0x00011130 strd r8, sb, [sp] | __asm ("strd r8, sb, [sp]");
0x00011134 ldr r0, [fp] | r0 = *(fp);
0x00011138 bl 0x1098c | fprintf (r0, "%s: error!: seeking stdin not supported\n", r2, r3, r4)
0x0001113c mov r0, r4 | r0 = r4;
0x00011140 ldr r8, [fp] | r8 = *(fp);
0x00011144 bl 0x10908 | strerror (r0);
0x00011148 ldr r3, [pc, 0x254] | r3 = "%s: error!: cannot open libubi\n";
0x0001114c ldr r1, [pc, 0x254] | r1 = *(0x113a4);
0x00011150 mov r2, 0xe | r2 = 0xe;
0x00011154 str r4, [sp] | *(sp) = r4;
0x00011158 str r0, [sp, 4] | var_4h = r0;
0x0001115c mov r0, r8 | r0 = r8;
| label_13:
0x00011160 bl 0x1098c | fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4)
| label_15:
0x00011164 mov r0, r6 | r0 = r6;
0x00011168 bl 0x10a88 | close (r0);
0x0001116c b 0x11078 | goto label_11;
| }
| label_41:
0x00011170 ldrd r2, r3, [sp, 0x18] | __asm ("ldrd r2, r3, [var_18h]");
0x00011174 mov r1, r7 | r1 = r7;
0x00011178 mov r0, sl | r0 = sl;
0x0001117c bl 0x12bfc | r0 = fcn_00012bfc (r0);
0x00011180 cmp r0, 0 |
| if (r0 == 0) {
0x00011184 beq 0x11218 | goto label_17;
| }
0x00011188 bl 0x10a34 | errno_location ();
0x0001118c ldr sb, [pc, 0x1c0] | sb = obj.stderr;
0x00011190 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00011194 ldr r2, [pc, 0x1b0] | r2 = *(0x11348);
0x00011198 ldr r1, [pc, 0x23c] | r1 = "_s:_error_:_lseek_input_by__lld_failed";
0x0001119c ldr r8, [r0] | r8 = *(r0);
0x000111a0 ldr r0, [sb] | r0 = *(sb);
0x000111a4 bl 0x1098c | fprintf (r0, "_s:_error_:_lseek_input_by__lld_failed", r2, r3)
0x000111a8 ldr r4, [sb] | r4 = *(sb);
| label_14:
0x000111ac mov r0, r8 | r0 = r8;
0x000111b0 bl 0x10908 | strerror (r0);
0x000111b4 str r8, [sp] | *(sp) = r8;
0x000111b8 str r0, [sp, 4] | var_4h = r0;
0x000111bc b 0x11270 | goto label_43;
| do {
0x000111c0 ldr r8, [sp, 0xbc] | r8 = size;
0x000111c4 ldrd r2, r3, [sp, 0x18] | __asm ("ldrd r2, r3, [var_18h]");
0x000111c8 asr sb, r8, 0x1f | sb = r8 >> 0x1f;
0x000111cc cmp r2, r8 |
0x000111d0 sbcs r3, r3, sb | __asm ("sbcs r3, r3, sb");
0x000111d4 ldrdlt r8, sb, [sp, 0x18] | __asm ("ldrdlt r8, sb, [var_18h]");
0x000111d8 ldr r1, [sp, 0x20] | r1 = ptr;
0x000111dc mov r2, r8 | r2 = r8;
0x000111e0 mov r0, r6 | r0 = r6;
0x000111e4 bl 0x109a4 | r0 = read (r0, r1, r2);
0x000111e8 subs r3, r0, 0 | r3 = r0 - 0;
0x000111ec str r3, [sp, 0x24] | var_24h = r3;
| if (r3 > r0) {
0x000111f0 bgt 0x11284 | goto label_44;
| }
0x000111f4 bl 0x10a34 | errno_location ();
0x000111f8 ldr r3, [pc, 0x154] | r3 = "_s:_error_:_bad_skip:___s_";
0x000111fc ldr fp, [r0] | fp = *(r0);
0x00011200 ldr r0, [r3] | r0 = "_s:_error_:_bad_skip:___s_";
0x00011204 cmp fp, 4 |
| if (fp != 4) {
0x00011208 bne 0x11240 | goto label_45;
| }
0x0001120c ldr r2, [pc, 0x138] | r2 = *(0x11348);
0x00011210 ldr r1, [pc, 0x1c8] | r1 = "_s:_error_:_cannot_start_volume___s__update";
0x00011214 bl 0x1098c | fprintf (r0, "_s:_error_:_cannot_start_volume___s__update", r2)
| label_17:
0x00011218 ldrd r2, r3, [sp, 0x18] | __asm ("ldrd r2, r3, [var_18h]");
0x0001121c orrs r3, r2, r3 | r3 = r2 | r3;
0x00011220 bne 0x111c0 |
| } while (r3 != r2);
0x00011224 mov r0, r6 | r0 = r6;
0x00011228 bl 0x10a88 | close (r0);
0x0001122c mov r0, r7 | r0 = r7;
0x00011230 bl 0x10a88 | close (r0);
0x00011234 ldr r0, [sp, 0x20] | r0 = ptr;
0x00011238 bl 0x10a94 | free (r0);
0x0001123c b 0x10f08 | goto label_12;
| label_45:
0x00011240 ldr r3, [r4, 8] | r3 = *((r4 + 8));
0x00011244 ldr r2, [pc, 0x100] | r2 = *(0x11348);
0x00011248 str r3, [sp] | *(sp) = r3;
0x0001124c ldr r1, [pc, 0x190] | r1 = "%s: warning!: do not interrupt me!\n";
0x00011250 mov r3, r8 | r3 = r8;
0x00011254 bl 0x1098c | fprintf (r0, "%s: warning!: do not interrupt me!\n", r2, r3)
0x00011258 ldr r3, [pc, 0xf4] | r3 = "_s:_error_:_bad_skip:___s_";
0x0001125c mov r0, fp | r0 = fp;
0x00011260 ldr r4, [r3] | r4 = "_s:_error_:_bad_skip:___s_";
0x00011264 bl 0x10908 | strerror (r0);
0x00011268 str fp, [sp] | *(sp) = fp;
0x0001126c str r0, [sp, 4] | var_4h = r0;
| label_43:
0x00011270 ldr r3, [pc, 0x12c] | r3 = "%s: error!: cannot open libubi\n";
0x00011274 mov r2, 0xe | r2 = 0xe;
0x00011278 ldr r1, [pc, 0x128] | r1 = *(0x113a4);
0x0001127c mov r0, r4 | r0 = r4;
0x00011280 b 0x11160 | goto label_13;
| label_44:
0x00011284 ldr sb, [sp, 0x20] | sb = ptr;
0x00011288 ldr fp, [sp, 0x24] | fp = var_24h;
| do {
| label_16:
0x0001128c mov r2, fp | r2 = fp;
0x00011290 mov r1, sb | r1 = sb;
0x00011294 mov r0, r7 | r0 = r7;
0x00011298 bl 0x10980 | r0 = write (r0, r1, r2);
0x0001129c cmp r0, 0 |
| if (r0 >= 0) {
0x000112a0 bge 0x112f0 | goto label_46;
| }
0x000112a4 bl 0x10a34 | errno_location ();
0x000112a8 ldr r3, [pc, 0xa4] | r3 = "_s:_error_:_bad_skip:___s_";
0x000112ac ldr r8, [r0] | r8 = *(r0);
0x000112b0 ldr r0, [r3] | r0 = "_s:_error_:_bad_skip:___s_";
0x000112b4 cmp r8, 4 |
| if (r8 != 4) {
0x000112b8 bne 0x112cc | goto label_47;
| }
0x000112bc ldr r2, [pc, 0x88] | r2 = *(0x11348);
0x000112c0 ldr r1, [pc, 0x118] | r1 = "_s:_error_:_cannot_start_volume___s__update";
0x000112c4 bl 0x1098c | fprintf (r0, "_s:_error_:_cannot_start_volume___s__update", r2)
0x000112c8 b 0x1128c |
| } while (1);
| label_47:
0x000112cc ldr r2, [r4, 4] | r2 = *((r4 + 4));
0x000112d0 mov r3, fp | r3 = fp;
0x000112d4 str r2, [sp] | *(sp) = r2;
0x000112d8 ldr r1, [pc, 0x108] | r1 = "%s: error!: cannot read %d bytes from \"%s\"\n";
0x000112dc ldr r2, [pc, 0x68] | r2 = *(0x11348);
0x000112e0 bl 0x1098c | fprintf (r0, "%s: error!: cannot read %d bytes from \"%s\"\n", r2, r3)
0x000112e4 ldr r3, [pc, 0x68] | r3 = "_s:_error_:_bad_skip:___s_";
0x000112e8 ldr r4, [r3] | r4 = "_s:_error_:_bad_skip:___s_";
0x000112ec b 0x111ac | goto label_14;
| if (r8 == 4) {
| label_46:
0x000112f0 bne 0x11318 |
0x000112f4 ldr r2, [r4, 4] | r2 = *((r4 + 4));
0x000112f8 ldr r0, [pc, 0x54] |
0x000112fc str r2, [sp] | *(sp) = r2;
0x00011300 mov r3, fp | r3 = fp;
0x00011304 ldr r2, [pc, 0x40] | r2 = *(0x11348);
0x00011308 ldr r1, [pc, 0xd8] | r1 = "%s: error!: cannot read %d bytes from \"%s\"\n";
0x0001130c ldr r0, [r0] | r0 = "_s:_error_:_bad_skip:___s_";
0x00011310 bl 0x1098c | fprintf ("_s:_error_:_bad_skip:___s_", "%s: error!: cannot read %d bytes from \"%s\"\n", r2, r3)
0x00011314 b 0x11164 | goto label_15;
| }
0x00011318 subs fp, fp, r0 |
0x0001131c add sb, sb, r0 | sb += r0;
| if (fp != fp) {
0x00011320 bne 0x1128c | goto label_16;
| }
0x00011324 ldrd r2, r3, [sp, 0x18] | __asm ("ldrd r2, r3, [var_18h]");
0x00011328 ldr r1, [sp, 0x24] | r1 = var_24h;
0x0001132c subs r2, r2, r1 | r2 -= r1;
0x00011330 sbc r3, r3, r1, asr 31 | __asm ("sbc r3, r3, r1, asr 31");
0x00011334 strd r2, r3, [sp, 0x18] | __asm ("strd r2, r3, [var_18h]");
0x00011338 b 0x11218 | goto label_17;
| }
[*] Function printf used 32 times ubiupdatevol