Function at 0x14009d230
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x2b90
call qword [0x1400e95b0]
mov rdi, rax
test rax, rax
jne 0x14009d273
call qword [0x1400e95c0]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a13e0
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x2b90
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x208
call qword [0x1400e95b0]
mov rbx, rax
test rax, rax
jne 0x14009d2b8
call qword [0x1400e95c0]
mov rcx, rdi
mov qword [rdi + 0x88], rbx
call qword [0x1400e95b8]
xor eax, eax
jmp 0x14009d66a
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 0x14009d324
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 0x14009d63d
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, 0x20
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, 0x29
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, 0x29
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 [0x1400a7f00]
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]
add dword [rdi + 0x7c], eax
mov eax, dword [rdi + 0x7c]
movups xmm0, xmmword [0x1400a7f00]
ror 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
mov qword [rdi + 0x2b68], 0xfff
lea rax, [rdi + 0xa8]
mov qword [rdi + 0x2b70], 0x2000000
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 + 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 0x14009d633
mov qword [rsp + 0x68], r14
lea rbx, [rsi + 0x128]
movabs r14, 0xfc0fc0fc0fc0fc1
nop dword [rax]
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.14009c730
imul rax, qword [rdi + 0x90], 0x208
add rsi, 0x208
lea rbx, [rbx + 0x208]
add rax, qword [rdi + 0x88]
cmp rsi, rax
jb 0x14009d580
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
jmp 0x14009d665
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14009d64d
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x88]
call qword [0x1400e95b8]
mov rcx, rdi
call qword [0x1400e95b8]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a13e0
add rsp, 0x40
pop rdi
ret