Function at 0x14004d980
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Start tcp server

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, 0x1390
call fcn.1400d5380
sub rsp, rax
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x1370], rax
mov rax, qword [rcx + 0x18]
lea r8, [rsp + 0x50]
mov rbp, rdx
mov rbx, qword [rax + 0x118]
mov qword [rsp + 0x38], rdx
mov r13, rcx
call fcn.14004d560
lea r8, [0x1400f66e8]
lea rcx, [rsp + 0x1260]
mov r9, rbp
mov edx, 0x104
call fcn.14004a910
xor eax, eax
or rsi, 0xffffffffffffffff
lea rdi, [rsp + 0x1260]
mov rcx, rsi
repne scasb al, byte [rdi]
lea rax, [rsp + 0x1260]
sub rax, 1
not rcx
sub rcx, 1
add rcx, rax
lea rax, [rsp + 0x1260]
cmp rcx, rax
jbe 0x14004da33
cmp byte [rcx], 0x2f
je 0x14004da30
lea rax, [rsp + 0x1260]
sub rcx, 1
cmp rcx, rax
ja 0x14004da18
jmp 0x14004da33
mov byte [rcx], 0
mov rdx, qword [r13 + 0x18]
test rdx, rdx
je 0x14004da59
mov rax, qword [rdx + 0x138]
test rax, rax
je 0x14004da59
mov rdx, qword [rdx + 0x140]
mov rcx, qword [r13 + 0x58]
call rax
test eax, eax
jne 0x14004da8b
test rbx, rbx
je 0x14004da8b
lea rcx, [0x14013c0d0]
sub rbx, rcx
nop
nop
movzx eax, byte [rcx]
movzx edx, byte [rcx + rbx]
sub eax, edx
jne 0x14004da83
add rcx, 1
test edx, edx
jne 0x14004da70
test eax, eax
jne 0x14004dc50
xor eax, eax
mov qword [rsp + 0x1388], r14
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x1380], r15
mov r14d, esi
mov word [rsp + 0x40], 2
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov edi, esi
mov ebx, esi
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0x7f000001
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_htonl]
xor r8d, r8d
lea edx, [r8 + 1]
mov dword [rsp + 0x44], eax
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov r15, rax
je 0x14004dbe8
mov r8d, dword [rsp + 0x30]
movsxd rbp, eax
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x14004dbd4
lea edx, [rax + 1]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14004dbcd
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004dbc6
lea edx, [rax + 1]
lea ecx, [rax + 2]
lea r8d, [rax + 6]
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov rbx, rax
je 0x14004dbbf
mov r8d, dword [rsp + 0x30]
mov qword [rsp + 0x13d0], r12
movsxd r12, eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14004dba1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov rdi, rax
je 0x14004dba1
mov rbp, qword [rsp + 0x38]
xor r14d, r14d
jmp 0x14004dbe0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x14004dbdb
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x38]
jmp 0x14004dbe0
mov rbp, qword [rsp + 0x38]
jmp 0x14004dbe8
mov rbp, qword [rsp + 0x38]
jmp 0x14004dbe8
mov rbp, qword [rsp + 0x38]
jmp 0x14004dbe8
mov rbp, qword [rsp + 0x38]
jmp 0x14004dbe8
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x13d0]
movsxd rcx, r15d
call qword [sym.imp.WS2_32.dll_closesocket]
mov r15, qword [rsp + 0x1380]
test r14d, r14d
mov r14, qword [rsp + 0x1388]
jne 0x14004dc50
lea rax, [rsp + 0x1260]
lea r9, [rsp + 0x1058]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], edi
call fcn.14004b8a0
test eax, eax
je 0x14004dc47
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14004dc50
xor esi, esi
mov dword [r13 + 0x170], ebx
mov eax, esi
mov rcx, qword [rsp + 0x1370]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x1390
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret