Function at 0x100006a08
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, qword [0x10000c310]
mov ebx, 1
jmp 0x100006a9c
test ebx, ebx
js 0x100006ba1
mov rsi, qword [rdi]
test rsi, rsi
je 0x100006a98
mov rax, qword [rsi + 0x10]
and qword [rsp + 0x70], 0
test rax, rax
jne 0x100006a4d
xor ebx, ebx
jmp 0x100006a98
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x100002dd0]
call rax
mov ebx, eax
test eax, eax
js 0x100006a88
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsi]
mov r9d, 5
lea rax, [rsi + 0x28]
lea r8d, [r9 - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x100006a98
mov rax, qword [rcx]
call qword [rax + 0x10]
add rdi, 8
cmp rdi, qword [0x10000c318]
jb 0x100006a2a
test ebx, ebx
js 0x100006ba1
jne 0x100006b98
cmp byte [0x10000ca40], 0
je 0x100006b59
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x10000ca30], rax
test rax, rax
je 0x100006b52
lea rax, [rsp + 0x70]
lea r9, [0x10000c9e0]
lea r8, [0x100006c50]
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 0x100006b18
mov rcx, qword [0x10000ca30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x100006b52
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x100006b47
mov rcx, qword [0x10000ca30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x10000ca38]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100006b61
mov ebx, 0x80004005
jmp 0x100006b65
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x100006ba1
mov rdi, qword [0x10000c310]
xor eax, eax
jmp 0x100006b8d
test eax, eax
jne 0x100006b9f
mov rcx, qword [rdi]
test rcx, rcx
je 0x100006b89
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x100006b89
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rdi, 8
cmp rdi, qword [0x10000c318]
jb 0x100006b70
jmp 0x100006b9f
mov byte [0x10000ca40], 0
test ebx, ebx
jne 0x100006be7
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x100006beb
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 0x100006bba
test ebx, ebx
js 0x100006c33
mov rdi, qword [0x10000c310]
xor ebx, ebx
jmp 0x100006c15
test ebx, ebx
jne 0x100006c1e
mov rax, qword [rdi]
test rax, rax
je 0x100006c11
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x100006c11
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x10000c318]
jb 0x100006bf6
cmp byte [0x10000ca40], 0
je 0x100006c33
mov ecx, dword [0x10000ca3c]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret