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

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov eax, edx
mov qword [rbp + 0x20], r8
mov edx, r9d
mov word [rbp + 0x18], ax
mov eax, edx
mov word [rbp + 0x28], ax
mov qword [rbp - 0x18], 0
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
movzx edx, word [rbp + 0x28]
movzx eax, word [rbp + 0x18]
mov r8, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov r9d, edx
mov edx, eax
call sym.doconnect
mov dword [rbp - 0x34], eax
test eax, eax
jg 0x140004003
mov eax, 0xffffffff
jmp 0x14000449c
movzx eax, word [0x140012214]
test ax, ax
je 0x140004027
cmp word [rbp + 0x28], 0
jne 0x140004051
lea rax, str.UDP_listen_needs__p_arg
mov rcx, rax
call sym.bail
jmp 0x140004051
movsxd rax, dword [rbp - 0x34]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_listen]
call rax
mov ebx, eax
test ebx, ebx
jns 0x140004051
lea rax, str.local_listen_fuxored
mov rcx, rax
call sym.bail
movzx eax, word [0x140012216]
test ax, ax
je 0x14000415e
mov dword [rbp - 0x2c], 0x10
mov rdx, qword [0x1400121a8]
movsxd rax, dword [rbp - 0x34]
lea rcx, [rbp - 0x2c]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getsockname]
call rax
mov ebx, eax
test ebx, ebx
jns 0x14000409b
lea rax, str.local_getsockname_failed
mov rcx, rax
call sym.holler
mov rax, qword [0x1400121d0]
movabs rsi, 0x6e696e657473696c
mov qword [rax], rsi
movabs rsi, 0x5b206e6f20676e
mov qword [rax + 7], rsi
mov rax, qword [0x1400121a8]
mov eax, dword [rax + 4]
test eax, eax
je 0x1400040f4
mov rax, qword [0x1400121a8]
mov eax, dword [rax + 4]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
mov rax, qword [0x1400121d0]
mov rcx, rax
call sym.strcat
jmp 0x14000410c
mov rbx, qword [0x1400121d0]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov dword [rax], 0x796e61
mov rbx, qword [0x1400121d0]
mov rcx, rbx
call sym.strlen
add rax, rbx
movabs rbx, 0x2e2e2e206425205d
mov qword [rax], rbx
mov byte [rax + 8], 0
mov rax, qword [0x1400121a8]
movzx eax, word [rax + 2]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_ntohs]
call rax
mov word [rbp - 0x1a], ax
movzx eax, word [rbp - 0x1a]
mov rcx, qword [0x1400121d0]
mov edx, eax
call sym.holler
movzx eax, word [0x140012214]
test ax, ax
je 0x140004210
mov dword [rbp - 0x2c], 0x10
mov eax, dword [0x140012218]
mov edx, eax
mov ecx, 2
call sym.arm
mov rax, rbp
mov rdx, rax
lea rax, [0x140012080]
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14000445b
mov r8, qword [0x1400121b0]
mov rdx, qword [0x1400121d0]
mov esi, dword [rbp - 0x34]
movsxd rax, esi
lea rcx, [rbp - 0x2c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
mov r9d, 2
mov r8d, 0x2000
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recvfrom]
call rax
mov edx, 0
mov ecx, 0
call sym.arm
mov rdx, qword [0x1400121b0]
movsxd rax, esi
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov ebx, eax
jmp 0x14000429d
mov dword [rbp - 0x2c], 0x10
mov eax, dword [0x140012218]
mov edx, eax
mov ecx, 2
call sym.arm
mov rax, rbp
mov rdx, rax
lea rax, [0x140012080]
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14000445e
mov rdx, qword [0x1400121b0]
mov esi, dword [rbp - 0x34]
movsxd rax, esi
lea rcx, [rbp - 0x2c]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_accept]
call rax
mov ebx, eax
mov edx, 0
mov ecx, 0
call sym.arm
movsxd rax, esi
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_shutdown]
call rax
movsxd rax, esi
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov dword [rbp - 0x34], ebx
test ebx, ebx
js 0x140004470
mov rax, qword [0x1400121d0]
mov r8d, 0x40
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [0x1400121d0]
add rax, 0x20
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], 0x10
mov rdx, qword [0x1400121a8]
movsxd rax, dword [rbp - 0x34]
lea rcx, [rbp - 0x2c]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getsockname]
call rax
mov ebx, eax
test ebx, ebx
jns 0x140004308
lea rax, str.post_rcv_getsockname_failed
mov rcx, rax
call sym.holler
mov rax, qword [0x1400121a8]
mov eax, dword [rax + 4]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.strcpy
mov rax, qword [0x1400121b0]
movzx eax, word [rax + 2]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_ntohs]
call rax
mov word [rbp - 0x1a], ax
mov rax, qword [0x1400121b0]
mov eax, dword [rax + 4]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
mov rax, qword [0x1400121d0]
mov rcx, rax
call sym.strcpy
movzx eax, word [0x14001220e]
movzx eax, ax
mov rcx, qword [0x1400121d0]
mov edx, eax
call sym.gethostpoop
mov qword [rbp - 0x18], rax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov dword [rbp - 0x2c], 0
cmp qword [rbp + 0x10], 0
je 0x1400043d1
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 0x1c0]
mov rax, qword [rbp + 0x10]
mov r8d, 0x10
mov rcx, rax
call sym.memcmp
test eax, eax
je 0x1400043d1
mov dword [rbp - 0x2c], 1
cmp word [rbp + 0x18], 0
je 0x1400043e9
movzx eax, word [rbp - 0x1a]
cmp ax, word [rbp + 0x18]
je 0x1400043e9
mov dword [rbp - 0x2c], 1
mov eax, dword [rbp - 0x2c]
test eax, eax
je 0x140004423
movzx edx, word [rbp - 0x1a]
mov rax, qword [rbp - 0x18]
lea r8, [rax + 0x100]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
mov rdx, rax
lea rax, str.invalid_connection_to___s__from__s___s___d
mov rcx, rax
call sym.bail
movzx edx, word [rbp - 0x1a]
mov rax, qword [rbp - 0x18]
lea r8, [rax + 0x100]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
mov rdx, rax
lea rax, str.connect_to___s__from__s___s___d
mov rcx, rax
call sym.holler
mov eax, dword [rbp - 0x34]
jmp 0x14000449c
nop
jmp 0x14000445f
nop
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0x274c
jmp 0x140004471
nop
mov ebx, dword [rbp - 0x34]
movsxd rax, ebx
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret