Function at 0x100011778
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 [0x1000266f0]
mov ebx, 1
jmp 0x10001180c
test ebx, ebx
js 0x100011911
mov rsi, qword [rdi]
test rsi, rsi
je 0x100011808
mov rax, qword [rsi + 0x10]
and qword [rsp + 0x70], 0
test rax, rax
jne 0x1000117bd
xor ebx, ebx
jmp 0x100011808
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x1000034d8]
call rax
mov ebx, eax
test eax, eax
js 0x1000117f8
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 0x100011808
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
add rdi, 8
cmp rdi, qword [0x1000266f8]
jb 0x10001179a
test ebx, ebx
js 0x100011911
jne 0x100011908
cmp byte [0x1000272b0], 0
je 0x1000118c9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1000272a0], rax
test rax, rax
je 0x1000118c2
lea rax, [rsp + 0x70]
lea r9, [0x100027250]
lea r8, [0x1000119c0]
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 0x100011888
mov rcx, qword [0x1000272a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1000118c2
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x1000118b7
mov rcx, qword [0x1000272a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1000272a8]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000118d1
mov ebx, 0x80004005
jmp 0x1000118d5
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x100011911
mov rdi, qword [0x1000266f0]
xor eax, eax
jmp 0x1000118fd
test eax, eax
jne 0x10001190f
mov rcx, qword [rdi]
test rcx, rcx
je 0x1000118f9
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x1000118f9
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rdi, 8
cmp rdi, qword [0x1000266f8]
jb 0x1000118e0
jmp 0x10001190f
mov byte [0x1000272b0], 0
test ebx, ebx
jne 0x100011957
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x10001195b
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 0x10001192a
test ebx, ebx
js 0x1000119a3
mov rdi, qword [0x1000266f0]
xor ebx, ebx
jmp 0x100011985
test ebx, ebx
jne 0x10001198e
mov rax, qword [rdi]
test rax, rax
je 0x100011981
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x100011981
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x1000266f8]
jb 0x100011966
cmp byte [0x1000272b0], 0
je 0x1000119a3
mov ecx, dword [0x1000272ac]
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