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.00405350
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 + 0x28], 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.00401a40
push dword [0x409464]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.imobiledevice.dll_idevice_new]
add esp, 8
test eax, eax
je 0x40258d
push str.No_iOS_device_found__is_it_plugged_in__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.004046a9
mov esp, ebp
pop ebp
ret
cmp dword [0x409464], 0
jne 0x4025a8
push 0x409464
push dword [esp + 0x44]
call dword [sym.imp.imobiledevice.dll_idevice_get_udid]
add esp, 8
push str.ideviceinstaller
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
add esp, 0xc
test eax, eax
je 0x4025e4
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 0x402ed9
cmp dword [0x409488], 0
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
mov ebx, dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
je 0x4026c0
lea eax, [esp + 0x1c]
push eax
push str.com.apple.mobile.notification_proxy
push dword [esp + 0x30]
call edi
add esp, 0xc
test eax, eax
jne 0x402817
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402817
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 0x402647
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
je 0x402674
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 0x402ed9
push 0
push 0x401290
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
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4026ce
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 + 0x30]
call edi
add esp, 0xc
test eax, eax
jne 0x4045c6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4045c6
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 0x402720
push eax
call ebx
add esp, 4
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x4045a5
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 [0x40948c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x409484]
add esp, 0xc
mov dword [0x40948c], 0
mov dword [0x409474], 0
cmp eax, 1
je 0x4042c9
cmp eax, 2
je 0x403434
cmp eax, 4
je 0x403434
cmp eax, 3
je 0x4033d5
cmp eax, 5
je 0x403128
cmp eax, 6
jne 0x4030bb
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x2c], eax
xor edi, edi
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [0x409468]
test eax, eax
je 0x402969
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
push 0x406bec
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 0x402963
nop dword [eax]
mov ecx, str.uninstall
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402838
test dl, dl
je 0x402813
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402838
add eax, 2
add ecx, 2
test dl, dl
jne 0x4027f7
xor eax, eax
jmp 0x40283d
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 0x402ed9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40284a
mov dword [esp + 0x14], eax
jmp 0x402937
mov ecx, str.app_only
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402871
test dl, dl
je 0x40286d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402871
add eax, 2
add ecx, 2
test dl, dl
jne 0x402851
xor eax, eax
jmp 0x402876
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402884
lea edi, [eax + 1]
xor ebx, ebx
jmp 0x402937
mov ecx, str.docs_only
mov eax, esi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4028b0
test dl, dl
je 0x4028ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4028b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402890
xor eax, eax
jmp 0x4028b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028c0
lea ebx, [eax + 1]
xor edi, edi
jmp 0x402937
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028c5
sub ecx, edx
cmp ecx, 5
jbe 0x4028fb
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 0x4028fb
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 + 0x2c], eax
jmp 0x402937
mov eax, str.remove
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402920
test cl, cl
je 0x40291c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402920
add esi, 2
add eax, 2
test cl, cl
jne 0x402900
xor eax, eax
jmp 0x402925
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x10]
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x10], ecx
push 0x406bec
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 0x4027f0
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40296e
test edi, edi
jne 0x40296e
test ebx, ebx
je 0x4029ba
jmp 0x40296e
mov esi, dword [esp + 0x14]
jmp 0x40296e
mov esi, 1
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_new]
mov dword [esp + 0x38], eax
test esi, esi
je 0x402993
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 0x4029a0
push 0
push str.ApplicationOnly
jmp 0x4029ab
test ebx, ebx
je 0x4029ba
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 + 0x2c]
test ebx, ebx
je 0x402a67
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 0x402e51
mov eax, dword [esp + 0x76]
and eax, 0xf000
cmp eax, 0x4000
jne 0x402e24
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402a03
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 + 0x30]
call dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
add esp, 0xc
test eax, eax
jne 0x402dfb
cmp dword [esp + 0x1c], eax
je 0x402dfb
push dword [esp + 0x28]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x28], 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 0x402dd9
mov edi, dword [esp + 0x38]
push 0
push 0x4012a0
push edi
push dword [0x40947c]
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 [0x409460], 1
add esp, 4
test esi, esi
sete al
mov dword [0x409474], eax
call fcn.00401950
test ebx, ebx
je 0x402ed7
cmp dword [0x409478], 0
jne 0x40309c
push dword [0x40947c]
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.004011f0
add esp, 0x10
test eax, eax
js 0x403092
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 0x407470
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 0x40305d
push dword [0x40947c]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push str.ApplicationArchives
push str._s__s.zip
push eax
call fcn.004011f0
add esp, 0x10
test eax, eax
js 0x40304a
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.imobiledevice.dll_afc_get_file_info]
add esp, 0xc
test eax, eax
jne 0x403007
mov edi, dword [esp + 0xc]
test edi, edi
je 0x403007
xor esi, esi
cmp dword [edi], esi
je 0x402be0
mov eax, dword [edi]
mov ecx, str.st_size
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402bb5
test dl, dl
je 0x402bb1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402bb5
add eax, 2
add ecx, 2
test dl, dl
jne 0x402b95
xor eax, eax
jmp 0x402bba
sbb eax, eax
or eax, 1
test eax, eax
je 0x402bcb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
test eax, eax
jne 0x402b90
jmp 0x402be0
push dword [edi + esi*4 + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edi, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
xor esi, esi
cmp dword [edi], esi
je 0x402c00
mov eax, dword [edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [esp + 0x10]
lea esi, [esi + 1]
add esp, 4
mov eax, dword [edi + esi*4]
test eax, eax
jne 0x402be8
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 0x402fc7
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 0x402f80
mov eax, dword [esp + 0xe8]
or eax, dword [esp + 0xec]
je 0x402f80
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 + 0x34], 0
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x34]
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 0x402db9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x402ce6
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 + 0x34]
cmp ecx, eax
jne 0x402d98
add esi, ecx
test eax, eax
jne 0x402c80
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 0x402ea4
cmp dword [esp + 0x10], 0
je 0x402ed7
push dword [0x40947c]
push str.Removing__s_n
call fcn.00401040
push dword [0x409468]
mov dword [0x409484], 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
mov dword [0x409468], 0
lea eax, [esp + 0x28]
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 0x402e8a
mov ebx, dword [sym.imp.imobiledevice.dll_lockdownd_service_descriptor_free]
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_start_service]
jmp 0x4026c0
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 0x402cec
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 0x402cec
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 0x402ed9
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 0x402ed9
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 0x402ed9
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 0x402ed9
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 0x402ed9
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 + 0x10], 0
je 0x402ed7
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 + 0x28]
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 [0x409464]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [0x40947c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [0x409468]
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 [0x409478], 0
je 0x402f69
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.004046a9
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 0x402ed9
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 0x402ed7
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 0x402ed9
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 0x402ecb
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 0x402ed7
push str.Out_of_memory___n
jmp 0x402dde
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 0x402edf
cmp eax, 7
jne 0x4030eb
push 0
push 0x4012a0
push 0
push dword [0x40947c]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_restore]
add esp, 0x14
mov dword [0x409474], 1
jmp 0x40340b
cmp eax, 8
jne 0x403111
push 0
push 0x4012a0
push 0
push dword [0x40947c]
push dword [esp + 0x4c]
call dword [sym.imp.imobiledevice.dll_instproxy_remove_archive]
add esp, 0x14
jmp 0x40340b
push str.ERROR:_no_command_selected___This_should_not_be_reached__n
call fcn.00401040
add esp, 4
mov ebx, 0xfffffffe
jmp 0x402ed9
mov eax, dword [0x409468]
xor esi, esi
mov dword [esp + 0xc], esi
test eax, eax
je 0x40319f
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 0x406bec
push eax
call ebx
add esp, 8
test eax, eax
je 0x40319f
mov ecx, 0x406e9c
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403180
test dl, dl
je 0x40317c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403180
add eax, 2
add ecx, 2
test dl, dl
jne 0x403160
xor eax, eax
jmp 0x403185
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
push 0x406bec
push 0
cmove esi, eax
call ebx
add esp, 8
test eax, eax
jne 0x403156
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x44]
call dword [sym.imp.imobiledevice.dll_instproxy_lookup_archives]
add esp, 0xc
test eax, eax
je 0x4031da
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 0x402ed9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4031ec
push str.ERROR:_lookup_archives_did_not_return_a_plist___n
jmp 0x402dde
test esi, esi
je 0x403245
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 0x403233
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 + 0xc]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x402ed7
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 + 0x18]
call dword [sym.imp.plist.dll_plist_dict_new_iter]
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
jne 0x40329c
push dword [esp + 0xc]
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 0x402ecb
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 + 0x10], 0
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_dict_next_item]
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x4033b6
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 5
jne 0x4033b6
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 0x403335
lea eax, [esp + 0x20]
push eax
push edi
call ebx
add esp, 8
test esi, esi
je 0x403344
lea eax, [esp + 0x14]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40335d
push dword [esp + 0x10]
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 0x403386
push ecx
push eax
push dword [esp + 0x18]
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 0x40339e
push eax
push dword [esp + 0x14]
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 + 0x10]
call esi
mov esi, dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x4033c6
mov eax, dword [esp + 0x38]
jmp 0x4032b0
push dword [esp + 0xc]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x403415
push dword [0x40947c]
push str.Uninstalling__s_n
call fcn.00401040
push 0
push 0x4012a0
push 0
push dword [0x40947c]
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_uninstall]
add esp, 0x1c
mov dword [0x409474], 0
mov dword [0x409460], 1
push dword [esp + 0x28]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x28], 0
call fcn.00401950
jmp 0x402ed7
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 + 0x30]
call edi
add esp, 0xc
test eax, eax
jne 0x4042ac
cmp dword [esp + 0x1c], eax
je 0x4042ac
push dword [esp + 0x28]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
add esp, 4
mov dword [esp + 0x28], 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 0x4034cc
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 0x402ed9
lea eax, [esp + 0xb0]
push eax
push dword [0x40947c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
add esp, 8
test eax, eax
je 0x40351c
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 [0x40947c]
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 0x402ed9
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 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 0x403571
push str.PublicStaging
push dword [esp + 0x28]
call edi
add esp, 8
test eax, eax
je 0x403571
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 + 0x2c]
test eax, eax
je 0x4035a3
xor esi, esi
cmp dword [eax], esi
je 0x403599
mov ecx, dword [eax]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x30]
lea esi, [esi + 1]
add esp, 4
mov ecx, dword [eax + esi*4]
test ecx, ecx
jne 0x403581
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 [0x40947c]
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 0x4035c2
sub ecx, edx
cmp ecx, 5
jbe 0x403a95
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4035e0
sub edx, ecx
lea eax, [esi - 5]
mov ecx, str..ipcc
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403613
test dl, dl
je 0x40360f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403613
add eax, 2
add ecx, 2
test dl, dl
jne 0x4035f3
xor eax, eax
jmp 0x403618
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a95
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 + 0x30], ebx
test ebx, ebx
jne 0x403667
push dword [esp + 0x38]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push dword [0x40947c]
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 0x402ed9
push dword [0x40947c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x34], eax
mov ecx, eax
call fcn.004045f0
push eax
push str.PublicStaging
lea eax, [esp + 0x28]
push str._s__s
push eax
call fcn.004011f0
mov esi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jle 0x4036af
test esi, esi
je 0x4036af
push esi
push dword [esp + 0x28]
call edi
add esp, 8
mov ecx, dword [esp + 0x34]
call fcn.004045f0
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 0x4036ee
test ecx, ecx
je 0x403a5c
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edi
cmp edi, edx
ja 0x403a58
jb 0x403710
cmp eax, ecx
jae 0x403a58
push 0
push edi
push eax
push ebx
call dword [sym.imp.zip.dll_zip_get_name]
mov esi, eax
mov dword [esp + 0x20], 0
add esp, 0x10
test esi, esi
je 0x4039ea
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403735
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x4037a2
mov ecx, dword [esp + 0x34]
push esi
call fcn.004045f0
push eax
push str.PublicStaging
lea eax, [esp + 0x1c]
push str._s__s__s
push eax
call fcn.004011f0
mov esi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jle 0x403781
test esi, esi
je 0x403781
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 0x4036f6
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 + 0xc], ebx
test ebx, ebx
je 0x4039e6
mov ecx, dword [esp + 0x34]
push esi
call fcn.004045f0
push eax
push str.PublicStaging
lea eax, [esp + 0x1c]
push str._s__s__s
push eax
call fcn.004011f0
mov esi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jle 0x4039b8
test esi, esi
je 0x4039b8
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 0x4039b8
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 + 0x40]
call dword [sym.imp.zip.dll_zip_stat_index]
add esp, 0x14
test eax, eax
je 0x40386c
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 0x4039dc
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 0x40398f
ja 0x40389d
cmp dword [esp + 0x88], 0
jbe 0x40398f
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 0x403987
test ebx, ebx
jl 0x403955
jg 0x4038df
test edi, edi
je 0x403955
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 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 0x403926
add esi, dword [esp + 0x10]
cmp eax, ebx
jl 0x4038e1
jg 0x40393f
cmp esi, edi
jb 0x4038e1
jmp 0x40393f
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 0x403a01
cmp eax, ebx
jne 0x403a01
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 + 0xc]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x8c]
jb 0x4038b0
ja 0x40398b
cmp esi, dword [esp + 0x88]
jb 0x4038b0
jmp 0x40398b
mov ebx, dword [esp + 0xc]
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 0x4039dc
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 + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
add eax, 1
mov edx, dword [esp + 0x4c]
adc edi, 0
jmp 0x4036f6
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 + 0xc]
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 0x402ed9
mov esi, dword [esp + 0x20]
push dword [esp + 0x34]
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 0x404227
mov eax, dword [esp + 0xb6]
and eax, 0xf000
cmp eax, 0x4000
jne 0x403d17
push 0
push str.Developer
push str.PackageType
push ebx
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov ecx, dword [0x40947c]
call fcn.004045f0
push eax
push str.PublicStaging
lea eax, [esp + 0x38]
push str._s__s
push eax
call fcn.004011f0
add esp, 0x20
test eax, eax
jns 0x403b07
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 0x402ed9
mov ecx, dword [0x40947c]
call fcn.004045f0
push eax
push str.Uploading__s_package_contents...
call fcn.00401040
push dword [esp + 0x28]
mov edx, dword [0x40947c]
mov ecx, dword [esp + 0x30]
call fcn.00401fb0
add esp, 0xc
push str.DONE._n
call fcn.00401040
mov ecx, dword [0x40947c]
add esp, 4
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b50
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 [0x40947c]
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 0x403b74
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403b84
mov eax, dword [str._Info.plist]
mov dword [ecx], eax
mov eax, dword [0x40713c]
mov dword [ecx + 4], eax
mov eax, dword [0x407140]
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 0x403ceb
push 0x407144
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 0x403ceb
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 0x403c26
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 0x402ed9
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 + 0xc], 0
cmp dword [edi], 0x696c7062
jne 0x403c65
cmp dword [edi + 4], 0x30307473
jne 0x403c65
lea eax, [esp + 0xc]
push eax
push ebx
push edi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x403c72
lea eax, [esp + 0xc]
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 + 0x10]
add esp, 4
test eax, eax
jne 0x403caa
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 0x402ed9
push str.CFBundleIdentifier
push eax
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x403ccc
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.plist.dll_plist_free]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
jmp 0x40423e
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 0x402ed9
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 + 0x30], edi
test edi, edi
jne 0x403d5d
push dword [esp + 0x38]
push dword [0x40947c]
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 0x402ed9
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
push ecx
mov edx, str.iTunesMetadata.plist
mov dword [esp + 0x5c], 0
mov ecx, edi
call fcn.00401730
mov esi, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x403de3
mov edi, dword [esp + 0x10]
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 0x403dd0
cmp dword [esi + 4], 0x30307473
jne 0x403dd0
lea eax, [esp + 0x50]
push eax
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
mov edi, dword [esp + 0x3c]
jmp 0x403dfe
lea eax, [esp + 0x50]
push eax
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_xml]
mov edi, dword [esp + 0x3c]
jmp 0x403dfe
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 + 0xc], 0
mov dword [esp + 0x10], 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
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 0x403e7d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x403e50
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 0x403e7d
cmp esi, 8
jle 0x403e7d
mov al, byte [edi + 8]
lea esi, [edi + 8]
cmp al, 0x2e
jne 0x403e90
cmp ebx, dword [esp + 0x4c]
jge 0x403ec9
mov edi, dword [esp + 0x30]
jmp 0x403e33
cmp al, 0x2f
je 0x403e9a
mov al, byte [esi + 1]
inc esi
jmp 0x403e90
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 0x403ecb
xor ebx, ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ed0
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 0x403ef0
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 0x403f10
mov eax, dword [str.Info.plist]
mov edx, esi
mov ebx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [0x407200]
mov dword [ecx + 4], eax
mov ax, word [0x407204]
mov word [ecx + 8], ax
mov al, byte [0x407206]
mov byte [ecx + 0xa], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00401730
add esp, 0xc
push esi
test eax, eax
jns 0x403f94
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 0x402ed9
call edi
mov esi, dword [esp + 0x10]
add esp, 4
cmp dword [esi], 0x696c7062
jne 0x403fc0
cmp dword [esi + 4], 0x30307473
jne 0x403fc0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x403fd0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
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 0x404013
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 0x402ed9
mov edi, dword [sym.imp.plist.dll_plist_dict_get_item]
push str.CFBundleExecutable
push eax
mov dword [esp + 0x3c], 0
call edi
mov esi, dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
test eax, eax
je 0x404041
lea ecx, [esp + 0x34]
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 0x40405e
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 + 0x38]
add esp, 4
mov dword [esp + 0x18], 0
test eax, eax
jne 0x404085
push str.Could_not_determine_value_for_CFBundleExecutable__n
jmp 0x403fe6
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.004011f0
add esp, 0x10
test eax, eax
jns 0x4040c6
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 0x402ed9
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x14]
add esp, 4
mov dword [esp + 0xc], 0
mov edx, esi
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00401730
mov edi, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x40411a
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
mov ebx, eax
jmp 0x404136
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.004011f0
add esp, 0x10
test eax, eax
jns 0x404188
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 0x402ed9
push dword [0x40947c]
push str.Copying__s_to_device...
call fcn.00401040
mov esi, dword [esp + 0x28]
mov edx, dword [0x40947c]
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00401da0
add esp, 0xc
test eax, eax
jns 0x4041c2
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402ed7
push str.DONE._n
call fcn.00401040
mov eax, dword [esp + 0x48]
add esp, 4
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4041ed
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 0x404207
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 0x40420d
mov ebx, dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x404223
push 0
push eax
push str.iTunesMetadata
push edi
call ebx
add esp, 0x10
mov ebx, dword [esp + 0x30]
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 [0x409484], 2
push dword [esp + 0x44]
jne 0x40426d
push str.Installing__s_n
call fcn.00401040
push 0
push 0x4012a0
push edi
push esi
push dword [esp + 0x54]
call dword [sym.imp.imobiledevice.dll_instproxy_install]
jmp 0x40428a
push str.Upgrading__s_n
call fcn.00401040
push 0
push 0x4012a0
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 [0x409474], 1
jmp 0x40340b
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 0x402ed9
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 [0x409468]
add esp, 0x10
mov dword [esp + 0x14], esi
test eax, eax
je 0x4044df
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 0x406bec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x404429
mov edx, str.list_system
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x404347
test bl, bl
je 0x404343
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x404347
add eax, 2
add edx, 2
test bl, bl
jne 0x404327
xor eax, eax
jmp 0x40434c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40436a
push eax
push str.System
push str.ApplicationType
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_add]
add esp, 0x10
jmp 0x40440f
mov edx, str.list_all
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x404391
test bl, bl
je 0x40438d
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x404391
add eax, 2
add edx, 2
test bl, bl
jne 0x404371
xor eax, eax
jmp 0x404396
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4043ab
push str.ApplicationType
push edi
call dword [sym.imp.plist.dll_plist_dict_remove_item]
add esp, 8
jmp 0x40440f
mov edx, str.list_user
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x4043d2
test bl, bl
je 0x4043ce
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x4043d2
add eax, 2
add edx, 2
test bl, bl
jne 0x4043b2
xor eax, eax
jmp 0x4043d7
sbb eax, eax
or eax, 1
test eax, eax
je 0x40440f
mov eax, 0x406e9c
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404400
test dl, dl
je 0x4043fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404400
add ecx, 2
add eax, 2
test dl, dl
jne 0x4043e0
xor eax, eax
jmp 0x404405
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
cmove esi, eax
push 0x406bec
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x404320
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 0x4044df
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 0x4044be
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 4
jne 0x4044be
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x50], 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4044ac
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push dword [esp + 0x2c]
call ebx
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.plist.dll_plist_free]
add esp, 4
jmp 0x402ed7
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 0x402ed9
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 0x4012a0
push edi
push dword [esp + 0x48]
call dword [sym.imp.imobiledevice.dll_instproxy_browse_with_callback]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, eax
add esp, 0x10
cmp esi, 0xfffffffa
jne 0x404575
push str.NOTE:_timeout_waiting_for_device_to_browse_apps__trying_again..._n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 8
push edi
call dword [sym.imp.imobiledevice.dll_instproxy_client_options_free]
add esp, 4
test esi, esi
je 0x403401
push esi
push str.ERROR:_instproxy_browse_returned__d_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
or ebx, 0xffffffff
jmp 0x402ed9
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 0x402ed9
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 0x402ed9