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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x90
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rbp - 9], rax
and dword [rbp - 0x49], 0
mov r14, rcx
movsxd rax, dword [rbp + 0x97]
mov ecx, 1
mov rdi, r9
mov r12d, dword [rbp + 0x9f]
mov r15d, r8d
movsxd rsi, edx
mov dword [rbp - 0x45], ecx
lea edx, [rcx + 0x1b]
mov dword [rbp - 0x41], edx
cmp word [r9], cx
jne 0x140099f1a
xor eax, eax
jmp 0x14009a1a7
mov rdx, rax
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x39]
mov ecx, 0xc0
call fcn.14009f674
mov rbx, qword [rbp - 0x39]
mov rcx, rsi
mov rax, qword [rbp - 0x31]
shl rcx, 3
mov qword [rbx + 0x28], rax
lea rax, [0x140099a04]
mov qword [rbx], rax
lea rax, [0x140099a6c]
mov qword [rbx + 8], rax
lea rax, [0x140099c9c]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp + 0x67]
mov qword [rbx + 0x78], rax
mov rax, qword [rbp + 0x6f]
mov qword [rbx + 0x80], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbx + 0x88], rax
mov rax, qword [rbp + 0x87]
mov qword [rbx + 0x90], rax
mov rax, qword [rbp + 0x77]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x20], r14
mov dword [rbx + 0x40], esi
call fcn.1401e3650
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140099fdc
mov rcx, rbx
call fcn.1401e2208
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0xfd
lea rdx, str...microstackILibAsyncServerSocket.c
mov r8d, 0x28d
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.1400a8e8c
jmp 0x140099f13
mov eax, 1
cmp word [rdi], ax
jne 0x14009a013
xor r8d, r8d
mov edx, eax
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14009a06d
mov rcx, qword [rbx + 0x48]
call fcn.1401e2208
mov rcx, rbx
call fcn.1401e2208
jmp 0x140099f13
movzx ecx, word [rdi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov edx, 1
mov word [rbx + 0x60], ax
mov word [rbx + 0x62], ax
movzx ecx, word [rdi]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140099ffd
cmp word [rdi], 0x17
jne 0x14009a06d
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 0x14009a1c5
mov rcx, qword [rbx + 0x58]
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 0x14009a1f2
cmp word [rdi], 0x17
lea r8d, [rax + 0x10]
mov rcx, qword [rbx + 0x58]
lea eax, [r8 + 0xc]
cmove r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rbx + 0x58]
test eax, eax
je 0x14009a0c6
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140099ffd
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, 1
cmp word [rdi], ax
je 0x14009a0f1
movzx ecx, word [rbp - 0x27]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x60], ax
mov eax, 1
xor edi, edi
test rsi, rsi
jle 0x14009a15e
lea rax, [0x140099e04]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9, [0x140099d74]
lea rax, [0x140099dac]
mov edx, r15d
lea r8, [0x140099cdc]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.14009a384
mov rcx, qword [rbx + 0x48]
mov qword [rcx + rdi*8], rax
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax + rdi*8]
test rcx, rcx
je 0x14009a151
lea rax, [0x140099e30]
mov qword [rcx + 0x230], rax
mov eax, 1
add rdi, rax
cmp rdi, rsi
jl 0x14009a0f8
mov dword [rbp - 0x3d], eax
lea r8, [rbp - 0x3d]
mov rcx, qword [rbx + 0x58]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0x58]
mov eax, 1
mov dword [rbx + 0x64], eax
lea edx, [rax + 3]
call qword [sym.imp.WS2_32.dll_listen]
lea rcx, str.ILibAsyncServerSocket
call fcn.14009f08c
mov rdx, rbx
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.1400a0168
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401d9820
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
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, 0x29c
xor ecx, ecx
call fcn.1400a8e8c
mov ecx, 0xfd
call fcn.1401dbf18
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x2a7
xor ecx, ecx
call fcn.1400a8e8c
mov ecx, 0xfd
call fcn.1401dbf18
int3