Function at 0x180005750
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rdi + 0x1c], eax
xor r14d, r14d
mov eax, r14d
xchg dword [rdi + 0x20], eax
mov rax, qword [rdi + 0x1c]
mov qword [rdi + 0x30], rax
mov word [rdi + 0x38], 0x1ca
mov eax, dword [rdi + 0xe4]
cmp eax, 3
je 0x1800057b5
mov rcx, rdi
call fcn.180005020
mov eax, dword [rdi + 0x274]
mov esi, 1
test eax, eax
jne 0x1800057cb
mov eax, 0x598
jmp 0x1800057d6
cmp eax, 0x598
ja 0x18000596f
mov dword [rdi + 0x294], eax
xor r8d, r8d
xor edx, edx
mov dword [rdi + 0xe4], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
lea rcx, [rdi + 0x110]
mov dword [rdi + 0x130], 0x598
mov qword [rdi + 0x2b0], rax
mov eax, dword [rdi + 0xc8]
mov dword [rdi + 0x134], eax
mov eax, dword [rdi + 0xcc]
mov dword [rdi + 0x138], eax
call fcn.180001c10
mov rax, rsi
mov dword [rdi + 0xa0], esi
mov qword [rdi + 0xa4], 5
mov dword [rdi + 0xac], esi
lock xadd qword [0x1800617a8], rax
add rax, rsi
mov qword [rdi + 0xc0], rax
jne 0x18000586a
mov rax, rsi
lock xadd qword [0x1800617a8], rax
inc rax
mov qword [rdi + 0xc0], rax
mov rcx, qword [rdi + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x50], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x50], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, bx
mov rdx, rbp
mov rcx, rdi
call fcn.1800045e0
test eax, eax
je 0x180005927
lea rax, [rdi + 0xd8]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1800047e0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180027194
mov qword [rdi + 0xd0], rax
test rax, rax
je 0x180005916
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x18000596f
mov dword [rdi + 0xdc], 8
mov ecx, 0x65f
jmp 0x180005939
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xdc], select
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 0xa0], r14d
mov qword [rdi + 0xa4], 5
mov dword [rdi + 0xac], esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.180005020
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rdi + 0x3b0]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800059a2
cmp eax, 0x102
je 0x180005991
cmp eax, 0xffffffff
jne 0x18000599e
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1800059dd
xchg dword [rdi + 0x20], esi
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x68]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1800059f0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180027194
mov qword [rdi + 0x3b8], rax
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret