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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x100]
movsx eax, word [rax + 0x130]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rcx, qword [rsp + 0x100]
mov qword [rcx + 0x1b8], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x1b8], 0xffffffffffffffff
jne 0x140010324
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400102f8
mov dword [rsp + 0xc8], 0x80004005
jmp 0x14001030c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0xc0], eax
jmp 0x1400105cd
mov rax, qword [rsp + 0x100]
add rax, 0x130
mov rcx, qword [rsp + 0x100]
mov r8d, dword [rcx + 0x1b0]
mov rdx, rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140010363
jmp 0x140010417
mov rax, qword [rsp + 0x100]
movzx ecx, word [rax + 0x132]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0xc4], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140010399
mov dword [rsp + 0xcc], 0x80004005
jmp 0x1400103ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0xc0], eax
mov ecx, 0x2740
call fcn.140008f00
cmp dword [rsp + 0xc0], eax
jne 0x140010408
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0xc4]
cmp dword [rax + 0x200], ecx
jbe 0x140010408
mov eax, dword [rsp + 0xc4]
inc eax
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x100]
mov word [rcx + 0x132], ax
jmp 0x140010412
jmp 0x1400105a5
jmp 0x140010324
mov dword [rsp + 0x34], 0x80
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140010485
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140010459
mov dword [rsp + 0xd0], 0x80004005
jmp 0x14001046d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0xc0], eax
jmp 0x1400105a5
mov rax, qword [rsp + 0x100]
movzx ecx, word [rsp + 0x42]
mov word [rax + 0x132], cx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0xffffff7f
mov edx, 0xffff
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x100]
movzx eax, byte [rax + 0x398]
test eax, eax
je 0x140010545
mov rax, qword [rsp + 0x100]
movzx ecx, word [rax + 0x132]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov ecx, eax
call fcn.14001b7a0
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140010545
mov ecx, dword [rsp + 0xc0]
call fcn.14000a2f0
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0xd8]
mov r8, rcx
mov edx, eax
lea rcx, [0x140003780]
call qword [0x140030960]
mov edx, 0x7fffffff
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400105a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14001057b
mov dword [rsp + 0xe0], 0x80004005
jmp 0x14001058f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xc0], eax
jmp 0x1400105a5
xor eax, eax
jmp 0x1400105d4
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x1b8], 0xffffffffffffffff
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140029820
add rsp, 0xf8
ret