Function at 0x1401ad040
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x14029f798]
xor esi, esi
mov rbx, rcx
mov qword [rcx], rax
cmp qword [rcx + 0xc8], rsi
je 0x1401ad0b1
mov rcx, qword [rcx + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xc8]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1401ad09d
mov rcx, qword [rbx + 0xc8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0xc8], rsi
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x1401ad0ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xd8], rsi
mov dword [rbx + 0x78], esi
mov rdx, qword [rbx + 0x120]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401ad0f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0xe8]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad113
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbx + 0xc8], rsi
lea rax, [0x14029e3c0]
mov qword [rbx + 0x70], rax
je 0x1401ad171
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xc8]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1401ad15d
mov rcx, qword [rbx + 0xc8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0xc8], rsi
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x1401ad18a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xd8], rsi
mov rcx, qword [rbx + 0xd0]
mov dword [rbx + 0x78], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x80]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad1bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x68]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad1db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x58]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad1fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x50]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad219
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x48]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad238
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x40]
lea rax, [0x140295e58]
mov qword [rbx], rax
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad261
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x10]
lea rax, [0x140298b00]
mov qword [rbx], rax
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401ad28a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 8]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x1401ad2a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret