Function at 0x180005620
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 0x180005685
mov rcx, rdi
call fcn.180004ef0
mov eax, dword [rdi + 0x274]
mov esi, 1
test eax, eax
jne 0x18000569b
mov eax, 0x598
jmp 0x1800056a6
cmp eax, 0x598
ja 0x18000583f
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.180001ae0
mov rax, rsi
mov dword [rdi + 0xa0], esi
mov qword [rdi + 0xa4], 5
mov dword [rdi + 0xac], esi
lock xadd qword [0x180033748], rax
add rax, rsi
mov qword [rdi + 0xc0], rax
jne 0x18000573a
mov rax, rsi
lock xadd qword [0x180033748], 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.1800044f0
test eax, eax
je 0x1800057f7
lea rax, [rdi + 0xd8]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1800046f0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180010244
mov qword [rdi + 0xd0], rax
test rax, rax
je 0x1800057e6
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x18000583f
mov dword [rdi + 0xdc], 8
mov ecx, 0x65f
jmp 0x180005809
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.180004ef0
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 0x180005872
cmp eax, 0x102
je 0x180005861
cmp eax, 0xffffffff
jne 0x18000586e
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1800058ad
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, [0x1800058c0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180010244
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