Function at 0x14000f1b0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x4f]
sub rsp, 0x88
mov rax, qword [0x1400b59e8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
test rcx, rcx
jne 0x14000f1e8
mov ecx, 0x271e
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x14000f3f2
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov r14d, r13d
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rdi
lea r12d, [r13 + 2]
nop dword [rax]
mov edx, 1
mov dword [rbp - 0x19], reloc.WS2_32.dll_recv
mov ecx, r12d
mov dword [rbp - 0x15], 1
mov dword [rbp - 0x11], r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f3ac
mov ecx, 0x7f000001
mov dword [rbp - 9], r12d
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 9]
mov rcx, rbx
mov dword [rbp - 5], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x14000f393
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14000f393
lea r8, [rbp - 0x19]
mov rcx, rbx
lea rdx, [rbp - 9]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14000f393
lea edx, [rax + 1]
mov ecx, r12d
lea r8d, [rax + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000f393
lea r8, [rbp - 0x15]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x14000f321
lea r8d, [rax + 0x10]
mov rcx, rdi
lea rdx, [rbp - 9]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000f300
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000f321
lea r8, [rbp - 0x19]
mov dword [rbp - 0x19], reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x17]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000f32f
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
jmp 0x14000f396
lea r8, [rbp - 0x19]
mov dword [rbp - 0x19], reloc.WS2_32.dll_recv
lea rdx, [rbp + 7]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14000f381
movzx eax, word [rbp + 7]
cmp word [rbp + 0x17], ax
jne 0x14000f381
movzx eax, word [rbp + 9]
cmp word [rbp + 0x19], ax
jne 0x14000f381
mov eax, dword [rbp + 0xb]
cmp dword [rbp + 0x1b], eax
jne 0x14000f381
lea r8, [rbp - 0x15]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14000f409
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
inc r14d
cmp r14d, 0x320
jl 0x14000f220
mov qword [r15], 0xffffffffffffffff
mov ecx, 0x274d
mov qword [r15 + 8], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140087840
add rsp, 0x88
pop r15
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
mov qword [r15], rsi
mov qword [r15 + 8], rdi
jmp 0x14000f3c8