Function at 0x14000a1a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14004e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
mov edx, 1
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r12d, r12d
mov r13d, 4
mov qword [rdi + 8], rax
mov rbx, rax
lea r15, [0x14019f948]
test rax, rax
jne 0x14000a26c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov esi, eax
call qword [r8]
mov rcx, qword gs:[0x58]
mov dword [rsp + 0x34], r12d
mov rdx, qword [rcx]
mov ecx, dword [rdx + r13]
cmp dword [0x1401a39d4], ecx
jle 0x14000a25b
lea rcx, [0x1401a39d4]
call fcn.140036480
cmp dword [0x1401a39d4], 0xffffffff
jne 0x14000a25b
lea rcx, [0x14003ac80]
call fcn.1400367f0
lea rcx, [0x1401a39d4]
call fcn.140036414
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x14000a411
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], r12
jne 0x14000a2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov esi, eax
call qword [r8]
mov rcx, qword gs:[0x58]
mov dword [rsp + 0x34], r12d
mov rdx, qword [rcx]
mov ecx, dword [rdx + r13]
cmp dword [0x1401a39d4], ecx
jle 0x14000a2ed
lea rcx, [0x1401a39d4]
call fcn.140036480
cmp dword [0x1401a39d4], 0xffffffff
jne 0x14000a2ed
lea rcx, [0x14003ac80]
call fcn.1400367f0
lea rcx, [0x1401a39d4]
call fcn.140036414
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x14000a423
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x28], rax
lea r8, [0x14000a440]
mov r9, rdi
mov dword [rsp + 0x20], r12d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14000a3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov esi, eax
call qword [r8]
test rbx, rbx
je 0x14000a358
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14000a367
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x58]
mov dword [rsp + 0x34], r12d
mov rdx, qword [rax]
mov eax, dword [rdx + r13]
cmp dword [0x1401a39d4], eax
jle 0x14000a3b1
lea rcx, [0x1401a39d4]
call fcn.140036480
cmp dword [0x1401a39d4], 0xffffffff
jne 0x14000a3b1
lea rcx, [0x14003ac80]
call fcn.1400367f0
lea rcx, [0x1401a39d4]
call fcn.140036414
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x14000a3ff
test rbx, rbx
je 0x14000a3da
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036340
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1400099c0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1400099c0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1400099c0
int3