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

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov ecx, 0x2b90
call qword [0x1400e9588]
mov rbx, rax
test rax, rax
jne 0x14009313c
call qword [0x1400e9598]
xor eax, eax
jmp 0x1400935f2
xor edx, edx
mov qword [rsp + 0x88], rsi
mov r8d, 0x2b90
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x208
call qword [0x1400e9588]
mov rsi, rax
test rax, rax
jne 0x140093184
call qword [0x1400e9598]
mov rcx, rbx
mov qword [rbx + 0x88], rsi
call qword [0x1400e9590]
xor eax, eax
jmp 0x1400935ea
mov qword [rsp + 0x90], r14
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x98], r15
mov rcx, rsi
mov qword [rbx + 0x88], rsi
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
mov r15d, reloc.WS2_32.dll_socket
mov ecx, r15d
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
lea edx, [r15 - 0x16]
mov ecx, r15d
mov qword [rbx], rax
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbx]
xor r14d, r14d
mov qword [rbx + 8], rax
cmp rcx, 0xffffffffffffffff
je 0x140093202
lea r9, [rbp - 0x30]
mov dword [rbp - 0x30], r14d
lea edx, [r15 + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [r15 + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rbx]
cmp rsi, 0xffffffffffffffff
je 0x1400935a3
test rdi, rdi
je 0x14009325d
movzx ecx, word [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x24], xmm0
mov dword [rbp - 0x14], r14d
mov word [rbp - 0x28], r15w
call qword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [rdi]
mov word [rbp - 0x26], ax
lea rdx, [rbp - 0x28]
movzx eax, word [rdi + 0x12]
mov r8d, 0x1c
mov rcx, rsi
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400935a3
mov rcx, qword [rbx]
lea r8, [rbp - 0x30]
mov edx, 0x8004667e
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], 1
mov r8d, 0x20
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rbp - 0x30]
mov edx, 0x29
mov dword [rbp - 0x30], r14d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 8]
lea r8, [rbp - 0x30]
mov edx, 0x8004667e
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x30]
mov edx, 6
mov dword [rbp - 0x30], r14d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x30]
mov edx, 0x29
mov dword [rbp - 0x30], r14d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test rdi, rdi
je 0x1400933bc
mov rcx, qword [rbx]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x30], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400933af
movups xmm0, xmmword [rbp - 0x20]
movzx ecx, word [rbp - 0x26]
movups xmmword [rbx + 0x10], xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x20], ax
movzx eax, word [rbp - 0x10]
mov word [rbx + 0x22], ax
jmp 0x1400933bc
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x10], xmm0
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x20], eax
movups xmm0, xmmword [0x1400a7f00]
mov word [rbx + 0x34], r14w
mov byte [rbx + 0x3b], 1
movups xmmword [rbx + 0x24], xmm0
mov dword [rbx + 0x7c], ebx
call qword [sym.imp.WINMM.dll_timeGetTime]
add dword [rbx + 0x7c], eax
mov eax, dword [rbx + 0x7c]
movups xmm0, xmmword [0x1400a7f00]
ror eax, 0x10
mov dword [rbx + 0x7c], eax
lea rax, [rbx + 0xa8]
mov qword [rbx + 0x90], 1
mov qword [rbx + 0x98], 2
mov qword [rbx + 0x6c], r14
mov dword [rbx + 0x74], r14d
mov dword [rbx + 0x80], r14d
mov dword [rbx + 0x78], 0x578
mov qword [rbx + 0x6d0], r14
mov qword [rbx + 0xae8], r14
mov qword [rbx + 0xaf0], r14
movups xmmword [rbx + 0x2b18], xmm0
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rbx + 0x90], 0x208
mov rsi, qword [rbx + 0x88]
add rax, rsi
mov word [rbx + 0x2b28], r14w
mov qword [rbx + 0x2b30], r14
mov qword [rbx + 0x2b38], r14
mov qword [rbx + 0x2b40], r14
mov qword [rbx + 0x2b48], r14
mov qword [rbx + 0x2b58], r14
mov qword [rbx + 0x2b60], r14
mov qword [rbx + 0x2b68], 0xfff
mov qword [rbx + 0x2b70], 0x2000000
mov qword [rbx + 0x2b78], 0x2000000
mov qword [rbx + 0xaf8], r14
mov qword [rbx + 0xb00], r14
mov qword [rbx + 0xb08], r14
mov qword [rbx + 0xb10], r14
mov qword [rbx + 0x2b50], r14
cmp rsi, rax
jae 0x14009359e
lea rdi, [rsi + 0x128]
movabs r15, 0xfc0fc0fc0fc0fc1
nop word [rax + rax]
mov qword [rdi - 0x118], rbx
mov rcx, rsi
sub rcx, qword [rbx + 0x88]
mov rax, r15
imul rcx
mov rcx, rsi
mov word [rdi - 0x108], 0xffff
sar rdx, 5
mov rax, rdx
mov qword [rdi - 0xf0], r14
shr rax, 0x3f
add rdx, rax
lea rax, [rdi - 0x18]
mov qword [rax], rax
mov qword [rdi - 0x10], rax
lea rax, [rdi - 8]
mov qword [rax], rax
mov qword [rdi], rax
lea rax, [rdi + 8]
mov qword [rax], rax
mov qword [rdi + 0x10], rax
lea rax, [rdi + 0x18]
mov qword [rax], rax
mov qword [rdi + 0x20], rax
lea rax, [rdi + 0x28]
mov qword [rax], rax
mov qword [rdi + 0x30], rax
lea rax, [rdi + 0x38]
mov qword [rax], rax
mov qword [rdi + 0x40], rax
mov word [rdi - 0x10e], dx
call fcn.140092600
imul rax, qword [rbx + 0x90], 0x208
add rsi, 0x208
lea rdi, [rdi + 0x208]
add rax, qword [rbx + 0x88]
cmp rsi, rax
jb 0x1400934f0
mov rax, rbx
jmp 0x1400935da
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400935b2
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400935c2
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x88]
call qword [0x1400e9590]
mov rcx, rbx
call qword [0x1400e9590]
xor eax, eax
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a1400
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret