Function at 0x140108c40
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x1401b66a0]
xor esi, esi
mov rbx, rcx
mov qword [rcx], rax
cmp qword [rcx + 0xc8], rsi
je 0x140108cb1
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 0x140108c9d
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 0x140108cca
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 0x140108cf1
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 0x140108d13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbx + 0xc8], rsi
lea rax, vtable.j.0
mov qword [rbx + 0x70], rax
je 0x140108d71
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 0x140108d5d
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 0x140108d8a
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 0x140108dbc
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 0x140108ddb
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 0x140108dfa
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 0x140108e19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x40]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140108e38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x38]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140108e57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x30]
lea rax, method.k.1.virtual_0
mov qword [rbx], rax
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140108e80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x10]
lea rax, [0x1401a6558]
sub rdx, 0x18
mov qword [rbx], rax
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x140108ea7
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