Function at 0x4024e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20f4
call fcn.004053b0
mov eax, dword [0x409004]
xor eax, esp
mov dword [esp + 0x20f0], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x44], 0
call fcn.00401b20
xor eax, eax
cmp dword [0x409488], eax
setne al
lea eax, [eax*2 + 2]
push eax
push dword [0x409484]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.imobiledevice.dll_idevice_new_with_options]
add esp, 0xc
test eax, eax
je 0x4025db
mov eax, dword [0x409484]
test eax, eax
je 0x4025aa
push eax
push str.No_device_found_with_udid__s._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20f0]
xor ecx, esp
call fcn.0040470b
mov esp, ebp
pop ebp
ret
push str.No_device_found._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20f0]
xor ecx, esp
call fcn.0040470b
mov esp, ebp
pop ebp
ret
cmp dword [0x409484], 0
jne 0x4025f6
push 0x409484
push dword [esp + 0x44]
call dword [sym.imp.imobiledevice.dll_idevice_get_udid]
add esp, 8
push str.ideviceinstaller
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
add esp, 0xc
test eax, eax
je 0x402632
push str.Could_not_connect_to_lockdownd._Exiting._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
cmp dword [0x4094ac], 0
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
mov ebx, dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
je 0x402710
lea eax, [esp + 0x1c]
push eax
push str.com.apple.mobile.notification_proxy
push dword [esp + 0x34]
call edi
add esp, 0xc
test eax, eax
jne 0x402867
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402867
lea ecx, [esp + 0x5c]
push ecx
push eax
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_np_client_new]
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402695
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4026c2
push str.Could_not_connect_to_notification_proxy__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push 0
push 0x401340
push dword [esp + 0x64]
call dword [sym.imp.imobiledevice.dll_np_set_notify_callback]
add esp, 0xc
mov dword [esp + 0xe8], str.com.apple.mobile.application_installed
lea eax, [esp + 0xe8]
mov dword [esp + 0xec], str.com.apple.mobile.application_uninstalled
mov dword [esp + 0xf0], 0
push eax
push dword [esp + 0x60]
call dword [sym.imp.imobiledevice.dll_np_observe_notifications]
add esp, 8
nop dword [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40271e
push eax
call ebx
add esp, 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push str.com.apple.mobile.installation_proxy
push dword [esp + 0x34]
call edi
add esp, 0xc
test eax, eax
jne 0x404621
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404621
lea ecx, [esp + 0x3c]
push ecx
push eax
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_instproxy_client_new]
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402770
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x404600
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
push dword [0x4094b0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4094a8]
add esp, 0xc
mov dword [0x4094b0], 0
mov dword [0x409498], 0
cmp eax, 1
je 0x404319
cmp eax, 2
je 0x403484
cmp eax, 4
je 0x403484
cmp eax, 3
je 0x403425
cmp eax, 5
je 0x403178
cmp eax, 6
jne 0x40310b
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x30], eax
xor edi, edi
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [0x40948c]
test eax, eax
je 0x4029b9
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
push 0x406cd4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
je 0x4029b3
nop dword [eax]
mov ecx, str.uninstall
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402888
test dl, dl
je 0x402863
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402888
add eax, 2
add ecx, 2
test dl, dl
jne 0x402847
xor eax, eax
jmp 0x40288d
push str.Could_not_start_com.apple.mobile.notification_proxy__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40289a
mov dword [esp + 0x14], eax
jmp 0x402987
mov ecx, str.app_only
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4028c1
test dl, dl
je 0x4028bd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4028c1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4028a1
xor eax, eax
jmp 0x4028c6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028d4
lea edi, [eax + 1]
xor ebx, ebx
jmp 0x402987
mov ecx, str.docs_only
mov eax, esi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402900
test dl, dl
je 0x4028fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402900
add eax, 2
add ecx, 2
test dl, dl
jne 0x4028e0
xor eax, eax
jmp 0x402905
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402910
lea ebx, [eax + 1]
xor edi, edi
jmp 0x402987
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402915
sub ecx, edx
cmp ecx, 5
jbe 0x40294b
push 5
push str.copy
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40294b
lea eax, [esi + 5]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x30], eax
jmp 0x402987
mov eax, str.remove
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402970
test cl, cl
je 0x40296c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402970
add esi, 2
add eax, 2
test cl, cl
jne 0x402950
xor eax, eax
jmp 0x402975
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0xc]
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [esp + 0xc], ecx
push 0x406cd4
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402840
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4029be
test edi, edi
jne 0x4029be
test ebx, ebx
je 0x402a0a
jmp 0x4029be
mov esi, dword [esp + 0x14]
jmp 0x4029be
mov esi, 1
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_new]
mov dword [esp + 0x38], eax
test esi, esi
je 0x4029e3
push 0
push 1
push str.SkipUninstall
push eax
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov eax, dword [esp + 0x48]
add esp, 0x10
test edi, edi
je 0x4029f0
push 0
push str.ApplicationOnly
jmp 0x4029fb
test ebx, ebx
je 0x402a0a
push 0
push str.DocumentsOnly
push str.ArchiveType
push eax
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x402ab7
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x402ea1
mov eax, dword [esp + 0x76]
and eax, 0xf000
cmp eax, 0x4000
jne 0x402e74
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402a53
push eax
call dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
add esp, 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push str.com.apple.afc
push dword [esp + 0x34]
call dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
add esp, 0xc
test eax, eax
jne 0x402e4b
cmp dword [esp + 0x1c], eax
je 0x402e4b
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_afc_client_new]
add esp, 0xc
test eax, eax
jne 0x402e29
mov edi, dword [esp + 0x38]
push 0
push 0x401350
push edi
push dword [0x4094a0]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_archive]
add esp, 0x14
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
xor eax, eax
mov dword [0x409480], 1
add esp, 4
test esi, esi
sete al
mov dword [0x409498], eax
call fcn.00401a00
test ebx, ebx
je 0x402f27
cmp dword [0x40949c], 0
jne 0x4030ec
push dword [0x4094a0]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ebx
xorps xmm0, xmm0
push str._s__s.ipa
push eax
movlpd qword [esp + 0xf8], xmm0
call fcn.004012a0
add esp, 0x10
test eax, eax
js 0x4030e2
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov esi, dword [esp + 0x1c]
add esp, 4
push 0x407590
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4030ad
push dword [0x4094a0]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push str.ApplicationArchives
push str._s__s.zip
push eax
call fcn.004012a0
add esp, 0x10
test eax, eax
js 0x40309a
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.imobiledevice.dll_afc_get_file_info]
add esp, 0xc
test eax, eax
jne 0x403057
mov edi, dword [esp + 0x10]
test edi, edi
je 0x403057
xor esi, esi
cmp dword [edi], esi
je 0x402c30
mov eax, dword [edi]
mov ecx, str.st_size
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402c05
test dl, dl
je 0x402c01
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402c05
add eax, 2
add ecx, 2
test dl, dl
jne 0x402be5
xor eax, eax
jmp 0x402c0a
sbb eax, eax
or eax, 1
test eax, eax
je 0x402c1b
mov eax, dword [edi + esi*4 + 8]
add esi, 2
test eax, eax
jne 0x402be0
jmp 0x402c30
push dword [edi + esi*4 + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], eax
xor esi, esi
cmp dword [edi], esi
je 0x402c50
mov eax, dword [edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [esp + 0x14]
lea esi, [esi + 1]
add esp, 4
mov eax, dword [edi + esi*4]
test eax, eax
jne 0x402c38
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
add esp, 4
cmp dword [esp + 0x14], 0
je 0x403017
lea eax, [esp + 0xe8]
push eax
push 1
push ebx
push dword [esp + 0x30]
call dword [sym.imp.imobiledevice.dll_afc_file_open]
add esp, 0x10
test eax, eax
jne 0x402fd0
mov eax, dword [esp + 0xe8]
or eax, dword [esp + 0xec]
je 0x402fd0
mov esi, dword [esp + 0x18]
push esi
push ebx
push str.Copying__s______s...
call fcn.00401040
add esp, 0xc
push ebx
call edi
add esp, 4
push esi
call edi
mov edi, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x28], 0
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x28]
push eax
push 0x2000
lea eax, [esp + 0x100]
push eax
push dword [esp + 0xf8]
push dword [esp + 0xf8]
push dword [esp + 0x38]
call dword [sym.imp.imobiledevice.dll_afc_file_read]
add esp, 0x18
test eax, eax
jne 0x402e09
mov eax, dword [esp + 0x28]
test eax, eax
je 0x402d36
push edi
push eax
lea eax, [esp + 0x100]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x28]
cmp ecx, eax
jne 0x402de8
add esi, ecx
test eax, eax
jne 0x402cd0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push dword [esp + 0xec]
push dword [esp + 0xec]
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_afc_file_close]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push str.DONE._n
call fcn.00401040
mov eax, dword [esp + 0x18]
add esp, 4
cmp esi, eax
jne 0x402ef4
cmp dword [esp + 0xc], 0
je 0x402f27
push dword [0x4094a0]
push str.Removing__s_n
call fcn.00401040
push dword [0x40948c]
mov dword [0x4094a8], 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
mov dword [0x40948c], 0
lea eax, [esp + 0x2c]
push str.ideviceinstaller
push eax
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
add esp, 0xc
test eax, eax
jne 0x402eda
mov ebx, dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
jmp 0x402710
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push str.Error_when_writing__d_bytes_to_local_file__n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
jmp 0x402d3c
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.AFC_Read_error__n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 8
jmp 0x402d3c
push str.Could_not_connect_to_AFC__n
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call eax
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.Could_not_start_com.apple.afc__n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
or ebx, 0xffffffff
jmp 0x402f29
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push ebx
push str.ERROR:__s_is_not_a_directory_as_expected._n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push ebx
push str.ERROR:_stat:__s:__s_n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
or ebx, 0xffffffff
jmp 0x402f29
push str.Could_not_connect_to_lockdownd._Exiting._n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push esi
push eax
push str.WARNING:_remote_and_local_file_sizes_dont_match___d____d__n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
cmp dword [esp + 0xc], 0
je 0x402f27
push str.NOTE:_archive_file_will_NOT_be_removed_from_device_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 8
xor ebx, ebx
mov esi, dword [sym.imp.imobiledevice.dll_afc_client_free]
push dword [esp + 0x5c]
call dword [sym.imp.imobiledevice.dll_np_client_free]
add esp, 4
push dword [esp + 0x3c]
call dword [sym.imp.imobiledevice.dll_instproxy_client_free]
add esp, 4
push dword [esp + 0x24]
call esi
add esp, 4
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
push dword [esp + 0x40]
call dword [sym.imp.imobiledevice.dll_idevice_free]
add esp, 4
push dword [0x409484]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [0x4094a0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [0x40948c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x44]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x40949c], 0
je 0x402fb9
test ebx, ebx
mov eax, 0x80
cmove ebx, eax
mov ecx, dword [esp + 0x20fc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040470b
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebx
push str.ERROR:_could_not_open__s_on_device_for_reading__n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov esi, dword [esp + 0x1c]
add esp, 4
push esi
call ebx
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.Hm..._remote_file_length_could_not_be_determined._Cannot_copy._n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov esi, dword [esp + 0x1c]
add esp, 4
push esi
call ebx
add esp, 4
jmp 0x402f27
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push ebx
push str.ERROR_getting_AFC_file_info_for__s_on_device__n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
mov edi, dword [esp + 0x2c]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
add esp, 4
push esi
call ebx
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.Out_of_memory___n
push 2
call eax
jmp 0x402f1b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push esi
push str.ERROR:_fopen:__s:__s_n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
push esi
call ebx
add esp, 0x14
jmp 0x402f27
push str.Out_of_memory___n
jmp 0x402e2e
push dword [esp + 0x24]
mov esi, dword [sym.imp.imobiledevice.dll_afc_client_free]
call esi
add esp, 4
mov dword [esp + 0x24], 0
or ebx, 0xffffffff
jmp 0x402f2f
cmp eax, 7
jne 0x40313b
push 0
push 0x401350
push 0
push dword [0x4094a0]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_restore]
add esp, 0x14
mov dword [0x409498], 1
jmp 0x40345b
cmp eax, 8
jne 0x403161
push 0
push 0x401350
push 0
push dword [0x4094a0]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_remove_archive]
add esp, 0x14
jmp 0x40345b
push str.ERROR:_no_command_selected___This_should_not_be_reached__n
call fcn.00401040
add esp, 4
mov ebx, 0xfffffffe
jmp 0x402f29
mov eax, dword [0x40948c]
xor esi, esi
mov dword [esp + 0x10], esi
test eax, eax
je 0x4031ef
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
add esp, 4
push 0x406cd4
push eax
call ebx
add esp, 8
test eax, eax
je 0x4031ef
mov ecx, 0x406fb8
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4031d0
test dl, dl
je 0x4031cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4031d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4031b0
xor eax, eax
jmp 0x4031d5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
push 0x406cd4
push 0
cmove esi, eax
call ebx
add esp, 8
test eax, eax
jne 0x4031a6
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x44]
call dword [sym.imp.imobiledevice.dll_instproxy_lookup_archives]
add esp, 0xc
test eax, eax
je 0x40322a
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.ERROR:_lookup_archives_returned__d_n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
or ebx, 0xffffffff
jmp 0x402f29
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40323c
push str.ERROR:_lookup_archives_did_not_return_a_plist___n
jmp 0x402e2e
test esi, esi
je 0x403295
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
push ecx
push eax
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x403283
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x402f27
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.plist.dll_plist_dict_get_size]
add esp, 4
push eax
push str.Total:__d_archived_apps_n
call fcn.00401040
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.plist.dll_plist_dict_new_iter]
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
jne 0x4032ec
push dword [esp + 0x10]
call dword [sym.imp.plist.dll_plist_free]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.ERROR:_Could_not_create_plist_dict_iter__n
push 2
call eax
jmp 0x402f1b
mov esi, dword [sym.imp.plist.dll_plist_dict_get_item]
mov ebx, dword [sym.imp.plist.dll_plist_get_string_val]
nop dword [eax + eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
push ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.plist.dll_plist_dict_next_item]
add esp, 0x10
cmp dword [esp + 0xc], 0
je 0x403406
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 5
jne 0x403406
push str.CFBundleDisplayName
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
call esi
push str.CFBundleVersion
push dword [esp + 0x24]
mov edi, eax
call esi
add esp, 0x10
mov esi, eax
test edi, edi
je 0x403385
lea eax, [esp + 0x20]
push eax
push edi
call ebx
add esp, 8
test esi, esi
je 0x403394
lea eax, [esp + 0x14]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4033ad
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4033d6
push ecx
push eax
push dword [esp + 0x14]
push str._s____s__s_n
call fcn.00401040
push dword [esp + 0x24]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 0x14
jmp 0x4033ee
push eax
push dword [esp + 0x10]
push str._s____s_n
call fcn.00401040
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
push dword [esp + 0x20]
call esi
add esp, 4
push dword [esp + 0xc]
call esi
mov esi, dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x403416
mov eax, dword [esp + 0x38]
jmp 0x403300
push dword [esp + 0x10]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x403465
push dword [0x4094a0]
push str.Uninstalling__s_n
call fcn.00401040
push 0
push 0x401350
push 0
push dword [0x4094a0]
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_uninstall]
add esp, 0x1c
mov dword [0x409498], 0
mov dword [0x409480], 1
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x2c], 0
call fcn.00401a00
jmp 0x402f27
push dword [esp + 0x1c]
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
movlpd qword [esp + 0xec], xmm0
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push str.com.apple.afc
push dword [esp + 0x34]
call edi
add esp, 0xc
test eax, eax
jne 0x4042fc
cmp dword [esp + 0x1c], eax
je 0x4042fc
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_afc_client_new]
add esp, 0xc
test eax, eax
je 0x40351c
push str.Could_not_connect_to_AFC__n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
lea eax, [esp + 0xb0]
push eax
push dword [0x4094a0]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
add esp, 8
test eax, eax
je 0x40356c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push dword [0x4094a0]
push str.ERROR:_stat:__s:__s_n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
or ebx, 0xffffffff
jmp 0x402f29
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push str.PublicStaging
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_afc_get_file_info]
mov edi, dword [sym.imp.imobiledevice.dll_afc_make_directory]
add esp, 0xc
test eax, eax
je 0x4035c1
push str.PublicStaging
push dword [esp + 0x28]
call edi
add esp, 8
test eax, eax
je 0x4035c1
push str.PublicStaging
push str.WARNING:_Could_not_create_directory__s_on_device__n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4035f3
xor esi, esi
cmp dword [eax], esi
je 0x4035e9
mov ecx, dword [eax]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x34]
lea esi, [esi + 1]
add esp, 4
mov ecx, dword [eax + esi*4]
test ecx, ecx
jne 0x4035d1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_new]
mov esi, dword [0x4094a0]
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403612
sub ecx, edx
cmp ecx, 5
jbe 0x403ae5
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x403630
sub edx, ecx
lea eax, [esi - 5]
mov ecx, str..ipcc
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403663
test dl, dl
je 0x40365f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403663
add eax, 2
add ecx, 2
test dl, dl
jne 0x403643
xor eax, eax
jmp 0x403668
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403ae5
lea eax, [esp + 0x38]
push eax
push 0
push esi
call dword [sym.imp.zip.dll_zip_open]
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x4036b7
push dword [esp + 0x38]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push dword [0x4094a0]
push str.ERROR:_zip_open:__s:__d_n
push 2
call eax
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
or ebx, 0xffffffff
jmp 0x402f29
push dword [0x4094a0]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, eax
call fcn.00404650
push eax
push str.PublicStaging
lea eax, [esp + 0x28]
push str._s__s
push eax
call fcn.004012a0
mov esi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jle 0x4036ff
test esi, esi
je 0x4036ff
push esi
push dword [esp + 0x28]
call edi
add esp, 8
mov ecx, dword [esp + 0x28]
call fcn.00404650
push eax
push str.Uploading__s_package_contents...
call fcn.00401040
push 0
push ebx
call dword [sym.imp.zip.dll_zip_get_num_entries]
add esp, 0x10
mov dword [esp + 0x4c], edx
mov ecx, eax
xorps xmm0, xmm0
mov dword [esp + 0x6c], ecx
movlpd qword [esp + 0x50], xmm0
test edx, edx
jne 0x40373e
test ecx, ecx
je 0x403aac
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edi
cmp edi, edx
ja 0x403aa8
jb 0x403760
cmp eax, ecx
jae 0x403aa8
push 0
push edi
push eax
push ebx
call dword [sym.imp.zip.dll_zip_get_name]
mov esi, eax
mov dword [esp + 0x1c], 0
add esp, 0x10
test esi, esi
je 0x403a3a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403785
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x4037f2
mov ecx, dword [esp + 0x28]
push esi
call fcn.00404650
push eax
push str.PublicStaging
lea eax, [esp + 0x18]
push str._s__s__s
push eax
call fcn.004012a0
mov esi, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jle 0x4037d1
test esi, esi
je 0x4037d1
push esi
push dword [esp + 0x28]
call dword [sym.imp.imobiledevice.dll_afc_make_directory]
add esp, 8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x6c]
add eax, 1
mov edx, dword [esp + 0x4c]
adc edi, 0
jmp 0x403746
push 0
push edi
push dword [esp + 0x20]
push ebx
call dword [sym.imp.zip.dll_zip_fopen_index]
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x403a36
mov ecx, dword [esp + 0x28]
push esi
call fcn.00404650
push eax
push str.PublicStaging
lea eax, [esp + 0x18]
push str._s__s__s
push eax
call fcn.004012a0
mov esi, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jle 0x403a08
test esi, esi
je 0x403a08
lea eax, [esp + 0xe8]
push eax
push 3
push esi
push dword [esp + 0x30]
call dword [sym.imp.imobiledevice.dll_afc_file_open]
add esp, 0x10
test eax, eax
jne 0x403a08
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.zip.dll_zip_stat_init]
add esp, 4
lea eax, [esp + 0x70]
push eax
push 0
push edi
push dword [esp + 0x24]
push dword [esp + 0x44]
call dword [sym.imp.zip.dll_zip_stat_index]
add esp, 0x14
test eax, eax
je 0x4038bc
push edi
push dword [esp + 0x1c]
push str.ERROR:_zip_stat_index__llu_failed__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
jmp 0x403a2c
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xorps xmm0, xmm0
cmp dword [esp + 0x8c], 0
movlpd qword [esp + 0x60], xmm0
jb 0x4039df
ja 0x4038ed
cmp dword [esp + 0x88], 0
jbe 0x4039df
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], esi
nop dword [eax]
push 0
push 0x2000
lea eax, [esp + 0x100]
push eax
push ebx
call dword [sym.imp.zip.dll_zip_fread]
mov ebx, edx
add esp, 0x10
mov edi, eax
or eax, ebx
je 0x4039d7
test ebx, ebx
jl 0x4039a5
jg 0x40392f
test edi, edi
je 0x4039a5
xor esi, esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
lea eax, [esp + 0x100]
push eax
push dword [esp + 0xf8]
push dword [esp + 0xf8]
push dword [esp + 0x38]
call dword [sym.imp.imobiledevice.dll_afc_file_write]
add esp, 0x18
test eax, eax
jne 0x403976
add esi, dword [esp + 0xc]
cmp eax, ebx
jl 0x403931
jg 0x40398f
cmp esi, edi
jb 0x403931
jmp 0x40398f
push str.AFC_Write_error__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
xor eax, eax
cmp esi, edi
jne 0x403a51
cmp eax, ebx
jne 0x403a51
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
add esi, edi
mov dword [esp + 0x60], esi
adc eax, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x8c]
jb 0x403900
ja 0x4039db
cmp esi, dword [esp + 0x88]
jb 0x403900
jmp 0x4039db
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
push dword [esp + 0xec]
push dword [esp + 0xec]
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_afc_file_close]
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [esp + 0xe8], xmm0
jmp 0x403a2c
push esi
push str.ERROR:_cant_open_afc:___s_for_writing_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
call dword [sym.imp.zip.dll_zip_fclose]
add esp, 4
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
add eax, 1
mov edx, dword [esp + 0x4c]
adc edi, 0
jmp 0x403746
push ebx
push edi
push esi
push str.Error:_wrote_only__d_of__lli_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x14
push dword [esp + 0xec]
push dword [esp + 0xec]
push dword [esp + 0x2c]
call dword [sym.imp.imobiledevice.dll_afc_file_close]
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.zip.dll_zip_fclose]
add esp, 4
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
mov esi, dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push str.DONE._n
call fcn.00401040
mov edi, dword [esp + 0x18]
add esp, 4
push 0
push str.CarrierBundle
push str.PackageType
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
jmp 0x404277
mov eax, dword [esp + 0xb6]
and eax, 0xf000
cmp eax, 0x4000
jne 0x403d5f
push 0
push str.Developer
push str.PackageType
push ebx
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov ecx, dword [0x4094a0]
call fcn.00404650
push eax
push str.PublicStaging
lea eax, [esp + 0x38]
push str._s__s
push eax
call fcn.004012a0
add esp, 0x20
test eax, eax
jns 0x403b57
push str.ERROR:_Out_of_memory_allocating_pkgname___n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
mov ecx, dword [0x4094a0]
call fcn.00404650
push eax
push str.Uploading__s_package_contents...
call fcn.00401040
push dword [esp + 0x28]
mov edx, dword [0x4094a0]
mov ecx, dword [esp + 0x30]
call fcn.004020d0
add esp, 0xc
push str.DONE._n
call fcn.00401040
mov ecx, dword [0x4094a0]
add esp, 4
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ba0
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
sub ecx, edx
lea eax, [ecx + 0xc]
push eax
call edi
mov ecx, dword [0x4094a0]
mov esi, eax
mov edx, esi
add esp, 4
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x403bc4
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403bd4
mov eax, dword [str._Info.plist]
mov dword [ecx], eax
mov eax, dword [0x40725c]
mov dword [ecx + 4], eax
mov eax, dword [0x407260]
mov dword [ecx + 8], eax
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
cmp eax, 0xffffffff
je 0x403d33
push 0x407264
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x50], eax
test eax, eax
je 0x403d33
mov ebx, dword [esp + 0x84]
push ebx
call edi
add esp, 4
mov edi, eax
push dword [esp + 0x50]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x403c76
push esi
push ebx
push str.ERROR:_could_not_read__u_bytes_from__s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
or ebx, 0xffffffff
jmp 0x402f29
push dword [esp + 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esp + 0x28], 0
cmp dword [edi], 0x696c7062
jne 0x403cb5
cmp dword [edi + 4], 0x30307473
jne 0x403cb5
lea eax, [esp + 0x28]
push eax
push ebx
push edi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x403cc2
lea eax, [esp + 0x28]
push eax
push ebx
push edi
call dword [sym.imp.plist.dll_plist_from_xml]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
push edi
call ebx
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x403cfa
push str.ERROR:_could_not_parse_Info.plist__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push str.CFBundleIdentifier
push eax
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x403d1c
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
push dword [esp + 0x28]
call dword [sym.imp.plist.dll_plist_free]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
jmp 0x40428e
push esi
push str.ERROR:_could_not_locate__s_in_app__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
lea eax, [esp + 0x38]
push eax
push 0
push esi
call dword [sym.imp.zip.dll_zip_open]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x34], edi
test edi, edi
jne 0x403da5
push dword [esp + 0x38]
push dword [0x4094a0]
push str.ERROR:_zip_open:__s:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
or ebx, 0xffffffff
jmp 0x402f29
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
push ecx
mov edx, str.iTunesMetadata.plist
mov dword [esp + 0x5c], 0
mov ecx, edi
call fcn.004017e0
mov esi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x403e2b
mov edi, dword [esp + 0xc]
push 0
push edi
push esi
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
mov dword [esp + 0x48], eax
cmp dword [esi], 0x696c7062
jne 0x403e18
cmp dword [esi + 4], 0x30307473
jne 0x403e18
lea eax, [esp + 0x50]
push eax
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
mov edi, dword [esp + 0x40]
jmp 0x403e46
lea eax, [esp + 0x50]
push eax
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_xml]
mov edi, dword [esp + 0x40]
jmp 0x403e46
push str.iTunesMetadata.plist
push str.WARNING:_could_not_locate__s_in_archive__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 0x18], 0
push edi
call dword [sym.imp.zip.dll_zip_get_num_files]
add esp, 4
mov dword [esp + 0x4c], eax
nop dword [eax + eax]
push 0
mov eax, ebx
cdq
push edx
push eax
push edi
call dword [sym.imp.zip.dll_zip_get_name]
mov edi, eax
add esp, 0x10
inc ebx
test edi, edi
je 0x403ecd
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x403ea0
push 8
push str.Payload_
push edi
sub esi, ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x403ecd
cmp esi, 8
jle 0x403ecd
mov al, byte [edi + 8]
lea esi, [edi + 8]
cmp al, 0x2e
jne 0x403ee0
cmp ebx, dword [esp + 0x4c]
jge 0x403f19
mov edi, dword [esp + 0x34]
jmp 0x403e80
cmp al, 0x2f
je 0x403eea
mov al, byte [esi + 1]
inc esi
jmp 0x403ee0
sub esi, edi
push 0
inc esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x403f1b
xor ebx, ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f20
sub ecx, edx
lea eax, [ecx + 0xb]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov edx, esi
mov ecx, ebx
sub edx, ebx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x403f40
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call edi
add esp, 4
lea ecx, [esi - 1]
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x403f60
mov eax, dword [str.Info.plist]
mov edx, esi
mov ebx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [0x407320]
mov dword [ecx + 4], eax
mov ax, word [0x407324]
mov word [ecx + 8], ax
mov al, byte [0x407326]
mov byte [ecx + 0xa], al
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.004017e0
add esp, 0xc
push esi
test eax, eax
jns 0x403fe4
push str.WARNING:_could_not_locate__s_in_archive__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call edi
add esp, 4
push ebx
call dword [sym.imp.zip.dll_zip_unchange_all]
add esp, 4
push ebx
call dword [sym.imp.zip.dll_zip_close]
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
call edi
mov esi, dword [esp + 0x14]
add esp, 4
cmp dword [esi], 0x696c7062
jne 0x404010
cmp dword [esi + 4], 0x30307473
jne 0x404010
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x404020
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push esi
call dword [sym.imp.plist.dll_plist_from_xml]
add esp, 0xc
push esi
call edi
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x404063
push str.Could_not_parse_Info.plist__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push ebx
call dword [sym.imp.zip.dll_zip_unchange_all]
add esp, 0xc
push ebx
call dword [sym.imp.zip.dll_zip_close]
add esp, 4
or ebx, 0xffffffff
jmp 0x402f29
mov edi, dword [sym.imp.plist.dll_plist_dict_get_item]
push str.CFBundleExecutable
push eax
mov dword [esp + 0x30], 0
call edi
mov esi, dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
test eax, eax
je 0x404091
lea ecx, [esp + 0x28]
push ecx
push eax
call esi
add esp, 8
push str.CFBundleIdentifier
push dword [esp + 0x1c]
call edi
add esp, 8
test eax, eax
je 0x4040ae
lea ecx, [esp + 0x44]
push ecx
push eax
call esi
add esp, 8
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_free]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x18], 0
test eax, eax
jne 0x4040d5
push str.Could_not_determine_value_for_CFBundleExecutable__n
jmp 0x404036
push eax
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push str.Payload__s.app_SC_Info__s.sinf
push eax
call fcn.004012a0
add esp, 0x10
test eax, eax
jns 0x404116
push str.Out_of_memory___n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x10]
add esp, 4
mov dword [esp + 0x10], 0
mov edx, esi
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.004017e0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x40416a
push 0
push dword [esp + 0x10]
push edi
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
mov ebx, eax
jmp 0x404186
push esi
push str.WARNING:_could_not_locate__s_in_archive__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
xor ebx, ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
push edi
call esi
add esp, 4
lea eax, [esp + 0x20]
push dword [esp + 0x44]
push str.PublicStaging
push str._s__s
push eax
call fcn.004012a0
add esp, 0x10
test eax, eax
jns 0x4041d8
push str.Out_of_memory___n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push dword [0x4094a0]
push str.Copying__s_to_device...
call fcn.00401040
mov esi, dword [esp + 0x28]
mov edx, dword [0x4094a0]
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00401ec0
add esp, 0xc
test eax, eax
jns 0x404212
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402f27
push str.DONE._n
call fcn.00401040
mov eax, dword [esp + 0x48]
add esp, 4
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40423d
push 0
push eax
push str.CFBundleIdentifier
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
test ebx, ebx
je 0x404257
push 0
push ebx
mov ebx, dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
push str.ApplicationSINF
push edi
call ebx
add esp, 0x10
jmp 0x40425d
mov ebx, dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x404273
push 0
push eax
push str.iTunesMetadata
push edi
call ebx
add esp, 0x10
mov ebx, dword [esp + 0x34]
push ebx
call dword [sym.imp.zip.dll_zip_unchange_all]
add esp, 4
push ebx
call dword [sym.imp.zip.dll_zip_close]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4094a8], 2
push dword [esp + 0x44]
jne 0x4042bd
push str.Installing__s_n
call fcn.00401040
push 0
push 0x401350
push edi
push esi
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_install]
jmp 0x4042da
push str.Upgrading__s_n
call fcn.00401040
push 0
push 0x401350
push edi
push esi
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_upgrade]
add esp, 0x1c
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
add esp, 4
push esi
call ebx
add esp, 4
mov dword [0x409498], 1
jmp 0x40345b
push str.Could_not_start_com.apple.afc__n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
xor esi, esi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_new]
push esi
push str.User
mov edi, eax
push str.ApplicationType
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov eax, dword [0x40948c]
add esp, 0x10
mov dword [esp + 0x14], esi
test eax, eax
je 0x40452f
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x4c], eax
push 0x406cd4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov edx, eax
add esp, 8
test edx, edx
je 0x404479
mov ecx, str.list_system
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x404397
test bl, bl
je 0x404393
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x404397
add eax, 2
add ecx, 2
test bl, bl
jne 0x404377
xor eax, eax
jmp 0x40439c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4043ba
push eax
push str.System
push str.ApplicationType
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
jmp 0x40445f
mov ecx, str.list_all
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4043e1
test bl, bl
je 0x4043dd
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4043e1
add eax, 2
add ecx, 2
test bl, bl
jne 0x4043c1
xor eax, eax
jmp 0x4043e6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4043fb
push str.ApplicationType
push edi
call dword [sym.imp.plist.dll_plist_dict_remove_item]
add esp, 8
jmp 0x40445f
mov ecx, str.list_user
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x404422
test bl, bl
je 0x40441e
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x404422
add eax, 2
add ecx, 2
test bl, bl
jne 0x404402
xor eax, eax
jmp 0x404427
sbb eax, eax
or eax, 1
test eax, eax
je 0x40445f
mov eax, 0x406fb8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x404450
test cl, cl
je 0x40444c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x404450
add edx, 2
add eax, 2
test cl, cl
jne 0x404430
xor eax, eax
jmp 0x404455
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
cmove esi, eax
push 0x406cd4
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov edx, eax
add esp, 8
test edx, edx
jne 0x404370
push dword [esp + 0x4c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
add esp, 4
test esi, esi
je 0x40452f
lea eax, [esp + 0x14]
push eax
push edi
push dword [esp + 0x44]
call dword [sym.imp.imobiledevice.dll_instproxy_browse]
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40450e
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 4
jne 0x40450e
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x50], 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
je 0x4044fc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push dword [esp + 0x30]
call ebx
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x402f27
push str.ERROR:_instproxy_browse_returnd_an_invalid_plist__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push 0
push str.DynamicDiskUsage
push str.StaticDiskUsage
push str.CFBundleVersion
push str.CFBundleDisplayName
push str.CFBundleIdentifier
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_set_return_attributes]
add esp, 0x1c
push str.CFBundleIdentifier
push 0x4062bc
call fcn.00401040
push str.CFBundleVersion
push str.___s
call fcn.00401040
push str.CFBundleDisplayName
push str.___s
call fcn.00401040
push 0x4062ec
call fcn.00401040
add esp, 0x1c
push 0
push 0x401350
push edi
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_instproxy_browse_with_callback]
mov esi, eax
add esp, 0x10
cmp esi, 0xfffffffa
jne 0x4045cc
push str.NOTE:_timeout_waiting_for_device_to_browse_apps__trying_again..._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
add esp, 0xc
jmp 0x4045de
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
add esp, 4
test esi, esi
je 0x403451
push esi
push str.ERROR:_instproxy_browse_returned__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
or ebx, 0xffffffff
jmp 0x402f29
push str.Could_not_connect_to_installation_proxy__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29
push str.Could_not_start_com.apple.mobile.installation_proxy__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or ebx, 0xffffffff
jmp 0x402f29