Function at 0x14009a2c0
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 [0x14030cf00]
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 0x14009a31e
xor eax, eax
jmp 0x14009a5ad
mov rdx, rax
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x39]
mov ecx, 0xc0
call fcn.14009fd78
mov rbx, qword [rbp - 0x39]
lea rcx, [rsi*8]
mov rax, qword [rbp - 0x31]
mov qword [rbx + 0x28], rax
lea rax, [0x140099df8]
mov qword [rbx], rax
lea rax, [0x140099e60]
mov qword [rbx + 8], rax
lea rax, [0x14009a0a0]
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.1401ea40c
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x14009a3e1
mov rcx, rbx
call fcn.1401e8ee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0xfd
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r8d, 0x28d
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.1400aa25c
jmp 0x14009a317
mov eax, 1
cmp word [rdi], ax
jne 0x14009a418
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 0x14009a472
mov rcx, qword [rbx + 0x48]
call fcn.1401e8ee0
mov rcx, rbx
call fcn.1401e8ee0
jmp 0x14009a317
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 0x14009a402
cmp word [rdi], 0x17
jne 0x14009a472
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 0x14009a5cb
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 0x14009a5f8
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 0x14009a4cb
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14009a402
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, 1
cmp word [rdi], ax
je 0x14009a4f6
movzx ecx, word [rbp - 0x27]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x60], ax
mov eax, 1
test rsi, rsi
jle 0x14009a563
xor edi, edi
lea rax, [0x14009a208]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9, [0x14009a178]
lea rax, [0x14009a1b0]
mov edx, r15d
lea r8, [0x14009a0e0]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.14009a798
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 0x14009a556
lea rax, [0x14009a234]
mov qword [rcx + 0x230], rax
mov eax, 1
add rdi, rax
cmp rdi, rsi
jl 0x14009a4fd
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 edx, 4
mov dword [rbx + 0x64], 1
call qword [sym.imp.WS2_32.dll_listen]
lea rcx, str.ILibAsyncServerSocket
call fcn.14009f790
mov rdx, rbx
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.1400a0854
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401d9e80
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.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x29c
xor ecx, ecx
call fcn.1400aa25c
mov ecx, 0xfd
call fcn.1401e0110
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x2a7
xor ecx, ecx
call fcn.1400aa25c
mov ecx, 0xfd
call fcn.1401e0110
int3