Function at 0x14009a344
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 [0x14030ef00]
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 0x14009a3a2
xor eax, eax
jmp 0x14009a631
mov rdx, rax
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x39]
mov ecx, 0xc0
call fcn.14009fdfc
mov rbx, qword [rbp - 0x39]
lea rcx, [rsi*8]
mov rax, qword [rbp - 0x31]
mov qword [rbx + 0x28], rax
lea rax, [0x140099e7c]
mov qword [rbx], rax
lea rax, [0x140099ee4]
mov qword [rbx + 8], rax
lea rax, [0x14009a124]
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.1401ed1fc
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x14009a465
mov rcx, rbx
call fcn.1401ebcd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0xfd
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r8d, 0x28d
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.1400aa2f8
jmp 0x14009a39b
mov eax, 1
cmp word [rdi], ax
jne 0x14009a49c
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 0x14009a4f6
mov rcx, qword [rbx + 0x48]
call fcn.1401ebcd0
mov rcx, rbx
call fcn.1401ebcd0
jmp 0x14009a39b
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 0x14009a486
cmp word [rdi], 0x17
jne 0x14009a4f6
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 0x14009a64f
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 0x14009a67c
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 0x14009a54f
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14009a486
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, 1
cmp word [rdi], ax
je 0x14009a57a
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 0x14009a5e7
xor edi, edi
lea rax, [0x14009a28c]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9, [0x14009a1fc]
lea rax, [0x14009a234]
mov edx, r15d
lea r8, [0x14009a164]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.14009a81c
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 0x14009a5da
lea rax, [0x14009a2b8]
mov qword [rcx + 0x230], rax
mov eax, 1
add rdi, rax
cmp rdi, rsi
jl 0x14009a581
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.14009f814
mov rdx, rbx
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.1400a08e4
mov rax, rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401dbdb0
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_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x29c
xor ecx, ecx
call fcn.1400aa2f8
mov ecx, 0xfd
call fcn.1401e2ef8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncServerSocket.c
mov r9d, eax
mov r8d, 0x2a7
xor ecx, ecx
call fcn.1400aa2f8
mov ecx, 0xfd
call fcn.1401e2ef8
int3