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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 7]
sub rsp, 0x90
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rbp - 9], rax
and dword [rbp - 0x49], 0
mov r14d, 1
mov rdi, r9
mov rsi, rcx
mov dword [rbp - 0x45], r14d
lea r13d, [r14 + 0x1b]
mov dword [rbp - 0x41], r13d
cmp word [r9], r14w
jne 0x14006e69f
xor eax, eax
jmp 0x14006e91e
lea r9, [rbp - 0x31]
mov edx, 8
lea r8, [rbp - 0x39]
mov ecx, 0xb0
call fcn.140073214
mov rbx, qword [rbp - 0x39]
mov ecx, 0x50
mov rax, qword [rbp - 0x31]
mov qword [rbx + 0x20], rax
lea rax, str.ILibAsyncServerSocket
mov qword [rbx + 0x28], rax
lea rax, [0x14006e1ac]
mov qword [rbx], rax
lea rax, [0x14006e214]
mov qword [rbx + 8], rax
lea rax, [0x14006e444]
mov qword [rbx + 0x10], rax
lea rax, [0x14005bc54]
mov qword [rbx + 0x68], rax
lea rax, [0x14005bf50]
mov qword [rbx + 0x70], rax
lea rax, [fcn.140002e60]
mov qword [rbx + 0x78], rax
lea rax, [0x14005c024]
mov qword [rbx + 0x80], rax
lea rax, [0x14005bf90]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x30], 0xa
call fcn.1401707f0
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x14006e776
mov rcx, rbx
call fcn.14016f3a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0xfd
lea rdx, str...microstackILibAsyncServerSocket.c
mov r8d, 0x287
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140078e6c
jmp 0x14006e698
cmp word [rdi], r14w
jne 0x14006e7ab
xor r8d, r8d
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14006e805
mov rcx, qword [rbx + 0x38]
call fcn.14016f3a8
mov rcx, rbx
call fcn.14016f3a8
jmp 0x14006e698
movzx ecx, word [rdi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x50], ax
mov r8d, 6
mov word [rbx + 0x52], ax
mov edx, r14d
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14006e795
cmp word [rdi], 0x17
jne 0x14006e805
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x49]
mov rcx, rax
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006e941
mov rcx, qword [rbx + 0x48]
lea r9, [rbp - 0x45]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006e96e
cmp word [rdi], 0x17
lea r8d, [rax + 0x10]
mov rcx, qword [rbx + 0x48]
mov rdx, rdi
cmove r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rbx + 0x48]
test eax, eax
je 0x14006e85a
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14006e795
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rdi], r14w
je 0x14006e87c
movzx ecx, word [rbp - 0x27]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x50], ax
xor edi, edi
lea rax, [0x14006e598]
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x28], rax
lea r9, [0x14006e50c]
lea rax, [0x14006e544]
mov edx, 0x1000
lea r8, [0x14006e478]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14006eac0
mov rcx, qword [rbx + 0x38]
mov qword [rdi + rcx], rax
mov rax, qword [rbx + 0x38]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14006e8dc
lea rax, [0x14006e5c4]
mov qword [rcx + 0x220], rax
add rdi, 8
cmp rdi, 0x50
jl 0x14006e87e
mov dword [rbp - 0x3d], r14d
lea r8, [rbp - 0x3d]
mov rcx, qword [rbx + 0x48]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov dword [rbx + 0x54], r14d
call qword [sym.imp.WS2_32.dll_listen]
mov rdx, rbx
mov rcx, rsi
call fcn.140073704
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop r13
pop rdi
pop rsi
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, 0x296
xor ecx, ecx
call fcn.140078e6c
mov ecx, 0xfd
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x2a1
xor ecx, ecx
call fcn.140078e6c
mov ecx, 0xfd
call fcn.14016a768
int3