Function at 0x180005640
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 0x1800056a5
mov rcx, rdi
call fcn.180004f10
mov eax, dword [rdi + 0x274]
mov esi, 1
test eax, eax
jne 0x1800056bb
mov eax, 0x598
jmp 0x1800056c6
cmp eax, 0x598
ja 0x18000585f
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.180001b00
mov rax, rsi
mov dword [rdi + 0xa0], esi
mov qword [rdi + 0xa4], 5
mov dword [rdi + 0xac], esi
lock xadd qword [0x180047358], rax
add rax, rsi
mov qword [rdi + 0xc0], rax
jne 0x18000575a
mov rax, rsi
lock xadd qword [0x180047358], 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.180004510
test eax, eax
je 0x180005817
lea rax, [rdi + 0xd8]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x180004710]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180012f94
mov qword [rdi + 0xd0], rax
test rax, rax
je 0x180005806
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x18000585f
mov dword [rdi + 0xdc], 8
mov ecx, 0x65f
jmp 0x180005829
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xdc], send
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.180004f10
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 0x180005892
cmp eax, 0x102
je 0x180005881
cmp eax, 0xffffffff
jne 0x18000588e
mov rcx, qword [rdi + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1800058cd
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, [0x1800058e0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.180012f94
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