Function at 0x10002b3f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rdi, qword [0x10007d4d0]
mov rsi, rcx
mov ebx, 1
jmp 0x10002b487
test ebx, ebx
js 0x10002b576
mov rbp, qword [rdi]
test rbp, rbp
je 0x10002b483
mov rax, qword [rbp + 0x10]
and qword [rsp + 0x70], 0
test rax, rax
jne 0x10002b438
xor ebx, ebx
jmp 0x10002b483
mov rcx, qword [rbp + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x100002810]
call rax
mov ebx, eax
test eax, eax
js 0x10002b473
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbp]
lea rax, [rbp + 0x28]
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8d, r9d
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10002b483
mov rax, qword [rcx]
call qword [rax + 0x10]
add rdi, 8
cmp rdi, qword [0x10007d4d8]
jb 0x10002b415
test ebx, ebx
js 0x10002b576
jne 0x10002b570
cmp byte [rsi + 0x60], 0
je 0x10002b531
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x10002b52a
lea rax, [rsp + 0x70]
lea r8, [0x10002b620]
mov r9, rsi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x10002b4f6
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x10002b52a
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x10002b51f
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rsi + 0x58]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002b539
mov ebx, 0x80004005
jmp 0x10002b53d
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x10002b576
mov rdi, qword [0x10007d4d0]
xor eax, eax
jmp 0x10002b565
test eax, eax
jne 0x10002b574
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002b561
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x10002b561
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rdi, 8
cmp rdi, qword [0x10007d4d8]
jb 0x10002b548
jmp 0x10002b574
mov byte [rsi + 0x60], 0
test ebx, ebx
jne 0x10002b5bc
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x10002b5c0
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x10002b58f
test ebx, ebx
js 0x10002b602
mov rdi, qword [0x10007d4d0]
xor ebx, ebx
jmp 0x10002b5ea
test ebx, ebx
jne 0x10002b5f3
mov rax, qword [rdi]
test rax, rax
je 0x10002b5e6
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x10002b5e6
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x10007d4d8]
jb 0x10002b5cb
cmp byte [rsi + 0x60], 0
je 0x10002b602
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret