Function at 0x180009ae0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbp
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call fcn.180009f30
test eax, eax
jne 0x180009b5e
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009b3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180009b57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180009d4b
mov r8d, ebx
mov rdx, qword [rsi]
lea rcx, [rdi + 8]
call fcn.18000e9b0
test al, al
jne 0x180009b94
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009b92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180009b3b
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.1800013c0
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea r8, [rsp + 0x30]
mov rdx, qword [rbp]
lea rcx, [rdi + 8]
call fcn.18000ed10
lea rcx, [rdi + 8]
test eax, eax
jne 0x180009bf2
call fcn.18000f090
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009bed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180009b3b
mov r8d, dword [rdi + 0x74]
mov rdx, qword [rdi + 0x60]
call fcn.18000ee60
test eax, eax
jne 0x180009c33
lea rcx, [rdi + 8]
call fcn.18000f090
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009c2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180009b3b
mov r8, rdi
xor edx, edx
lea rcx, [0x180009f20]
call fcn.1800115ec
xor ebx, ebx
xor edx, edx
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180009cfe
nop dword [rax]
mov rax, qword [rdi + 0x58]
lea rdx, [rax + 4]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi + 0x50]
mov r8, qword [rdi + 0x48]
mov rcx, rdi
call fcn.180009910
mov rdx, qword [rdi + 0x58]
mov r8d, dword [rdx]
add r8d, 4
lea rcx, [rdi + 8]
call fcn.18000ee60
test eax, eax
je 0x180009cfe
inc ebx
cmp ebx, 0x12c
jb 0x180009cd2
mov rcx, qword [0x18003a0a0]
test rcx, rcx
je 0x180009cbb
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18003a0a0]
mov ebx, dword [0x18003a0b0]
test rcx, rcx
je 0x180009ccc
call qword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x180009cfe
xor ebx, ebx
cmp dword [0x1800386c4], 0
je 0x180009cf4
xor edx, edx
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180009c60
jmp 0x180009cfe
mov dword [0x1800386c4], 1
lea rcx, [rdi + 8]
call fcn.18000f090
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009d29
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180009d46
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret