Function at 0x140004d10
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 [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov ecx, 0x2b30
call qword [0x140009078]
mov rdi, rax
test rax, rax
jne 0x140004d4c
call qword [0x140009088]
xor eax, eax
jmp 0x140005156
xor edx, edx
mov qword [rsp + 0x88], rsi
mov r8d, 0x2b30
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x4100
call qword [0x140009078]
mov rsi, rax
test rax, rax
jne 0x140004d91
call qword [0x140009088]
mov rcx, rdi
mov qword [rdi + 0x38], rsi
call qword [0x140009080]
xor eax, eax
jmp 0x14000514e
mov qword [rsp + 0x90], r14
xor edx, edx
mov r8d, 0x4100
mov qword [rsp + 0x98], r15
mov rcx, rsi
mov qword [rdi + 0x38], 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 r14d, r14d
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004df8
lea r9, [rbp - 0x30]
mov dword [rbp - 0x30], r14d
lea edx, [r15 + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [r15 + 4]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rdi]
cmp rsi, 0xffffffffffffffff
je 0x14000511a
test rbx, rbx
je 0x140004e53
movzx ecx, word [rbx + 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 [rbx]
mov word [rbp - 0x26], ax
lea rdx, [rbp - 0x28]
movzx eax, word [rbx + 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 0x14000511a
mov rcx, qword [rdi]
lea r8, [rbp - 0x30]
mov edx, 0x8004667e
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
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 [rdi]
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 [rdi]
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 [rdi]
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 rbx, rbx
je 0x140004f52
mov rcx, qword [rdi]
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 0x140004f45
movups xmm0, xmmword [rbp - 0x20]
movzx ecx, word [rbp - 0x26]
movups xmmword [rdi + 8], xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0x18], ax
movzx eax, word [rbp - 0x10]
mov word [rdi + 0x1a], ax
jmp 0x140004f52
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 8], xmm0
mov eax, dword [rbx + 0x10]
mov dword [rdi + 0x18], eax
xor edx, edx
mov ecx, 0xffffffff
mov rax, rdi
div rcx
add eax, edi
mov dword [rdi + 0x2c], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
add dword [rdi + 0x2c], eax
mov eax, dword [rdi + 0x2c]
movups xmm0, xmmword [0x140007320]
ror eax, 0x10
mov dword [rdi + 0x2c], eax
lea rax, [rdi + 0x58]
mov qword [rdi + 0x40], 0x20
mov qword [rdi + 0x48], 2
mov qword [rdi + 0x1c], r14
mov dword [rdi + 0x24], r14d
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x28], 0x570
mov qword [rdi + 0x680], r14
mov qword [rdi + 0xa98], r14
mov qword [rdi + 0xaa0], r14
movups xmmword [rdi + 0x2ac8], xmm0
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x40], 0x208
mov rsi, qword [rdi + 0x38]
add rax, rsi
mov word [rdi + 0x2ad8], r14w
mov qword [rdi + 0x2ae0], r14
mov qword [rdi + 0x2ae8], r14
mov qword [rdi + 0x2af0], r14
mov qword [rdi + 0x2af8], r14
mov qword [rdi + 0x2b08], r14
mov qword [rdi + 0x2b10], r14
mov qword [rdi + 0x2b18], 0xfff
mov qword [rdi + 0x2b20], 0x2000000
mov qword [rdi + 0x2b28], 0x2000000
mov qword [rdi + 0xaa8], r14
mov qword [rdi + 0xab0], r14
mov qword [rdi + 0xab8], r14
mov qword [rdi + 0xac0], r14
mov qword [rdi + 0x2b00], r14
cmp rsi, rax
jae 0x140005115
lea rbx, [rsi + 0x128]
movabs r15, 0xfc0fc0fc0fc0fc1
nop word [rax + rax]
mov qword [rbx - 0x118], rdi
mov rcx, rsi
sub rcx, qword [rdi + 0x38]
mov rax, r15
imul rcx
mov rcx, rsi
mov word [rbx - 0x108], 0xffff
sar rdx, 5
mov rax, rdx
mov qword [rbx - 0xf0], r14
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.1400041f0
imul rax, qword [rdi + 0x40], 0x208
add rsi, 0x208
lea rbx, [rbx + 0x208]
add rax, qword [rdi + 0x38]
cmp rsi, rax
jb 0x140005070
mov rax, rdi
jmp 0x14000513e
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140005129
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x38]
call qword [0x140009080]
mov rcx, rdi
call qword [0x140009080]
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.140005a00
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret