Function at 0x401a9c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.getopt.dll_getopt_long_a]
push 0
push 0x405018
push str.hu:dv
push ebx
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
call edi
add esp, 0x14
cmp eax, 0xffffffff
je 0x401aee
add eax, 0xffffff9c
cmp eax, 0x12
ja case.0x401a95.101
movzx eax, byte [eax + 0x4020b0]
jmp dword [eax*4 + 0x40209c]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x401b1a
push dword [0x4053c8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 8
mov dword [0x4053c8], eax
jmp 0x401ad6
push 1
call dword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
add esp, 4
push 0
push 0x405018
push str.hu:dv
push ebx
push esi
call edi
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401a82
mov eax, dword [sym.imp.getopt.dll_optind]
mov eax, dword [eax]
sub esi, eax
cmp esi, 1
jge 0x401b6c
push str.ERROR:_You_need_to_specify_a_COMMAND__n
call fcn.00401870
add esp, 4
mov edx, ebx
call fcn.00401950
mov esi, 1
jmp 0x402051
push str.ERROR:_UDID_must_not_be_empty__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
mov edx, ebx
call fcn.00401950
mov esi, 1
jmp 0x402051
mov edx, ebx
call fcn.00401950
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.1.0.0
push str.idevicepair
push str._s__s_n
call fcn.00401870
jmp 0x40204c
mov esi, dword [ebx + eax*4]
mov ecx, str.pair
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401b96
test dl, dl
je 0x401b92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401b96
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b76
xor eax, eax
jmp 0x401b9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401ba7
lea edi, [eax + 1]
jmp 0x401cd4
mov ecx, str.validate
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401bd0
test dl, dl
je 0x401bcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401bd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401bb0
xor eax, eax
jmp 0x401bd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401be1
lea edi, [eax + 2]
jmp 0x401cd4
mov ecx, str.unpair
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c08
test dl, dl
je 0x401c04
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c08
add eax, 2
add ecx, 2
test dl, dl
jne 0x401be8
xor eax, eax
jmp 0x401c0d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401c19
lea edi, [eax + 3]
jmp 0x401cd4
mov ecx, str.list
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c40
test dl, dl
je 0x401c3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c40
add eax, 2
add ecx, 2
test dl, dl
jne 0x401c20
xor eax, eax
jmp 0x401c45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401c9d
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00401510
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov edi, dword [ebp - 0x14]
test ebx, ebx
je 0x401c8e
nop word [eax + eax]
push dword [edi + esi*4]
push 0x4031bc
call fcn.00401870
push dword [edi + esi*4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add esp, 0xc
cmp esi, ebx
jb 0x401c70
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x40204f
mov ecx, str.hostid
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401cc4
test dl, dl
je 0x401cc0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401cc4
add eax, 2
add ecx, 2
test dl, dl
jne 0x401ca4
xor eax, eax
jmp 0x401cc9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401fa2
lea edi, [eax + 5]
push dword [0x4053c8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.imobiledevice.dll_idevice_new]
add esp, 8
test eax, eax
mov eax, dword [0x4053c8]
je 0x401d23
test eax, eax
je 0x401d0c
push eax
push str.No_device_found_with_udid__s._n
call fcn.00401870
add esp, 8
mov esi, 1
jmp 0x402051
push str.No_device_found._n
call fcn.00401870
add esp, 4
mov esi, 1
jmp 0x402051
test eax, eax
jne 0x401d59
push 0x4053c8
push dword [ebp - 8]
call dword [sym.imp.imobiledevice.dll_idevice_get_udid]
add esp, 8
test eax, eax
je 0x401d54
push eax
push str.ERROR:_Could_not_get_device_udid__error_code__d_n
call fcn.00401870
add esp, 8
mov esi, 1
jmp 0x402051
mov eax, dword [0x4053c8]
cmp edi, 5
jne 0x401e3b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], 0
push ecx
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.usbmuxd.dll_usbmuxd_read_pair_record]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0xc]
jns 0x401da4
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x401de4
push eax
jmp 0x401ddf
cmp dword [eax], 0x696c7062
jne 0x401dc5
cmp dword [eax + 4], 0x30307473
jne 0x401dc5
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push eax
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x401dd3
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push eax
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 dword [ebp - 0xc]
call ebx
add esp, 4
push str.HostID
push dword [ebp - 0x10]
call dword [sym.imp.plist.dll_plist_dict_get_item]
mov esi, eax
add esp, 8
test esi, esi
je 0x401e18
push esi
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 3
jne 0x401e18
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
push dword [ebp - 0x18]
push 0x4031bc
call fcn.00401870
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x10]
call dword [sym.imp.plist.dll_plist_free]
add esp, 0x10
jmp 0x40204f
push str.idevicepair
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new]
add esp, 0xc
test eax, eax
je 0x401e6c
push eax
push str.ERROR:_Could_not_connect_to_lockdownd__error_code__d_n
call fcn.00401870
add esp, 8
mov esi, 1
jmp 0x402051
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push dword [ebp - 4]
call dword [sym.imp.imobiledevice.dll_lockdownd_query_type]
add esp, 8
test eax, eax
je 0x401e9a
push eax
push str.QueryType_failed__error_code__d_n
call fcn.00401870
add esp, 8
mov esi, 1
jmp 0x402051
mov ebx, dword [ebp - 0x1c]
mov eax, str.com.apple.mobile.lockdown
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401ec4
test dl, dl
je 0x401ec0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401ec4
add eax, 2
add ecx, 2
test dl, dl
jne 0x401ea4
xor eax, eax
jmp 0x401ec9
sbb eax, eax
or eax, 1
test eax, eax
je 0x401ede
push ebx
push str.WARNING:_QueryType_request_returned__s_n
call fcn.00401870
mov ebx, dword [ebp - 0x1c]
add esp, 8
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
sub edi, 2
je 0x401f52
push 0
push dword [ebp - 4]
sub edi, 1
je 0x401f2d
call dword [sym.imp.imobiledevice.dll_lockdownd_pair]
add esp, 8
test eax, eax
jne 0x401f1c
push dword [0x4053c8]
push str.SUCCESS:_Paired_with_device__s_n
call fcn.00401870
add esp, 8
jmp 0x402051
mov ecx, eax
mov esi, 1
call fcn.004018a0
jmp 0x402051
call dword [sym.imp.imobiledevice.dll_lockdownd_unpair]
add esp, 8
test eax, eax
jne 0x401f1c
push dword [0x4053c8]
push str.SUCCESS:_Unpaired_with_device__s_n
call fcn.00401870
add esp, 8
jmp 0x402051
push dword [ebp - 4]
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
call edi
push str.idevicepair
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 8]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
add esp, 0x10
test eax, eax
jne 0x401f91
push dword [0x4053c8]
push str.SUCCESS:_Validated_pairing_with_device__s_n
call fcn.00401870
add esp, 8
jmp 0x402057
mov ecx, eax
mov esi, 1
call fcn.004018a0
jmp 0x402057
mov ecx, str.systembuid
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401fd0
test dl, dl
je 0x401fcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401fd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401fb0
xor eax, eax
jmp 0x401fd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40207d
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.usbmuxd.dll_usbmuxd_read_buid]
add esp, 4
test eax, eax
jne 0x402018
push str.SystemBUID
push dword [ebp - 0x10]
push str.using__s_as__s
push 0xc6
push str.D:_a1_slibimobiledevicecommonuserpref.c
push str.userpref_read_system_buid
call dword [sym.imp.imobiledevice.dll_debug_info_real]
add esp, 0x18
jmp 0x402036
push eax
push str.could_not_read_system_buid__error__d
push 0xc8
push str.D:_a1_slibimobiledevicecommonuserpref.c
push str.userpref_read_system_buid
call dword [sym.imp.imobiledevice.dll_debug_info_real]
add esp, 0x14
push dword [ebp - 0x10]
push 0x4031bc
call fcn.00401870
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
xor esi, esi
mov edi, dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call dword [sym.imp.imobiledevice.dll_idevice_free]
push dword [0x4053c8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.ERROR:_Invalid_command__s_specified_n
call fcn.00401870
add esp, 8
mov edx, ebx
call fcn.00401950
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
retf