Function at 0x140003f28
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
movzx eax, word [rsp + 0x78]
movzx ecx, word [rsp + 0x68]
mov r9d, eax
mov r8, qword [rsp + 0x70]
mov edx, ecx
mov rcx, qword [rsp + 0x60]
call fcn.140003bb4
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jg 0x140003f89
mov eax, 0xffffffff
jmp 0x1400043e2
movzx eax, word [0x14000a6d4]
test eax, eax
je 0x140003fac
movzx eax, word [rsp + 0x78]
test eax, eax
jne 0x140003faa
lea rcx, str.UDP_listen_needs__p_arg
call fcn.140003288
nop
jmp 0x140003fd7
movsxd rax, dword [rsp + 0x34]
mov edx, 1
mov rcx, rax
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140003fd7
lea rcx, str.local_listen_fuxored
call fcn.140003288
nop
movzx eax, word [0x14000a6f4]
test eax, eax
je 0x1400040b7
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
movsxd rax, dword [rsp + 0x34]
lea r8, [rsp + 0x38]
mov rdx, qword [0x14000a710]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140004020
lea rcx, str.local_getsockname_failed
call fcn.140003198
nop
lea rdx, str.listening_on__
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
mov rax, qword [0x14000a710]
cmp dword [rax + 4], 0
je 0x140004064
mov rax, qword [0x14000a710]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat]
nop
jmp 0x140004079
lea rdx, [0x140007d88]
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat]
nop
lea rdx, str.___d_...
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat]
mov rax, qword [0x14000a710]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov edx, eax
mov rcx, qword [0x14000a8a0]
call fcn.140003198
nop
movzx eax, word [0x14000a6d4]
test eax, eax
je 0x140004160
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov edx, dword [0x14000a854]
mov ecx, 2
call fcn.140003328
lea rcx, [0x14000a750]
mov rdx, rsp
call sub.VCRUNTIME140.dll___intrinsic_setjmp
test eax, eax
jne 0x14000412e
movsxd rax, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [0x14000a738]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8d, 0x2000
mov rdx, qword [0x14000a8a0]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rsp + 0x3c], eax
jmp 0x140004133
jmp 0x1400043b0
xor edx, edx
xor ecx, ecx
call fcn.140003328
movsxd rax, dword [rsp + 0x34]
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 + 0x3c], eax
jmp 0x1400041e2
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov edx, dword [0x14000a854]
mov ecx, 2
call fcn.140003328
lea rcx, [0x14000a750]
mov rdx, rsp
call sub.VCRUNTIME140.dll___intrinsic_setjmp
test eax, eax
jne 0x1400041ab
movsxd rax, dword [rsp + 0x34]
lea r8, [rsp + 0x38]
mov rdx, qword [0x14000a738]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_accept]
mov dword [rsp + 0x3c], eax
jmp 0x1400041b0
jmp 0x1400043b0
xor edx, edx
xor ecx, ecx
call fcn.140003328
movsxd rax, dword [rsp + 0x34]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x3c], 0
jge 0x1400041ee
jmp 0x1400043bc
mov r8d, 0x40
xor edx, edx
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [0x14000a8a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
movsxd rax, dword [rsp + 0x34]
lea r8, [rsp + 0x38]
mov rdx, qword [0x14000a710]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140004258
lea rcx, str.post_rcv_getsockname_failed
call fcn.140003198
nop
mov rax, qword [0x14000a710]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
mov rax, qword [0x14000a738]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
mov rax, qword [0x14000a738]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [0x14000a8a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
movzx eax, word [0x14000a720]
mov edx, eax
mov rcx, qword [0x14000a8a0]
call fcn.1400034a0
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x60], 0
je 0x14000430d
mov rax, qword [rsp + 0x40]
add rax, 0x1c0
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x14000430d
mov dword [rsp + 0x38], 1
movzx eax, word [rsp + 0x68]
test eax, eax
je 0x14000432c
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x68]
cmp eax, ecx
je 0x14000432c
mov dword [rsp + 0x38], 1
cmp dword [rsp + 0x38], 0
je 0x14000436f
movzx eax, word [rsp + 0x30]
mov ecx, 0x18
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rcx + 0x100]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
mov rdx, qword [rsp + 0x48]
lea rcx, str.invalid_connection_to___s__from__s___s___d
call fcn.140003288
nop
movzx eax, word [rsp + 0x30]
mov ecx, 0x18
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rcx + 0x100]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
mov rdx, qword [rsp + 0x48]
lea rcx, str.connect_to___s__from__s___s___d
call fcn.140003198
mov eax, dword [rsp + 0x34]
jmp 0x1400043e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x274c
movsxd rax, dword [rsp + 0x34]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
add rsp, 0x58
ret