Function at 0x140001f50
Capabilities:
Create thread
Initialize winsock library
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor r14d, r14d
mov dword [rbp + 0x108], 0x64
lea rax, str.debug
mov dword [rbp + 0xf8], r14d
mov qword [rbp + 0xf0], rax
lea r9, [rbp + 0xf0]
lea rax, str.help
mov qword [rbp + 0x100], r14
mov qword [rbp + 0x110], rax
lea r8, str.dhu:lnm
lea rax, str.udid
mov dword [rbp + 0x118], r14d
mov qword [rbp + 0x130], rax
mov rbx, rdx
lea rax, str.local
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x150], rax
mov esi, ecx
lea rax, str.network
mov dword [rbp + 0x128], WSAGetLastError
mov qword [rbp + 0x170], rax
mov dword [rbp + 0x138], 1
mov qword [rbp + 0x140], r14
mov dword [rbp + 0x148], 0x75
mov dword [rbp + 0x158], r14d
mov qword [rbp + 0x160], r14
mov dword [rbp + 0x168], WSAStartup
mov dword [rbp + 0x178], r14d
mov qword [rbp + 0x180], r14
mov dword [rbp + 0x188], WSAStartup
mov qword [rbp + 0x190], r14
mov dword [rbp + 0x198], r14d
mov qword [rbp + 0x1a0], r14
mov dword [rbp + 0x1a8], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.getopt.dll_getopt_long_a]
cmp eax, 0xffffffff
je 0x14000212c
cmp eax, 0x64
je 0x1400020f1
cmp eax, 0x68
je 0x140002217
cmp eax, 0x6c
je 0x1400020e8
cmp eax, 0x6e
je 0x1400020df
cmp eax, 0x75
jne 0x1400021ef
mov rax, qword [sym.imp.getopt.dll_optarg_a]
mov rcx, qword [rax]
cmp byte [rcx], r14b
je 0x140002181
mov rcx, qword [0x140006630]
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 qword [0x140006630], rax
jmp 0x140002105
or dword [0x14000663c], 4
jmp 0x140002105
or dword [0x14000663c], 2
jmp 0x140002105
mov ecx, dword [0x140006638]
inc ecx
mov dword [0x140006638], ecx
call qword [sym.imp.usbmuxd.dll_libusbmuxd_set_debug_level]
lea r9, [rbp + 0xf0]
mov qword [rsp + 0x20], r14
lea r8, str.dhu:lnm
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.getopt.dll_getopt_long_a]
cmp eax, 0xffffffff
jne 0x140002085
mov eax, dword [0x14000663c]
mov edi, 2
test eax, eax
cmove eax, edi
mov dword [0x14000663c], eax
mov rax, qword [sym.imp.getopt.dll_optind]
movsxd rcx, dword [rax]
mov rax, rcx
sub esi, ecx
shl rax, 3
add rbx, rax
cmp esi, edi
jge 0x1400022b7
sub rbx, rax
lea edx, [rdi + 0x2d]
mov rcx, qword [rbx]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14000226f
lea rbx, [rax + 1]
jmp 0x140002272
mov edi, 2
mov ecx, edi
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
mov rcx, qword [rbx]
lea edx, [rdi + 0x2d]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400021b4
lea rbx, [rax + 1]
jmp 0x1400021b7
mov rbx, qword [rbx]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Usage:__s__OPTIONS__LOCAL_PORT_DEVICE_PORT_n
mov rcx, rax
call fcn.140001010
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Proxy_that_enables_TCP_service_access_to_iOS_devices._n_n___u____udid_UDID____target_specific_device_by_UDID_n___n____network______connect_to_network_device_n___l____local________connect_to_USB_device__default__n___h____help_________prints_usage_information_n___d____debug________increase_debug_level_n_nHomepage:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___nBug_reports:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n_n
call fcn.140001010
mov eax, edi
jmp 0x1400025bd
mov rcx, qword [rbx]
mov edx, 0x2f
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14000220d
lea rbx, [rax + 1]
mov edi, 2
jmp 0x1400021b7
mov rbx, qword [rbx]
mov edi, 2
jmp 0x1400021b7
mov rcx, qword [rbx]
mov edx, 0x2f
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140002230
lea rbx, [rax + 1]
jmp 0x140002233
mov rbx, qword [rbx]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Usage:__s__OPTIONS__LOCAL_PORT_DEVICE_PORT_n
mov rcx, rax
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Proxy_that_enables_TCP_service_access_to_iOS_devices._n_n___u____udid_UDID____target_specific_device_by_UDID_n___n____network______connect_to_network_device_n___l____local________connect_to_USB_device__default__n___h____help_________prints_usage_information_n___d____debug________increase_debug_level_n_nHomepage:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___nBug_reports:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n_n
call fcn.140001010
jmp 0x1400025bb
mov rbx, qword [rbx]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Usage:__s__OPTIONS__LOCAL_PORT_DEVICE_PORT_n
mov rcx, rax
call fcn.140001010
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Proxy_that_enables_TCP_service_access_to_iOS_devices._n_n___u____udid_UDID____target_specific_device_by_UDID_n___n____network______connect_to_network_device_n___l____local________connect_to_USB_device__default__n___h____help_________prints_usage_information_n___d____debug________increase_debug_level_n_nHomepage:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___nBug_reports:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n_n
call fcn.140001010
mov rcx, qword [0x140006630]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1400025bd
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [rbx + 8]
mov word [0x140006628], ax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movzx ebx, word [0x140006628]
mov word [0x14000662c], ax
test bx, bx
jne 0x140002312
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Invalid_listen_port_specified__n
mov rcx, rax
call fcn.140001010
mov rcx, qword [0x140006630]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffea
jmp 0x1400025bd
test ax, ax
jne 0x140002328
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Invalid_device_port_specified__n
jmp 0x1400022f3
cmp dword [0x140006624], r14d
mov dword [rsp + 0x30], 1
jne 0x14000237a
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002370
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.WSAStartup_failed__n
call fcn.140001010
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x140006624], 1
mov edx, 1
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
test eax, eax
jns 0x1400023a1
lea rcx, str.socket__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140002444
movsxd rsi, eax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400023d3
lea rcx, str.setsockopt__
jmp 0x140002435
mov ecx, 0x7f000001
mov qword [rsp + 0x40], r14
mov word [rsp + 0x38], di
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14000241b
lea rcx, str.bind__
jmp 0x140002435
mov edx, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14000248b
lea rcx, str.listen__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error_creating_socket:__s_n
mov rcx, rax
call fcn.140001010
mov rcx, qword [0x140006630]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
neg eax
jmp 0x1400025bd
lea rcx, str.waiting_for_connection_n
call fcn.140001670
movzx ebx, word [0x140006628]
mov ecx, 0x7f000001
mov qword [rsp + 0x40], r14
mov word [rsp + 0x38], di
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3a], ax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
test eax, eax
je 0x14000259d
nop dword [rax + rax]
mov edx, ebx
lea rcx, str.accepted_connection__fd___d_n
call fcn.140001670
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400025e4
mov qword [rsp + 0x28], r14
lea r8, [0x140001b10]
mov r9, rax
mov dword [rsp + 0x20], r14d
xor edx, edx
mov dword [rax], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.waiting_for_connection_n
call fcn.140001670
movzx ebx, word [0x140006628]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x7f000001
mov word [rsp + 0x38], di
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3a], ax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test eax, eax
jne 0x1400024f0
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x140006630]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140002630
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR:_Out_of_memory_n
call fcn.140001010
mov rcx, qword [0x140006630]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
jmp 0x1400025bd