Function at 0x7ff674a382b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x7ff674aed368]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r15d, r15d
mov r12d, 8
mov qword [rdi + 8], rax
mov rbx, rax
lea r14, [0x7ff674aedfa0]
test rax, rax
jne 0x7ff674a38378
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
mov esi, eax
call qword [r8]
mov rcx, qword gs:[0x58]
mov dword [rsp + 0x34], r15d
mov rdx, qword [rcx]
mov ecx, dword [r12 + rdx]
cmp dword [0x7ff674af5a84], ecx
jle 0x7ff674a38367
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84f68
cmp dword [0x7ff674af5a84], 0xffffffff
jne 0x7ff674a38367
lea rcx, [0x7ff674ac36f0]
call fcn.7ff674a85254
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84efc
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x7ff674a3851b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], r15
jne 0x7ff674a38409
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], r15d
mov rdx, qword [rcx]
mov ecx, dword [r12 + rdx]
cmp dword [0x7ff674af5a84], ecx
jle 0x7ff674a383f8
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84f68
cmp dword [0x7ff674af5a84], 0xffffffff
jne 0x7ff674a383f8
lea rcx, [0x7ff674ac36f0]
call fcn.7ff674a85254
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84efc
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x7ff674a3852d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x28], rax
lea r8, [0x7ff674a38540]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call fcn.7ff674a8caf8
mov qword [rbp + 8], rax
test rax, rax
jne 0x7ff674a384c7
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 0x7ff674a38461
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x7ff674a38470
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x58]
mov dword [rsp + 0x34], r15d
mov rdx, qword [rax]
mov eax, dword [r12 + rdx]
cmp dword [0x7ff674af5a84], eax
jle 0x7ff674a384ba
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84f68
cmp dword [0x7ff674af5a84], 0xffffffff
jne 0x7ff674a384ba
lea rcx, [0x7ff674ac36f0]
call fcn.7ff674a85254
lea rcx, [0x7ff674af5a84]
call fcn.7ff674a84efc
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x7ff674a38509
test rbx, rbx
je 0x7ff674a384e3
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.7ff674a84ea0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.7ff674a362d0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.7ff674a362d0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.7ff674a362d0
int3