Function at 0x140001130
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov dword [rbp - 0x31], 1
lea rax, str.udid
mov dword [rbp - 0x59], r12d
mov qword [rbp - 0x39], rax
lea r9, [rbp - 0x39]
lea rax, str.help
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x19], rax
lea r8, str.du:h
lea rax, [rbp - 0x59]
mov dword [rbp - 0x21], 0x75
mov qword [rsp + 0x20], rax
mov r14, rdx
mov edi, ecx
mov dword [rbp - 0x11], r12d
mov esi, 0xffffffff
mov qword [rbp - 9], r12
mov ebx, r12d
mov dword [rbp - 1], 0x68
mov qword [rbp + 7], r12
mov dword [rbp + 0xf], r12d
mov qword [rbp + 0x17], r12
mov dword [rbp + 0x1f], r12d
call qword [sym.imp.getopt.dll_getopt_long_a]
cmp eax, esi
je 0x140001247
cmp eax, 0x64
je 0x140001219
cmp eax, 0x68
je 0x1400012f0
cmp eax, 0x75
jne 0x140001260
mov rax, qword [sym.imp.getopt.dll_optarg_a]
mov rdx, qword [rax]
cmp byte [rdx], r12b
je 0x1400012c5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [sym.imp.getopt.dll_optarg_a]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
jmp 0x140001224
mov ecx, 1
call qword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
lea rax, [rbp - 0x59]
mov rdx, r14
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r8, str.du:h
mov ecx, edi
call qword [sym.imp.getopt.dll_getopt_long_a]
cmp eax, esi
jne 0x1400011d5
mov rax, qword [sym.imp.getopt.dll_optind]
movsxd rcx, dword [rax]
sub edi, ecx
lea r15, [r14 + rcx*8]
cmp edi, 1
jle 0x140001357
lea rcx, str.Usage:_idevicename__OPTIONS___NAME__n
call fcn.140001060
lea rcx, str.Display_the_device_name_or_set_it_to_NAME_if_specified._n
call fcn.140001060
lea rcx, [0x1400032b4]
call fcn.140001060
lea rcx, str.___d____debug_t_tenable_communication_debugging_n
call fcn.140001060
lea rcx, str.___u____udid_UDID_ttarget_specific_device_by_UDID_n
call fcn.140001060
lea rcx, str.___h____help_t_tprint_usage_information_n
call fcn.140001060
lea rcx, [0x1400032b4]
call fcn.140001060
lea rcx, str.Homepage:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n
call fcn.140001060
jmp 0x14000149f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR:_UDID_must_not_be_empty__n
call fcn.140001010
call fcn.1400010c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.Usage:_idevicename__OPTIONS___NAME__n
call fcn.140001060
lea rcx, str.Display_the_device_name_or_set_it_to_NAME_if_specified._n
call fcn.140001060
lea rcx, [0x1400032b4]
call fcn.140001060
lea rcx, str.___d____debug_t_tenable_communication_debugging_n
call fcn.140001060
lea rcx, str.___u____udid_UDID_ttarget_specific_device_by_UDID_n
call fcn.140001060
lea rcx, str.___h____help_t_tprint_usage_information_n
call fcn.140001060
lea rcx, [0x1400032b4]
call fcn.140001060
lea rcx, str.Homepage:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n
call fcn.140001060
xor eax, eax
jmp 0x1400014a1
mov rdx, rbx
mov qword [rbp - 0x49], r12
lea rcx, [rbp - 0x49]
call qword [sym.imp.imobiledevice.dll_idevice_new]
test eax, eax
je 0x14000138b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR:_Could_not_connect_to_device_n
call fcn.140001010
jmp 0x14000149f
mov rcx, qword [rbp - 0x49]
lea r8, str.idevicename
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x51], r12
call qword [sym.imp.imobiledevice.dll_lockdownd_client_new_with_handshake]
mov r14d, eax
test eax, eax
je 0x1400013d7
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.imobiledevice.dll_idevice_free]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, r14d
lea rdx, str.ERROR:_Could_not_connect_to_lockdownd__error_code__d_n
mov rcx, rax
call fcn.140001010
jmp 0x14000149f
test edi, edi
jne 0x140001427
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp - 0x41]
mov qword [rbp - 0x41], r12
call qword [sym.imp.imobiledevice.dll_lockdownd_get_device_name]
mov rdx, qword [rbp - 0x41]
mov edi, eax
test rdx, rdx
je 0x140001413
lea rcx, [0x1400032b0]
call fcn.140001060
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r12d
jmp 0x14000147d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.ERROR:_Could_not_get_device_name__lockdown_error__d_n
jmp 0x140001472
mov rcx, qword [r15]
call qword [sym.imp.plist.dll_plist_new_string]
mov rcx, qword [rbp - 0x51]
lea r8, str.DeviceName
mov r9, rax
xor edx, edx
call qword [sym.imp.imobiledevice.dll_lockdownd_set_value]
mov edi, eax
test eax, eax
jne 0x140001460
mov rdx, qword [r15]
lea rcx, str.device_name_set_to__s_n
call fcn.140001060
mov esi, r12d
jmp 0x14000147d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.ERROR:_Could_not_set_device_name__lockdown_error__d_n
mov r8d, edi
mov rcx, rax
call fcn.140001010
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.imobiledevice.dll_lockdownd_client_free]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.imobiledevice.dll_idevice_free]
test rbx, rbx
je 0x14000149f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400014e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret