Function at 0x180005a30
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 0x180005a95
mov rcx, rdi
call fcn.180005370
mov eax, dword [rdi + 0x274]
mov esi, 1
test eax, eax
jne 0x180005aab
mov eax, 0x598
jmp 0x180005ab6
cmp eax, 0x598
ja 0x180005c4f
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]
mov edx, dword [rdi + 0xc8]
lea rcx, [rdi + 0x140]
mov qword [rdi + 0x2b0], rax
mov eax, dword [rdi + 0xcc]
mov dword [rdi + 0x138], eax
mov dword [rdi + 0x130], 0x598
mov dword [rdi + 0x134], edx
call fcn.180001c30
mov rax, rsi
mov dword [rdi + 0xa0], esi
mov qword [rdi + 0xa4], 5
mov dword [rdi + 0xac], esi
lock xadd qword [0x1801005d8], rax
add rax, rsi
mov qword [rdi + 0xc0], rax
jne 0x180005b4a
mov rax, rsi
lock xadd qword [0x1801005d8], 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.180004930
test eax, eax
je 0x180005c07
lea rax, [rdi + 0xd8]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x180004b30]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180042e0c
mov qword [rdi + 0xd0], rax
test rax, rax
je 0x180005bf6
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x180005c4f
mov dword [rdi + 0xdc], 8
mov ecx, 0x65f
jmp 0x180005c19
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.180005370
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 0x180005c82
cmp eax, 0x102
je 0x180005c71
cmp eax, 0xffffffff
jne 0x180005c7e
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x180005cbd
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, [0x180005cd0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180042e0c
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