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

Disassembly:
push rbx
push rsi
sub rsp, 0x58
mov rax, qword [0x1403c6030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov ecx, 0x2b10
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14000f7c2
call qword [case.0x140016b54.1]
test rbx, rbx
jne 0x14000f7ce
xor eax, eax
jmp 0x14000fb45
xor edx, edx
mov qword [rsp + 0x80], rdi
mov r8d, 0x2b10
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x72000
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14000f813
call qword [case.0x140016b54.1]
mov rcx, rbx
mov qword [rbx + 0x28], rdi
call qword [case.0x140016b54.0]
xor eax, eax
jmp 0x14000fb3d
mov qword [rsp + 0x78], rbp
xor edx, edx
mov r8d, 0x72000
mov qword [rsp + 0x50], r14
mov rcx, rdi
mov qword [rbx + 0x28], rdi
call sub.VCRUNTIME140.dll_memset
mov r14d, 2
xor r8d, r8d
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000fb0f
xor ebp, ebp
test rsi, rsi
je 0x14000f898
movzx ecx, word [rsi + 4]
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x38], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
lea r8d, [r14 + 0xe]
mov eax, dword [rsi]
mov rcx, rdi
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14000fb0f
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 1
mov r8d, 0x20
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x14000f972
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14000f96b
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x3a]
mov dword [rbx + 8], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0xc], ax
jmp 0x14000f972
mov rax, qword [rsi]
mov qword [rbx + 8], rax
mov dword [rbx + 0x20], ebx
call qword [sym.imp.WINMM.dll_timeGetTime]
add dword [rbx + 0x20], eax
mov eax, dword [rbx + 0x20]
rol eax, 0x10
mov dword [rbx + 0x20], eax
lea rax, [rbx + 0x48]
mov qword [rbx + 0x30], 0x400
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rbx + 0x30], 0x1c8
mov rsi, qword [rbx + 0x28]
add rax, rsi
mov qword [rbx + 0x38], 1
mov qword [rbx + 0x10], rbp
mov dword [rbx + 0x18], ebp
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x1c], 0x578
mov qword [rbx + 0x670], rbp
mov qword [rbx + 0xa88], rbp
mov qword [rbx + 0xa90], rbp
mov dword [rbx + 0x2ab8], ebp
mov word [rbx + 0x2abc], bp
mov qword [rbx + 0x2ac0], rbp
mov qword [rbx + 0x2ac8], rbp
mov qword [rbx + 0x2ad0], rbp
mov qword [rbx + 0x2ad8], rbp
mov qword [rbx + 0x2ae8], rbp
mov qword [rbx + 0x2af0], rbp
mov qword [rbx + 0x2af8], 0xfff
mov qword [rbx + 0x2b00], 0x2000000
mov qword [rbx + 0x2b08], 0x2000000
mov qword [rbx + 0xa98], rbp
mov qword [rbx + 0xaa0], rbp
mov qword [rbx + 0xaa8], rbp
mov qword [rbx + 0xab0], rbp
mov qword [rbx + 0x2ae0], rbp
cmp rsi, rax
jae 0x14000fb0a
lea rdi, [rsi + 0xf8]
movabs r14, 0x23ee08fb823ee09
nop dword [rax]
mov qword [rdi - 0xe8], rbx
mov rcx, rsi
sub rcx, qword [rbx + 0x28]
mov rax, r14
imul rcx
mov rcx, rsi
mov word [rdi - 0xd8], 0xffff
sar rdx, 2
mov rax, rdx
mov qword [rdi - 0xc8], rbp
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
mov word [rdi - 0xde], dx
call fcn.1400107a0
imul rax, qword [rbx + 0x30], 0x1c8
add rsi, 0x1c8
lea rdi, [rdi + 0x1c8]
add rax, qword [rbx + 0x28]
cmp rsi, rax
jb 0x14000fa70
mov rax, rbx
jmp 0x14000fb33
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000fb1e
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x28]
call qword [case.0x140016b54.0]
mov rcx, rbx
call qword [case.0x140016b54.0]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402d0d40
add rsp, 0x58
pop rsi
pop rbx
ret