Function at 0x140009b20
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, qword [0x140050ed0]
mov ebx, 1
jmp 0x140009bc2
test ebx, ebx
js 0x140009ccb
mov rsi, qword [rdi]
test rsi, rsi
je 0x140009bbe
and qword [rsp + 0x70], 0
mov rax, qword [rsi + 0x10]
test rax, rax
jne 0x140009b68
xor ebx, ebx
jmp 0x140009bbe
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x14003ca60]
call qword [case.0x140024a15.0]
mov ebx, eax
test eax, eax
js 0x140009ba7
mov rdx, qword [rsp + 0x70]
lea rax, [rsi + 0x28]
mov rcx, qword [rsi]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009bbe
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140024a15.0]
add rdi, 8
cmp rdi, qword [0x140050ed8]
jb 0x140009b45
test ebx, ebx
js 0x140009ccb
jne 0x140009cc2
cmp byte [0x140050cd0], 0
je 0x140009c83
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140050cc0], rax
test rax, rax
je 0x140009c7c
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x140050c70]
and dword [rsp + 0x20], 0
lea r8, [0x14000ba20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140009c42
mov rcx, qword [0x140050cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140009c7c
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140009c71
mov rcx, qword [0x140050cc0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x140050cc8]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009c8b
mov ebx, 0x80004005
jmp 0x140009c8f
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140009ccb
mov rdi, qword [0x140050ed0]
xor eax, eax
jmp 0x140009cb7
test eax, eax
jne 0x140009cc9
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009cb3
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x140009cb3
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rdi, 8
cmp rdi, qword [0x140050ed8]
jb 0x140009c9a
jmp 0x140009cc9
mov byte [0x140050cd0], 0
test ebx, ebx
jne 0x140009d11
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140009d15
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140009ce4
test ebx, ebx
js 0x140009d5d
mov rdi, qword [0x140050ed0]
xor ebx, ebx
jmp 0x140009d3f
test ebx, ebx
jne 0x140009d48
mov rax, qword [rdi]
test rax, rax
je 0x140009d3b
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140009d3b
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x140050ed8]
jb 0x140009d20
cmp byte [0x140050cd0], 0
je 0x140009d5d
mov ecx, dword [0x140050ccc]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret