Function at 0x140029910
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r9d, r9d
mov rsi, rdx
mov r15d, r8d
mov r14, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
movabs r13, 0x8fafd21e25c5e09b
lea rbp, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov rbx, rax
mov qword [rsi + 8], rax
lea r12, [0x1400d3590]
test rax, rax
jne 0x1400299f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rbx + 1]
mov rcx, rsi
mov edi, eax
call qword [r8]
mov ecx, dword [0x1400d35a0]
test cl, 1
jne 0x1400299ad
or ecx, 1
mov r8, rbp
mov qword [0x1400d3590], rbp
mov dword [0x1400d35a0], ecx
mov rcx, r13
mov qword [0x1400d3598], rcx
jmp 0x1400299bb
mov rcx, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
mov dword [rsp + 0x30], edi
cmp rcx, r13
je 0x1400299de
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400299de
mov edx, edi
mov rcx, r12
call qword [r8 + 0x30]
jmp 0x1400299e3
test edi, edi
setne al
mov byte [rsp + 0x34], al
mov qword [rsp + 0x38], r12
test al, al
jne 0x140029ba6
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [r14 + 0x10], 0
jne 0x140029aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov edi, eax
call qword [r8]
mov ecx, dword [0x1400d35a0]
test cl, 1
jne 0x140029a59
or ecx, 1
mov r8, rbp
mov qword [0x1400d3590], rbp
mov dword [0x1400d35a0], ecx
mov rcx, r13
mov qword [0x1400d3598], rcx
jmp 0x140029a67
mov rcx, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
mov dword [rsp + 0x30], edi
cmp rcx, r13
je 0x140029a8a
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x140029a8a
mov edx, edi
mov rcx, r12
call qword [r8 + 0x30]
jmp 0x140029a8f
test edi, edi
setne al
mov byte [rsp + 0x34], al
mov qword [rsp + 0x38], r12
test al, al
jne 0x140029bb8
xor ecx, ecx
lea rax, [rsp + 0x78]
lea r8, [0x14002a4d0]
mov qword [rsp + 0x28], rax
mov r9, rsi
mov edx, r15d
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x78], ecx
call fcn.14004b900
mov qword [r14 + 8], rax
test rax, rax
jne 0x140029b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov edi, eax
call qword [r8]
test rbx, rbx
je 0x140029af7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140029b06
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140029b2c
or eax, 1
mov qword [0x1400d3590], rbp
mov dword [0x1400d35a0], eax
mov rax, r13
mov qword [0x1400d3598], rax
jmp 0x140029b3a
mov rax, qword [0x1400d3598]
mov rbp, qword [0x1400d3590]
mov dword [rsp + 0x30], edi
cmp rax, r13
je 0x140029b5c
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140029b5c
mov edx, edi
mov rcx, r12
call qword [rbp + 0x30]
jmp 0x140029b61
test edi, edi
setne al
mov byte [rsp + 0x34], al
mov qword [rsp + 0x38], r12
test al, al
jne 0x140029bca
test rbx, rbx
je 0x140029b88
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 + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1400057e4
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1400057e4
int3
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1400057e4
int3