Function at 0x1400238f0
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1402ca088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x2b88
call qword [0x140314820]
mov rdi, rax
test rax, rax
jne 0x14002391e
call qword [0x140314830]
test rdi, rdi
jne 0x140023938
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140157bf0
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x2b88
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x208
call qword [0x140314820]
mov rbx, rax
test rax, rax
jne 0x14002397d
call qword [0x140314830]
mov rcx, rdi
mov qword [rdi + 0x88], rbx
call qword [0x140314828]
xor eax, eax
jmp 0x140023d2d
xor edx, edx
mov qword [rsp + 0x58], rbp
mov r8d, 0x208
mov qword [rdi + 0x88], rbx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 0x15]
call qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
mov qword [rdi], rax
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rdi]
xor ebp, ebp
mov qword [rdi + 8], rax
cmp rcx, 0xffffffffffffffff
je 0x1400239e9
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebp
lea edx, [rbp + 0x29]
mov dword [rsp + 0x20], 4
lea r8d, [rbp + 0x1b]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140023d00
lea r8, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 1
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, [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 [rdi]
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]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, 6
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
movups xmm0, xmmword [0x140161360]
mov word [rdi + 0x34], bp
mov byte [rdi + 0x3b], 1
movups xmmword [rdi + 0x24], xmm0
mov dword [rdi + 0x7c], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
movups xmm0, xmmword [0x140161360]
mov eax, eax
add dword [rdi + 0x7c], eax
mov eax, dword [rdi + 0x7c]
rol eax, 0x10
mov dword [rdi + 0x7c], eax
mov qword [rdi + 0x98], 2
mov qword [rdi + 0x6c], rbp
mov dword [rdi + 0x74], ebp
mov dword [rdi + 0x80], ebp
mov dword [rdi + 0x78], 0x578
mov qword [rdi + 0x90], 1
mov qword [rdi + 0x6d0], rbp
mov qword [rdi + 0xae8], rbp
mov qword [rdi + 0xaf0], rbp
movups xmmword [rdi + 0x2b18], xmm0
mov word [rdi + 0x2b28], bp
mov qword [rdi + 0x2b30], rbp
mov qword [rdi + 0x2b38], rbp
mov qword [rdi + 0x2b40], rbp
mov qword [rdi + 0x2b48], rbp
mov qword [rdi + 0x2b58], rbp
mov qword [rdi + 0x2b60], rbp
lea rax, [rdi + 0xa8]
mov qword [rdi + 0x2b68], 0xfff
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x90], 0x208
mov rsi, qword [rdi + 0x88]
add rax, rsi
mov qword [rdi + 0x2b70], 0x2000000
mov qword [rdi + 0x2b78], 0x2000000
mov qword [rdi + 0xaf8], rbp
mov qword [rdi + 0xb00], rbp
mov qword [rdi + 0xb08], rbp
mov qword [rdi + 0xb10], rbp
mov qword [rdi + 0x2b50], rbp
cmp rsi, rax
jae 0x140023cf6
mov qword [rsp + 0x68], r14
lea rbx, [rsi + 0x128]
movabs r14, 0xfc0fc0fc0fc0fc1
mov qword [rbx - 0x118], rdi
mov rcx, rsi
sub rcx, qword [rdi + 0x88]
mov rax, r14
imul rcx
mov rcx, rsi
mov word [rbx - 0x108], 0xffff
sar rdx, 5
mov rax, rdx
mov qword [rbx - 0xf0], rbp
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.140022e30
imul rax, qword [rdi + 0x90], 0x208
add rsi, 0x208
lea rbx, [rbx + 0x208]
add rax, qword [rdi + 0x88]
cmp rsi, rax
jb 0x140023c43
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
jmp 0x140023d28
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140023d10
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x88]
call qword [0x140314828]
mov rcx, rdi
call qword [0x140314828]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140157bf0
add rsp, 0x40
pop rdi
ret