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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0xf]
sub rsp, 0x90
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp - 1], rax
and dword [rbp - 0x41], 0
lea r8, [rbp - 0x31]
mov r13d, 0x1c
mov dword [rbp - 0x3d], 1
mov rdi, r9
mov dword [rbp - 0x39], r13d
mov rsi, rcx
lea r9, [rbp - 0x29]
mov ecx, 0xa8
lea edx, [r13 - 0x14]
call fcn.140068c34
mov rbx, qword [rbp - 0x31]
lea ecx, [r13 + 0x34]
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x20], rax
lea rax, [0x140063d4c]
mov qword [rbx], rax
lea rax, [0x140063db4]
mov qword [rbx + 8], rax
lea rax, [0x140063fe4]
mov qword [rbx + 0x10], rax
lea rax, [0x14005370c]
mov qword [rbx + 0x60], rax
lea rax, [0x1400539fc]
mov qword [rbx + 0x68], rax
lea rax, [fcn.140002c10]
mov qword [rbx + 0x70], rax
lea rax, [0x140053a7c]
mov qword [rbx + 0x78], rax
lea rax, [0x140053a1c]
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], 0xa
call fcn.140164d80
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400642f8
mov rcx, rbx
call fcn.140163938
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0xfd
lea rdx, str...microstackILibAsyncServerSocket.c
mov r8d, 0x27e
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14006e59c
xor eax, eax
jmp 0x14006447e
movzx ecx, word [rdi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov edx, 1
mov word [rbx + 0x48], ax
mov word [rbx + 0x4a], ax
movzx ecx, word [rdi]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x140064339
mov rcx, qword [rbx + 0x30]
call fcn.140163938
mov rcx, rbx
call fcn.140163938
jmp 0x1400642f1
cmp word [rdi], 0x17
jne 0x140064365
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x41]
mov rcx, rax
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400644a2
mov rcx, qword [rbx + 0x40]
lea r9, [rbp - 0x3d]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400644cf
cmp word [rdi], 0x17
lea r8d, [rax + 0x10]
mov rcx, qword [rbx + 0x40]
mov rdx, rdi
cmove r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rbx + 0x40]
test eax, eax
je 0x1400643ba
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140064326
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x21]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rbp - 0x1f]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x48], ax
xor edi, edi
lea rax, [0x140064138]
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x28], rax
lea r9, [0x1400640ac]
lea rax, [0x1400640e4]
mov edx, 0x1000
lea r8, [0x140064018]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140064620
mov rcx, qword [rbx + 0x30]
mov qword [rdi + rcx], rax
mov rax, qword [rbx + 0x30]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x140064436
lea rax, [0x140064160]
mov qword [rcx + 0x218], rax
add rdi, 8
cmp rdi, 0x50
jl 0x1400643d8
mov dword [rbp - 0x35], 1
lea r8, [rbp - 0x35]
mov rcx, qword [rbx + 0x40]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0x40]
mov edx, 4
mov dword [rbx + 0x4c], 1
call qword [sym.imp.WS2_32.dll_listen]
mov rdx, rbx
mov rcx, rsi
call fcn.1400690cc
mov rax, rbx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14015c600
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x286
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x28e
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3