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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, reloc.WS2_32.dll_recv
mov rdi, r9
mov dword [rbp - 0x40], r14d
lea r15d, [r14 - 0xf]
lea r12d, [r14 - 0xe]
mov dword [rbp - 0x3c], r15d
mov edx, r15d
lea r8d, [r14 - 0xa]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
or rsi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rsi
je 0x14007272a
mov r8d, r14d
lea rcx, [rbp - 0x38]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x7f000001
mov word [rbp - 0x38], r12w
call qword [sym.imp.WS2_32.dll_htonl]
lea r8d, [r14 - 0xc]
mov qword [rdi + 8], rsi
xor r13d, r13d
mov dword [rsp + 0x20], r8d
lea r9, [rbp - 0x3c]
mov dword [rbp - 0x34], eax
mov edx, 0xffff
mov word [rbp - 0x36], r13w
mov rcx, rbx
mov qword [rdi], rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
je 0x14007270e
mov r8d, r14d
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, esi
je 0x14007270e
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, esi
je 0x14007270e
cmp dword [rbp - 0x40], r14d
jl 0x14007270e
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, esi
je 0x14007270e
xor r8d, r8d
mov edx, r15d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, rsi
je 0x14007270e
mov r8d, r14d
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
je 0x14007270e
mov edx, r15d
mov rcx, rbx
call fcn.14007290c
test eax, eax
js 0x14007270e
mov r8d, 0x2710
mov qword [rbp - 0x18], rbx
mov edx, r15d
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.14006cf98
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, rsi
je 0x14007270e
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], r14d
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, esi
je 0x14007270e
cmp dword [rbp - 0x40], r14d
jl 0x14007270e
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], r14d
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, esi
je 0x14007270e
cmp dword [rbp - 0x40], r14d
jl 0x14007270e
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x14007270e
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x14007270e
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x14007270e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14007272c
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14007ae30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret