Function at 0x140001000
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x2b10
call qword [0x14000c0c0]
mov rdi, rax
test rax, rax
jne 0x140001043
call qword [0x14000c0d0]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400077a0
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x2b10
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x1c8
call qword [0x14000c0c0]
mov rbx, rax
test rax, rax
jne 0x14000107a
call qword [0x14000c0d0]
mov qword [rdi + 0x28], rbx
jmp 0x140001308
xor edx, edx
mov qword [rdi + 0x28], rbx
mov r8d, 0x1c8
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov edx, 2
xor r8d, r8d
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1400012fe
mov qword [rsp + 0x58], rbp
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov qword [rsp + 0x60], rsi
mov rcx, rax
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 dword [rdi + 0x20], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
xor ebp, ebp
mov qword [rdi + 0x30], 1
add dword [rdi + 0x20], eax
mov eax, dword [rdi + 0x20]
ror eax, 0x10
mov dword [rdi + 0x20], eax
lea rax, [rdi + 0x48]
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x30], 0x1c8
mov rsi, qword [rdi + 0x28]
add rax, rsi
mov qword [rdi + 0x38], 2
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov dword [rdi + 0x24], ebp
mov dword [rdi + 0x1c], 0x570
mov qword [rdi + 0x670], rbp
mov qword [rdi + 0xa88], rbp
mov qword [rdi + 0xa90], rbp
mov dword [rdi + 0x2ab8], ebp
mov word [rdi + 0x2abc], bp
mov qword [rdi + 0x2ac0], rbp
mov qword [rdi + 0x2ac8], rbp
mov qword [rdi + 0x2ad0], rbp
mov qword [rdi + 0x2ad8], rbp
mov dword [rdi + 0x58], ebp
mov qword [rdi + 0x2ae8], rbp
mov qword [rdi + 0x2af0], rbp
mov qword [rdi + 0x2af8], 0xfff
mov qword [rdi + 0x2b00], 0x2000000
mov qword [rdi + 0x2b08], 0x2000000
mov qword [rdi + 0xa98], rbp
mov qword [rdi + 0xaa0], rbp
mov qword [rdi + 0xaa8], rbp
mov qword [rdi + 0xab0], rbp
mov qword [rdi + 0x2ae0], rbp
cmp rsi, rax
jae 0x1400012ef
mov qword [rsp + 0x68], r14
lea rbx, [rsi + 0xf8]
movabs r14, 0x23ee08fb823ee09
nop
mov qword [rbx - 0xe8], rdi
mov rcx, rsi
sub rcx, qword [rdi + 0x28]
mov rax, r14
imul rcx
mov rcx, rsi
mov word [rbx - 0xd8], 0xffff
sar rdx, 2
mov rax, rdx
mov qword [rbx - 0xc8], 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 + 0x18]
mov qword [rax], rax
mov qword [rbx + 0x20], rax
lea rax, [rbx + 8]
mov qword [rax], rax
mov qword [rbx + 0x10], rax
lea rax, [rbx + 0x28]
mov qword [rax], rax
mov qword [rbx + 0x30], rax
mov word [rbx - 0xde], dx
call fcn.140001fe0
imul rax, qword [rdi + 0x30], 0x1c8
add rsi, 0x1c8
lea rbx, [rbx + 0x1c8]
add rax, qword [rdi + 0x28]
cmp rsi, rax
jb 0x140001250
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
jmp 0x140001313
mov rcx, qword [rdi + 0x28]
call qword [0x14000c0c8]
mov rcx, rdi
call qword [0x14000c0c8]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400077a0
add rsp, 0x40
pop rdi
ret