Function at 0x14000bb60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
xor r9d, r9d
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor ecx, ecx
lea r12d, [r9 + 1]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rbx, rax
lea r13, [0x14029a8e0]
test rax, rax
jne 0x14000bc28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword ds:[rsi]
mov edx, r12d
mov rcx, rsi
mov edi, eax
call qword [r8]
mov rdx, qword [0x14029a8e8]
movabs rax, 0x4d54ee85da812030
and dword [rbp - 0x1c], ebx
add rdx, rax
cmp rdx, r12
jbe 0x14000bbf4
mov rcx, qword [0x14029a8e0]
mov edx, edi
mov r8, qword [rcx + 0x30]
mov rcx, r13
call r8
jmp 0x14000bbf9
test edi, edi
setne al
movzx eax, al
add rax, 2
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], r13
test r12b, al
je 0x14000bc28
cmp rax, r12
jne 0x14000bdd2
test edi, edi
setne al
test al, al
jne 0x14000bdd2
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [r14 + 0x10], 0
jne 0x14000bccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword ds:[rsi]
mov edx, r12d
mov rcx, rsi
mov edi, eax
call qword [r8]
mov rdx, qword [0x14029a8e8]
movabs rax, 0x4d54ee85da812030
and dword [rbp - 0x1c], 0
add rdx, rax
cmp rdx, r12
jbe 0x14000bc9a
mov rcx, qword [0x14029a8e0]
mov edx, edi
mov r8, qword [rcx + 0x30]
mov rcx, r13
call r8
jmp 0x14000bc9f
test edi, edi
setne al
movzx eax, al
add rax, 2
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], r13
test r12b, al
je 0x14000bccc
cmp rax, r12
jne 0x14000bde6
test edi, edi
setne al
test al, al
jne 0x14000bde6
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x14000bdf8]
and dword [rsp + 0x20], 0
mov r9, rsi
xor edx, edx
xor ecx, ecx
call fcn.1401d1fd0
mov qword [r14 + 8], rax
test rax, rax
jne 0x14000bd8e
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, r12d
mov rcx, rsi
mov edi, eax
call qword [r8]
test rbx, rbx
je 0x14000bd26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x14000bd35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rbp - 0x1c], 0
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x14029a8e8]
cmp rcx, r12
jbe 0x14000bd62
mov rax, qword [0x14029a8e0]
mov edx, edi
mov rcx, r13
call qword [rax + 0x30]
nop
jmp 0x14000bd67
test edi, edi
setne al
movzx eax, al
add rax, 2
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], r13
test r12b, al
je 0x14000bd8e
nop
cmp rax, r12
jne 0x14000bdc1
test edi, edi
setne al
test al, al
jne 0x14000bdc1
test rbx, rbx
je 0x14000bda8
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rbp - 0x20]
call fcn.14000b340
int3
lea rdx, str.thread.entry_event
lea rcx, ds:[rbp - 0x20]
call fcn.14000b340
int3
lea rdx, str.thread.exit_event
lea rcx, [rbp - 0x20]
call fcn.14000b340
int3