Function at 0x180065e34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rcx]
or edx, 0xffffffff
mov rdi, rcx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r14, [rdi + 0x28]
mov rcx, r14
call fcn.18005d618
lea rcx, [rdi + 8]
call fcn.18005d9f4
and dword [rdi + 0x60], 0
cmp dword [rdi + 0x50], 0
je 0x180065eda
cmp qword [rdi + 0x20], 0
jne 0x180065ed1
xor r9d, r9d
lea rcx, [rdi + 0x18]
call fcn.18005d89c
test eax, eax
jne 0x180065ed1
mov rcx, qword [0x1800c9a10]
lea rsi, [0x1800c9a10]
cmp rcx, rsi
je 0x180065ffb
test byte [rcx + 0x1c], 1
je 0x180065ffb
cmp byte [rcx + 0x19], 2
jb 0x180065ffb
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
lea r8, [0x1800a22d8]
call fcn.180001ae4
jmp 0x180065ffb
lea rcx, [rdi + 0x18]
call fcn.18005d9f4
xor ecx, ecx
lea r15, [rdi + 0x64]
lea rsi, [0x1800c9a10]
mov r9, rdi
cmp dword [rdi + 0x44], ecx
je 0x180065f5e
mov qword [rsp + 0x28], r15
lea r8, [0x180065704]
xor edx, edx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, r14
mov rbx, rax
call fcn.18005d618
mov qword [r14 + 8], rbx
mov rax, qword [rdi + 0x30]
inc rax
test rax, 0xfffffffffffffffe
jne 0x180065fe5
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x180065fec
test byte [rcx + 0x1c], 1
je 0x180065fec
cmp byte [rcx + 0x19], 2
jb 0x180065fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, SafeArrayDestroy
jmp 0x180065fcb
and dword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r8, [0x18006571c]
xor edx, edx
mov dword [rsp + 0x20], 4
call fcn.180051304
mov rcx, r14
mov rbx, rax
call fcn.18005d618
mov eax, dword [rsp + 0x78]
mov qword [r14 + 8], rbx
mov dword [r15], eax
mov rax, qword [rdi + 0x30]
inc rax
test rax, 0xfffffffffffffffe
jne 0x180065fe5
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x180065fec
test byte [rcx + 0x1c], 1
je 0x180065fec
cmp byte [rcx + 0x19], 2
jb 0x180065fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, SafeArrayDestroy
mov rcx, qword [0x1800c9a10]
lea r8, [0x1800a22d8]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.180001560
mov rcx, qword [0x1800c9a10]
mov rax, qword [rdi + 0x30]
inc rax
test rax, 0xfffffffffffffffe
jne 0x180066002
xor eax, eax
jmp 0x1800660a0
cmp rcx, rsi
je 0x18006603f
test byte [rcx + 0x1c], 1
je 0x18006603f
cmp byte [rcx + 0x19], 4
jb 0x18006603f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [0x1800c9a10]
lea r8, [0x1800a22d8]
mov r9d, eax
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov eax, dword [r15]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.180002d48
mov rcx, rdi
mov ebx, 1
call fcn.180065a80
cmp dword [rdi + 0x50], 0
je 0x180066095
mov r8d, dword [rdi + 0x48]
lea rcx, [rdi + 0x18]
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rdi + 0x60]
test ebx, ebx
jne 0x180066095
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x180066095
test byte [rcx + 0x1c], 1
je 0x180066095
cmp byte [rcx + 0x19], 2
jb 0x180066095
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
lea r8, [0x1800a22d8]
call fcn.180001ae4
lea rcx, [rdi + 0x18]
call fcn.18005d870
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret