Function at 0x100014944
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
sub rsp, 0x30
mov rcx, qword [0x1000a9e88]
lea r13, [0x1000a9e88]
cmp rcx, r13
je 0x1000149c6
bt dword [rcx + 0x1c], 8
jae 0x10001499e
movzx r9d, byte [0x1000aae18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100006ff0]
mov edx, 0xc
call fcn.100013df8
mov rcx, qword [0x1000a9e88]
cmp rcx, r13
je 0x1000149c6
bt dword [rcx + 0x1c], 8
jae 0x1000149c6
mov r9d, dword [0x1000aae08]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100006ff0]
mov edx, 0xd
call fcn.100013df8
mov rbx, qword [0x1000aa1a0]
mov rax, qword [0x1000aa1a8]
xor r12d, r12d
cmp byte [0x1000aae18], r12b
mov ebp, r12d
lea edi, [r12 + 1]
setne bpl
or ebp, 4
jmp 0x100014a6a
cmp edi, r12d
jl 0x100014b84
mov rsi, qword [rbx]
cmp rsi, r12
je 0x100014a66
mov r9, qword [rsi + 0x10]
mov qword [rsp + 0x50], r12
cmp r9, r12
jne 0x100014a13
mov edi, r12d
jmp 0x100014a66
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x100007500]
call r9
cmp eax, r12d
mov edi, eax
jl 0x100014a4f
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsi]
lea rax, [rsi + 0x28]
mov r9d, ebp
mov r8d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov edi, eax
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x100014a5f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1000aa1a8]
add rbx, 8
cmp rbx, rax
jb 0x1000149ef
cmp edi, r12d
jl 0x100014b84
cmp byte [0x1000aae10], r12b
je 0x100014b7a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
or rbp, 0xffffffffffffffff
mov qword [0x1000aae00], rax
cmp rax, r12
je 0x100014ae1
lea rax, [rsp + 0x50]
lea r9, [0x1000aadb0]
lea r8, [0x100014e3c]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, r12
jne 0x100014ae4
mov rcx, qword [0x1000aae00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rbp
cmp rbx, rbp
jne 0x100014af0
call fcn.100015aa4
mov edi, eax
cmp edi, r12d
jl 0x100014b27
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
cmp eax, r12d
mov edi, eax
jge 0x100014b6a
mov rcx, qword [0x1000aae00]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1000aae08]
cmp rbx, rbp
mov rcx, rbx
cmove rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100014b6a
mov rsi, qword [0x1000aa1a0]
mov rdx, qword [0x1000aa1a8]
mov eax, r12d
jmp 0x100014b65
cmp eax, r12d
jne 0x100014b6a
mov rcx, qword [rsi]
cmp rcx, r12
je 0x100014b61
mov ecx, dword [rcx + 0x28]
cmp ecx, r12d
jne 0x100014b54
mov eax, r12d
jmp 0x100014b61
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x1000aa1a8]
add rsi, 8
cmp rsi, rdx
jb 0x100014b3a
cmp rbx, rbp
je 0x100014b8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100014b8b
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
jmp 0x100014b8b
mov byte [0x1000aae10], r12b
cmp edi, r12d
jl 0x100014c18
xor edx, edx
lea rax, [rsp + 0x50]
lea r9, [0x100001910]
lea rcx, [0x100001960]
lea r8d, [rdx + 1]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r12d
mov edi, eax
jl 0x100014bde
mov rcx, qword [rsp + 0x50]
mov edx, 1
mov rax, qword [rcx]
mov r8, rdx
call qword [rax + 0x18]
cmp eax, r12d
mov edi, eax
jge 0x100014c08
mov rcx, qword [0x1000a9e88]
cmp rcx, r13
je 0x100014c08
test byte [rcx + 0x1c], 2
je 0x100014c08
mov rcx, qword [rcx + 0x10]
lea r8, [0x100006ff0]
mov edx, 0xe
mov r9d, edi
call fcn.100013df8
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x100014c18
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret