Function at 0x18000b660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x38], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x40], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x48], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x50], rax
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rsi + 0x58], rax
cmp qword [rsi + 0x40], rdi
je 0x18000b846
cmp qword [rsi + 0x48], rdi
je 0x18000b846
cmp qword [rsi + 0x50], rdi
je 0x18000b846
test rax, rax
je 0x18000b846
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, [0x18000b940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x38], rax
mov ebx, 0x80004005
test rax, rax
cmovne ebx, edi
lea rcx, [rsi + 0x38]
je 0x18000b84f
mov edx, 0xffffffff
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, eax
neg ecx
sbb ebx, ebx
and ebx, 0x80004005
lea rcx, [rsi + 0x38]
test eax, eax
jne 0x18000b84f
lea ecx, [rdi + 0x20]
call fcn.18001241c
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov ecx, dword [rsi]
mov qword [rax + 8], rcx
xor ecx, ecx
mov dword [rax + 0x10], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
mov ebx, 0x8007000e
test rdi, rdi
mov eax, 0
cmovne ebx, eax
test ebx, ebx
js 0x18000b812
mov r8, rdi
mov rdx, qword [rsi + 0x38]
lea rcx, [0x18000c130]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov ebx, 0x80000303
test eax, eax
mov ecx, 0
cmovne ebx, ecx
je 0x18000b812
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000b7ed
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x18]
mov qword [rsi + 8], rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000b803
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.180011ddc
jmp 0x18000b878
xor r9d, r9d
mov r8d, 0xffffffff
mov rdx, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000b837
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.180011ddc
jmp 0x18000b84b
mov ebx, 0x80004005
lea rcx, [rsi + 0x38]
call fcn.1800016b0
lea rcx, [rsi + 0x40]
call fcn.1800016b0
lea rcx, [rsi + 0x48]
call fcn.1800016b0
lea rcx, [rsi + 0x50]
call fcn.1800016b0
lea rcx, [rsi + 0x58]
call fcn.1800016b0
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180011d80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret