Function at 0x140003bb4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movzx eax, word [0x14000a6d4]
test eax, eax
je 0x140003c0a
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [0x14000a898], eax
jmp 0x140003c26
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [0x14000a898], eax
cmp dword [0x14000a898], 0
jge 0x140003c3c
lea rcx, str.Cant_get_socket
call fcn.140003288
nop
cmp dword [0x14000a898], 0
jne 0x140003c56
mov ecx, dword [0x14000a898]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__dup
mov dword [0x14000a898], eax
movsxd rax, dword [0x14000a898]
mov dword [rsp + 0x20], 8
mov r9, qword [0x14000a8b8]
mov r8d, 4
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140003c98
lea rcx, str.nnetfd_reuseaddr_failed
call fcn.140003198
nop
mov eax, 2
mov rcx, qword [0x14000a710]
mov word [rcx], ax
mov eax, 2
mov rcx, qword [0x14000a738]
mov word [rcx], ax
cmp qword [rsp + 0x70], 0
je 0x140003cde
mov rax, qword [0x14000a710]
add rax, 4
mov r8d, 4
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
movzx eax, word [rsp + 0x78]
test eax, eax
je 0x140003cfd
movzx ecx, word [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x14000a710]
mov word [rcx + 2], ax
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x70], 0
jne 0x140003d1a
movzx eax, word [rsp + 0x78]
test eax, eax
je 0x140003dc9
movzx eax, word [rsp + 0x78]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x34], 4
jmp 0x140003d37
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x140003dc9
movsxd rax, dword [0x14000a898]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [0x14000a710]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140003d6c
jmp 0x140003dc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x2740
je 0x140003d7e
jmp 0x140003dc9
movzx eax, word [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rcx, qword [0x14000a710]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rsp + 0x38]
mov r8d, ecx
mov rdx, rax
lea rcx, str.retrying_local__s:_d
call fcn.140003198
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__sleep]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
jmp 0x140003d2d
cmp dword [rsp + 0x30], 0
je 0x140003e00
movzx eax, word [rsp + 0x78]
mov dword [rsp + 0x3c], eax
mov rcx, qword [0x14000a710]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rsp + 0x3c]
mov r8d, ecx
mov rdx, rax
lea rcx, str.Cant_grab__s:_d_with_bind
call fcn.140003288
nop
movzx eax, word [0x14000a700]
test eax, eax
je 0x140003e16
mov eax, dword [0x14000a898]
jmp 0x140003f21
mov rax, qword [0x14000a738]
add rax, 4
mov r8d, 4
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movzx ecx, word [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x14000a738]
mov word [rcx + 2], ax
cmp dword [0x14000a6f0], 0
je 0x140003e61
lea rcx, str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.140003198
nop
mov edx, dword [0x14000a854]
mov ecx, 1
call fcn.140003328
lea rcx, [0x14000a750]
mov rdx, rsp
call sub.VCRUNTIME140.dll___intrinsic_setjmp
test eax, eax
jne 0x140003ea7
movsxd rax, dword [0x14000a898]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [0x14000a738]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x30], eax
jmp 0x140003ebb
mov dword [rsp + 0x30], 0xffffffff
mov ecx, 0x274c
call qword [sym.imp.WS2_32.dll_WSASetLastError]
nop
xor edx, edx
xor ecx, ecx
call fcn.140003328
cmp dword [rsp + 0x30], 0
jne 0x140003ed3
mov eax, dword [0x14000a898]
jmp 0x140003f21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
movsxd rax, dword [0x14000a898]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [0x14000a898]
mov rcx, rax
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.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
add rsp, 0x58
ret