Function at 0x140022a40
Capabilities:
Terminate thread

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xf8
cmp qword [rsp + 0x100], 0
jne 0x140022a60
jmp 0x140022f51
mov dword [rsp + 0xd0], 0x64
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x88], 0
je 0x140022b63
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xb8], 0
je 0x140022abf
mov edx, 1
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0xb8]
call sub.mfc120u.dll_Ordinal_4299
mov rax, qword [rsp + 0x100]
mov qword [rax + 0xb8], 0
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x88]
mov edx, 0x64
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140022aff
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140022b44
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0xb0], rax
jmp 0x140022b50
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x88], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x18], 0
je 0x140022bd0
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140022bb7
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x60], rax
jmp 0x140022bc0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x20], 0
je 0x140022c43
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140022c27
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0xc0], rax
jmp 0x140022c33
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x28], 0
je 0x140022cb6
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140022c9a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0xe0], rax
jmp 0x140022ca6
mov qword [rsp + 0xe0], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x30], 0
je 0x140022d1d
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140022d04
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x78], rax
jmp 0x140022d0d
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x50], 0
je 0x140022d67
mov rcx, qword [rsp + 0x100]
call fcn.140026900
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x50]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x50]
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x38], 0
je 0x140022da4
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rax]
call qword [rax + 0x30]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x80], 0
je 0x140022e1f
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140022e00
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x98], rax
jmp 0x140022e0c
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x80], 0
cmp qword [0x14021b008], 0
je 0x140022e69
mov edx, 0x3e8
mov rcx, qword [0x14021b008]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140022e51
xor edx, edx
mov rcx, qword [0x14021b008]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14021b008]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14021b008], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xe8], 0
je 0x140022ee4
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0xe8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140022ec5
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rax]
mov qword [rsp + 0xb8], rax
jmp 0x140022ed1
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0xe8], 0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140022f3f
mov rax, qword [rsp + 0x40]
add rax, 8
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xd8], rcx
mov edx, 1
mov rcx, rax
mov rax, qword [rsp + 0xd8]
call qword [rax]
mov qword [rsp + 0xe8], rax
jmp 0x140022f4b
mov qword [rsp + 0xe8], 0
call qword [sym.imp.ole32.dll_CoUninitialize]
add rsp, 0xf8
ret