Function at 0x401100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x403500]
lea eax, [ebp - 0x64]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push eax
push str.du:hnv
push ebx
push edi
mov dword [ebp - 0x64], str.udid
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x75
mov dword [ebp - 0x54], str.network
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x6e
mov dword [ebp - 0x44], str.debug
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x34], str.help
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x68
mov dword [ebp - 0x24], str.version
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x68], esi
call dword [sym.imp.getopt.dll_getopt_long_a]
add esp, 0x14
cmp eax, 0xffffffff
je 0x40125b
nop word [eax + eax]
add eax, 0xffffff9c
cmp eax, 0x12
ja case.0x4011f3.101
movzx eax, byte [eax + 0x401498]
jmp dword [eax*4 + 0x401480]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov esi, dword [eax]
cmp byte [esi], 0
jne 0x401240
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
call fcn.00401070
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x68], 1
jmp 0x401240
push 1
call dword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
add esp, 4
push 0
lea eax, [ebp - 0x64]
push eax
push str.du:hnv
push ebx
push edi
call dword [sym.imp.getopt.dll_getopt_long_a]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4011e0
mov eax, dword [sym.imp.getopt.dll_optind]
mov eax, dword [eax]
sub edi, eax
lea ebx, [ebx + eax*4]
cmp edi, 1
jle 0x4012e2
call fcn.00401070
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
call fcn.00401070
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
push str.1.0.0
push str.idevicename
push str._s__s_n
call fcn.00401040
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
call fcn.00401070
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x68], eax
setne al
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call dword [sym.imp.imobiledevice.dll_idevice_new_with_options]
add esp, 0xc
test eax, eax
je 0x40136a
test esi, esi
je 0x40133d
push esi
push str.ERROR:_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 [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
push str.ERROR:_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 [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
push str.idevicename
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push dword [ebp - 0x70]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4013c6
push dword [ebp - 0x70]
call dword [sym.imp.imobiledevice.dll_idevice_free]
add esp, 4
push esi
push str.ERROR:_Could_not_connect_to_lockdownd__error_code__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 eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014ab
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x401405
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], edi
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.imobiledevice.dll_lockdownd_get_device_name]
mov ecx, dword [ebp - 0x68]
add esp, 8
test ecx, ecx
je 0x4013fd
push ecx
push 0x403138
call fcn.00401040
push dword [ebp - 0x68]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x74], edi
jmp 0x401454
push eax
push str.ERROR:_Could_not_get_device_name__lockdown_error__d_n
jmp 0x401443
push dword [ebx]
call dword [sym.imp.plist.dll_plist_new_string]
push eax
push str.DeviceName
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.imobiledevice.dll_lockdownd_set_value]
add esp, 0x14
test eax, eax
jne 0x40143d
push dword [ebx]
push str.device_name_set_to__s_n
call fcn.00401040
add esp, 8
mov dword [ebp - 0x74], 0
jmp 0x401457
push eax
push str.ERROR:_Could_not_set_device_name__lockdown_error__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
push dword [ebp - 0x6c]
call dword [sym.imp.imobiledevice.dll_lockdownd_client_free]
push dword [ebp - 0x70]
call dword [sym.imp.imobiledevice.dll_idevice_free]
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004014ab
mov esp, ebp
pop ebp
ret