Function at 0x14005fbe4
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x30], 0
jne 0x14005fd06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14005fc85
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x14005fc91
mov qword [rsp + 0x88], 0
call fcn.140289da0
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xe0], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xe8], rax
cmp dword [rsp + 0xe0], 0
jne 0x14005fcce
mov qword [rsp + 0x60], 0
jmp 0x14005fcda
lea rax, [fcn.140010b8c]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x14005fd06
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0xe0]
call fcn.14002de18
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x10], 0
jne 0x14005fe21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14005fda0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [rax]
mov qword [rsp + 0xa8], rax
jmp 0x14005fdac
mov qword [rsp + 0xa8], 0
call fcn.140289da0
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xf8], rax
cmp dword [rsp + 0xf0], 0
jne 0x14005fde9
mov qword [rsp + 0x70], 0
jmp 0x14005fdf5
lea rax, [fcn.140010b8c]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14005fe21
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0xf0]
call fcn.14002de18
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x128]
lea r8, [0x14005fadc]
mov edx, dword [rsp + 0x130]
xor ecx, ecx
call fcn.1402a59f8
mov rcx, qword [rsp + 0x120]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x120]
cmp qword [rax + 8], 0
jne 0x14005ff79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14005fec4
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rax]
mov qword [rsp + 0xc8], rax
jmp 0x14005fed0
mov qword [rsp + 0xc8], 0
cmp qword [rsp + 0x30], 0
je 0x14005fee3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x10], 0
je 0x14005ff04
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140289da0
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x108], rax
cmp dword [rsp + 0x100], 0
jne 0x14005ff41
mov qword [rsp + 0x78], 0
jmp 0x14005ff4d
lea rax, [fcn.140010b8c]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
je 0x14005ff79
lea rdx, str.thread
lea rcx, [rsp + 0x100]
call fcn.14002de18
cmp qword [rsp + 0x30], 0
je 0x14005ff9c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x118
ret