Function at 0x140099b74
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 [0x1402feed0]
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 0x140099bd2
xor eax, eax
jmp 0x140099e5f
mov rdx, rax
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x39]
mov ecx, 0xc0
call fcn.14009f32c
mov rbx, qword [rbp - 0x39]
mov rcx, rsi
mov rax, qword [rbp - 0x31]
shl rcx, 3
mov qword [rbx + 0x28], rax
lea rax, [0x1400996bc]
mov qword [rbx], rax
lea rax, [0x140099724]
mov qword [rbx + 8], rax
lea rax, [0x140099954]
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.1401e2d40
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140099c94
mov rcx, rbx
call fcn.1401e18f8
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.1400a8b44
jmp 0x140099bcb
mov eax, 1
cmp word [rdi], ax
jne 0x140099ccb
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 0x140099d25
mov rcx, qword [rbx + 0x48]
call fcn.1401e18f8
mov rcx, rbx
call fcn.1401e18f8
jmp 0x140099bcb
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 0x140099cb5
cmp word [rdi], 0x17
jne 0x140099d25
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 0x140099e7d
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 0x140099eaa
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 0x140099d7e
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140099cb5
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, 1
cmp word [rdi], ax
je 0x140099da9
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 0x140099e16
lea rax, [0x140099abc]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9, [0x140099a2c]
lea rax, [0x140099a64]
mov edx, r15d
lea r8, [0x140099994]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.14009a03c
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 0x140099e09
lea rax, [0x140099ae8]
mov qword [rcx + 0x230], rax
mov eax, 1
add rdi, rax
cmp rdi, rsi
jl 0x140099db0
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.14009ed44
mov rdx, rbx
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.14009fe20
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401d8f10
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.1400a8b44
mov ecx, 0xfd
call fcn.1401db608
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.1400a8b44
mov ecx, 0xfd
call fcn.1401db608
int3