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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20f4
call fcn.004053c0
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.00401b30
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 0x4025eb
mov eax, dword [0x409484]
test eax, eax
je 0x4025ba
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.0040471b
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.0040471b
mov esp, ebp
pop ebp
ret
cmp dword [0x409484], 0
jne 0x402606
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 0x402642
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 0x402f39
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 0x402720
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 0x402877
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402877
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 0x4026a5
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4026d2
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 0x402f39
push 0
push 0x401350
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 0x40272e
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 0x404631
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404631
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 0x402780
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x404610
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 0x404329
cmp eax, 2
je 0x403494
cmp eax, 4
je 0x403494
cmp eax, 3
je 0x403435
cmp eax, 5
je 0x403188
cmp eax, 6
jne 0x40311b
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 0x4029c9
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 0x4029c3
nop dword [eax]
mov ecx, str.uninstall
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402898
test dl, dl
je 0x402873
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402898
add eax, 2
add ecx, 2
test dl, dl
jne 0x402857
xor eax, eax
jmp 0x40289d
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 0x402f39
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028aa
mov dword [esp + 0x14], eax
jmp 0x402997
mov ecx, str.app_only
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4028d1
test dl, dl
je 0x4028cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4028d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4028b1
xor eax, eax
jmp 0x4028d6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028e4
lea edi, [eax + 1]
xor ebx, ebx
jmp 0x402997
mov ecx, str.docs_only
mov eax, esi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402910
test dl, dl
je 0x40290c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402910
add eax, 2
add ecx, 2
test dl, dl
jne 0x4028f0
xor eax, eax
jmp 0x402915
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402920
lea ebx, [eax + 1]
xor edi, edi
jmp 0x402997
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402925
sub ecx, edx
cmp ecx, 5
jbe 0x40295b
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 0x40295b
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 0x402997
mov eax, str.remove
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402980
test cl, cl
je 0x40297c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402980
add esi, 2
add eax, 2
test cl, cl
jne 0x402960
xor eax, eax
jmp 0x402985
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 0x402850
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4029ce
test edi, edi
jne 0x4029ce
test ebx, ebx
je 0x402a1a
jmp 0x4029ce
mov esi, dword [esp + 0x14]
jmp 0x4029ce
mov esi, 1
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_new]
mov dword [esp + 0x38], eax
test esi, esi
je 0x4029f3
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 0x402a00
push 0
push str.ApplicationOnly
jmp 0x402a0b
test ebx, ebx
je 0x402a1a
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 0x402ac7
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 0x402eb1
mov eax, dword [esp + 0x76]
and eax, 0xf000
cmp eax, 0x4000
jne 0x402e84
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402a63
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 0x402e5b
cmp dword [esp + 0x1c], eax
je 0x402e5b
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 0x402e39
mov edi, dword [esp + 0x38]
push 0
push 0x401360
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.00401a10
test ebx, ebx
je 0x402f37
cmp dword [0x40949c], 0
jne 0x4030fc
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.004012b0
add esp, 0x10
test eax, eax
js 0x4030f2
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 0x4030bd
push dword [0x4094a0]
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push str.ApplicationArchives
push str._s__s.zip
push eax
call fcn.004012b0
add esp, 0x10
test eax, eax
js 0x4030aa
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 0x403067
mov edi, dword [esp + 0x10]
test edi, edi
je 0x403067
xor esi, esi
cmp dword [edi], esi
je 0x402c40
mov eax, dword [edi]
mov ecx, str.st_size
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402c15
test dl, dl
je 0x402c11
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402c15
add eax, 2
add ecx, 2
test dl, dl
jne 0x402bf5
xor eax, eax
jmp 0x402c1a
sbb eax, eax
or eax, 1
test eax, eax
je 0x402c2b
mov eax, dword [edi + esi*4 + 8]
add esi, 2
test eax, eax
jne 0x402bf0
jmp 0x402c40
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 0x402c60
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 0x402c48
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 0x403027
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 0x402fe0
mov eax, dword [esp + 0xe8]
or eax, dword [esp + 0xec]
je 0x402fe0
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 0x402e19
mov eax, dword [esp + 0x28]
test eax, eax
je 0x402d46
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 0x402df8
add esi, ecx
test eax, eax
jne 0x402ce0
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 0x402f04
cmp dword [esp + 0xc], 0
je 0x402f37
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 0x402eea
mov ebx, dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
jmp 0x402720
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 0x402d4c
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 0x402d4c
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 0x402f39
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 0x402f39
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 0x402f39
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 0x402f39
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 0x402f39
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 0x402f37
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 0x402fc9
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.0040471b
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 0x402f39
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 0x402f37
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 0x402f39
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 0x402f2b
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 0x402f37
push str.Out_of_memory___n
jmp 0x402e3e
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 0x402f3f
cmp eax, 7
jne 0x40314b
push 0
push 0x401360
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 0x40346b
cmp eax, 8
jne 0x403171
push 0
push 0x401360
push 0
push dword [0x4094a0]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_remove_archive]
add esp, 0x14
jmp 0x40346b
push str.ERROR:_no_command_selected___This_should_not_be_reached__n
call fcn.00401040
add esp, 4
mov ebx, 0xfffffffe
jmp 0x402f39
mov eax, dword [0x40948c]
xor esi, esi
mov dword [esp + 0x10], esi
test eax, eax
je 0x4031ff
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 0x4031ff
mov ecx, 0x406fb8
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4031e0
test dl, dl
je 0x4031dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4031e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4031c0
xor eax, eax
jmp 0x4031e5
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 0x4031b6
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 0x40323a
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 0x402f39
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40324c
push str.ERROR:_lookup_archives_did_not_return_a_plist___n
jmp 0x402e3e
test esi, esi
je 0x4032a5
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 0x403293
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 0x402f37
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 0x4032fc
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 0x402f2b
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 0x403416
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 5
jne 0x403416
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 0x403395
lea eax, [esp + 0x20]
push eax
push edi
call ebx
add esp, 8
test esi, esi
je 0x4033a4
lea eax, [esp + 0x14]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4033bd
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 0x4033e6
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 0x4033fe
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 0x403426
mov eax, dword [esp + 0x38]
jmp 0x403310
push dword [esp + 0x10]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x403475
push dword [0x4094a0]
push str.Uninstalling__s_n
call fcn.00401040
push 0
push 0x401360
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.00401a10
jmp 0x402f37
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 0x40430c
cmp dword [esp + 0x1c], eax
je 0x40430c
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 0x40352c
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 0x402f39
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 0x40357c
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 0x402f39
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 0x4035d1
push str.PublicStaging
push dword [esp + 0x28]
call edi
add esp, 8
test eax, eax
je 0x4035d1
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 0x403603
xor esi, esi
cmp dword [eax], esi
je 0x4035f9
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 0x4035e1
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 0x403622
sub ecx, edx
cmp ecx, 5
jbe 0x403af5
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x403640
sub edx, ecx
lea eax, [esi - 5]
mov ecx, str..ipcc
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403673
test dl, dl
je 0x40366f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403673
add eax, 2
add ecx, 2
test dl, dl
jne 0x403653
xor eax, eax
jmp 0x403678
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403af5
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 0x4036c7
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 0x402f39
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.00404660
push eax
push str.PublicStaging
lea eax, [esp + 0x28]
push str._s__s
push eax
call fcn.004012b0
mov esi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jle 0x40370f
test esi, esi
je 0x40370f
push esi
push dword [esp + 0x28]
call edi
add esp, 8
mov ecx, dword [esp + 0x28]
call fcn.00404660
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 0x40374e
test ecx, ecx
je 0x403abc
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edi
cmp edi, edx
ja 0x403ab8
jb 0x403770
cmp eax, ecx
jae 0x403ab8
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 0x403a4a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403795
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x403802
mov ecx, dword [esp + 0x28]
push esi
call fcn.00404660
push eax
push str.PublicStaging
lea eax, [esp + 0x18]
push str._s__s__s
push eax
call fcn.004012b0
mov esi, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jle 0x4037e1
test esi, esi
je 0x4037e1
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 0x403756
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 0x403a46
mov ecx, dword [esp + 0x28]
push esi
call fcn.00404660
push eax
push str.PublicStaging
lea eax, [esp + 0x18]
push str._s__s__s
push eax
call fcn.004012b0
mov esi, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jle 0x403a18
test esi, esi
je 0x403a18
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 0x403a18
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 0x4038cc
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 0x403a3c
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 0x4039ef
ja 0x4038fd
cmp dword [esp + 0x88], 0
jbe 0x4039ef
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 0x4039e7
test ebx, ebx
jl 0x4039b5
jg 0x40393f
test edi, edi
je 0x4039b5
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 0x403986
add esi, dword [esp + 0xc]
cmp eax, ebx
jl 0x403941
jg 0x40399f
cmp esi, edi
jb 0x403941
jmp 0x40399f
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 0x403a61
cmp eax, ebx
jne 0x403a61
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 0x403910
ja 0x4039eb
cmp esi, dword [esp + 0x88]
jb 0x403910
jmp 0x4039eb
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 0x403a3c
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 0x403756
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 0x402f39
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 0x404287
mov eax, dword [esp + 0xb6]
and eax, 0xf000
cmp eax, 0x4000
jne 0x403d6f
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.00404660
push eax
push str.PublicStaging
lea eax, [esp + 0x38]
push str._s__s
push eax
call fcn.004012b0
add esp, 0x20
test eax, eax
jns 0x403b67
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 0x402f39
mov ecx, dword [0x4094a0]
call fcn.00404660
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.004020e0
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 0x403bb0
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 0x403bd4
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403be4
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 0x403d43
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 0x403d43
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 0x403c86
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 0x402f39
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 0x403cc5
cmp dword [edi + 4], 0x30307473
jne 0x403cc5
lea eax, [esp + 0x28]
push eax
push ebx
push edi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x403cd2
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 0x403d0a
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 0x402f39
push str.CFBundleIdentifier
push eax
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x403d2c
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 0x40429e
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 0x402f39
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 0x403db5
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 0x402f39
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.004017f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x403e3b
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 0x403e28
cmp dword [esi + 4], 0x30307473
jne 0x403e28
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 0x403e56
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 0x403e56
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 0x403edd
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x403eb0
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 0x403edd
cmp esi, 8
jle 0x403edd
mov al, byte [edi + 8]
lea esi, [edi + 8]
cmp al, 0x2e
jne 0x403ef0
cmp ebx, dword [esp + 0x4c]
jge 0x403f29
mov edi, dword [esp + 0x34]
jmp 0x403e90
cmp al, 0x2f
je 0x403efa
mov al, byte [esi + 1]
inc esi
jmp 0x403ef0
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 0x403f2b
xor ebx, ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f30
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 0x403f50
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 0x403f70
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.004017f0
add esp, 0xc
push esi
test eax, eax
jns 0x403ff4
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 0x402f39
call edi
mov esi, dword [esp + 0x14]
add esp, 4
cmp dword [esi], 0x696c7062
jne 0x404020
cmp dword [esi + 4], 0x30307473
jne 0x404020
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x404030
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 0x404073
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 0x402f39
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 0x4040a1
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 0x4040be
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 0x4040e5
push str.Could_not_determine_value_for_CFBundleExecutable__n
jmp 0x404046
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.004012b0
add esp, 0x10
test eax, eax
jns 0x404126
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 0x402f39
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.004017f0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x40417a
push 0
push dword [esp + 0x10]
push edi
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
mov ebx, eax
jmp 0x404196
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.004012b0
add esp, 0x10
test eax, eax
jns 0x4041e8
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 0x402f39
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.00401ed0
add esp, 0xc
test eax, eax
jns 0x404222
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402f37
push str.DONE._n
call fcn.00401040
mov eax, dword [esp + 0x48]
add esp, 4
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40424d
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 0x404267
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 0x40426d
mov ebx, dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x404283
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 0x4042cd
push str.Installing__s_n
call fcn.00401040
push 0
push 0x401360
push edi
push esi
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_install]
jmp 0x4042ea
push str.Upgrading__s_n
call fcn.00401040
push 0
push 0x401360
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 0x40346b
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 0x402f39
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 0x40453f
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 0x404489
mov ecx, str.list_system
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4043a7
test bl, bl
je 0x4043a3
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4043a7
add eax, 2
add ecx, 2
test bl, bl
jne 0x404387
xor eax, eax
jmp 0x4043ac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4043ca
push eax
push str.System
push str.ApplicationType
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
jmp 0x40446f
mov ecx, str.list_all
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4043f1
test bl, bl
je 0x4043ed
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4043f1
add eax, 2
add ecx, 2
test bl, bl
jne 0x4043d1
xor eax, eax
jmp 0x4043f6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40440b
push str.ApplicationType
push edi
call dword [sym.imp.plist.dll_plist_dict_remove_item]
add esp, 8
jmp 0x40446f
mov ecx, str.list_user
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x404432
test bl, bl
je 0x40442e
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x404432
add eax, 2
add ecx, 2
test bl, bl
jne 0x404412
xor eax, eax
jmp 0x404437
sbb eax, eax
or eax, 1
test eax, eax
je 0x40446f
mov eax, 0x406fb8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x404460
test cl, cl
je 0x40445c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x404460
add edx, 2
add eax, 2
test cl, cl
jne 0x404440
xor eax, eax
jmp 0x404465
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 0x404380
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 0x40453f
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 0x40451e
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 4
jne 0x40451e
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 0x40450c
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 0x402f37
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 0x402f39
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 0x401360
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 0x4045dc
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 0x4045ee
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
add esp, 4
test esi, esi
je 0x403461
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 0x402f39
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 0x402f39
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 0x402f39