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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140330440]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rbx, rcx
mov r12, r8
mov ecx, 0x2b88
mov r15, rdx
call qword [0x1403306c0]
mov rdi, rax
test rax, rax
jne 0x1400e0a26
call qword [0x1403306d0]
xor eax, eax
jmp 0x1400e0ed4
mov qword [rsp + 0xb0], rsi
xor edx, edx
mov r8d, 0x2b88
mov qword [rsp + 0x60], r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
imul r14, r15, 0x208
mov rcx, r14
call qword [0x1403306c0]
mov rsi, rax
test rax, rax
jne 0x1400e0a78
call qword [0x1403306d0]
mov rcx, rdi
mov qword [rdi + 0x88], rsi
call qword [0x1403306c8]
xor eax, eax
jmp 0x1400e0ec7
mov r8, r14
mov qword [rsp + 0x68], r13
xor edx, edx
mov qword [rdi + 0x88], rsi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
mov r14d, reloc.WS2_32.dll_socket
mov ecx, r14d
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov esi, 1
xor r8d, r8d
mov edx, esi
mov qword [rdi], rax
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rdi]
xor r13d, r13d
mov qword [rdi + 8], rax
cmp rcx, 0xffffffffffffffff
je 0x1400e0aea
lea r9, [rbp - 0x40]
mov dword [rbp - 0x40], r13d
lea edx, [rsi + 0x28]
mov dword [rsp + 0x20], 4
lea r8d, [r14 + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r14, qword [rdi]
cmp r14, 0xffffffffffffffff
je 0x1400e0e8b
test rbx, rbx
je 0x1400e0b49
movzx ecx, word [rbx + 0x10]
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp - 0x24], r13d
movdqu xmmword [rbp - 0x34], xmm0
mov word [rbp - 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [rbx]
mov word [rbp - 0x36], ax
lea rdx, [rbp - 0x38]
movzx eax, word [rbx + 0x12]
mov r8d, Ordinal_30
mov rcx, r14
mov dword [rbp - 0x20], eax
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400e0e8b
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
mov edx, 0x8004667e
mov dword [rbp - 0x40], esi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov dword [rbp - 0x40], esi
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov dword [rbp - 0x40], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov dword [rbp - 0x40], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rbp - 0x40]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rbp - 0x40], r13d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
mov edx, 0x8004667e
mov dword [rbp - 0x40], esi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi + 8]
lea r9, [rbp - 0x40]
mov r8d, esi
mov dword [rbp - 0x40], r13d
mov edx, 6
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r9, [rbp - 0x40]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rbp - 0x40], r13d
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test rbx, rbx
je 0x1400e0c9b
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], Ordinal_30
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400e0c8e
movups xmm0, xmmword [rbp - 0x30]
movzx ecx, word [rbp - 0x36]
movups xmmword [rdi + 0x10], xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0x20], ax
movzx eax, word [rbp - 0x20]
mov word [rdi + 0x22], ax
jmp 0x1400e0c9b
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x10], xmm0
mov eax, dword [rbx + 0x10]
mov dword [rdi + 0x20], eax
movups xmm0, xmmword [0x140270080]
mov word [rdi + 0x34], r13w
mov byte [rdi + 0x3b], sil
movups xmmword [rdi + 0x24], xmm0
mov dword [rdi + 0x7c], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [rdi + 0x7c]
movups xmm0, xmmword [0x140270080]
add edx, eax
mov qword [rdi + 0x90], r15
ror edx, 0x10
lea rax, [rdi + 0xa8]
cmp r12, rsi
mov dword [rdi + 0x7c], edx
mov qword [rdi + 0x6c], r13
cmovae rsi, r12
mov dword [rdi + 0x74], r13d
mov qword [rdi + 0x98], rsi
mov dword [rdi + 0x80], r13d
mov dword [rdi + 0x78], 0x578
mov qword [rdi + 0x6d0], r13
mov qword [rdi + 0xae8], r13
mov qword [rdi + 0xaf0], r13
movups xmmword [rdi + 0x2b18], xmm0
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x90], 0x208
mov rbx, qword [rdi + 0x88]
add rax, rbx
mov word [rdi + 0x2b28], r13w
mov qword [rdi + 0x2b30], r13
mov qword [rdi + 0x2b38], r13
mov qword [rdi + 0x2b40], r13
mov qword [rdi + 0x2b48], r13
mov qword [rdi + 0x2b58], r13
mov qword [rdi + 0x2b60], r13
mov qword [rdi + 0x2b68], 0xfff
mov qword [rdi + 0x2b70], 0x2000000
mov qword [rdi + 0x2b78], 0x2000000
mov qword [rdi + 0xaf8], r13
mov qword [rdi + 0xb00], r13
mov qword [rdi + 0xb08], r13
mov qword [rdi + 0xb10], r13
mov qword [rdi + 0x2b50], r13
cmp rbx, rax
jae 0x1400e0e86
add rbx, 0x128
movabs rsi, 0xfc0fc0fc0fc0fc1
nop dword [rax]
nop dword [rax + rax]
mov qword [rbx - 0x118], rdi
lea rcx, [rbx - 0x128]
sub rcx, qword [rdi + 0x88]
mov rax, rsi
imul rcx
lea rcx, [rbx - 0x128]
mov word [rbx - 0x108], 0xffff
sar rdx, 5
mov rax, rdx
mov qword [rbx - 0xf0], r13
shr rax, 0x3f
add rdx, rax
lea rax, [rbx - 0x18]
mov qword [rax], rax
mov qword [rbx - 0x10], rax
lea rax, [rbx - 8]
mov qword [rax], rax
mov qword [rbx], rax
lea rax, [rbx + 8]
mov qword [rax], rax
mov qword [rbx + 0x10], rax
lea rax, [rbx + 0x18]
mov qword [rax], rax
mov qword [rbx + 0x20], rax
lea rax, [rbx + 0x28]
mov qword [rax], rax
mov qword [rbx + 0x30], rax
lea rax, [rbx + 0x38]
mov qword [rax], rax
mov qword [rbx + 0x40], rax
mov word [rbx - 0x10e], dx
call fcn.1400dff00
imul rcx, qword [rdi + 0x90], 0x208
lea rbx, [rbx + 0x208]
add rcx, qword [rdi + 0x88]
lea rax, [rbx - 0x128]
cmp rax, rcx
jb 0x1400e0dd0
mov rax, rdi
jmp 0x1400e0ec2
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400e0e9a
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400e0eaa
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x88]
call qword [0x1403306c8]
mov rcx, rdi
call qword [0x1403306c8]
xor eax, eax
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140264720
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret