Function at 0x140024e80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rbx, rcx
lea r15, [rcx + 0x728]
xor ebp, ebp
mov dword [rsp + 0x108], ebp
cmp dword [r15 + 0xb8], ebp
je 0x140024f2c
cmp qword [r15 + 0xa8], rbp
je 0x140024f2c
mov rcx, qword [r15 + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [rsp + 0x108]
mov rcx, qword [r15 + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140024f0c
cmp dword [rsp + 0x108], 0x103
jne 0x140024f0c
or edx, 0xffffffff
mov rcx, qword [r15 + 0xa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r15 + 0xa8]
test rcx, rcx
je 0x140024f25
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 0xa8], rbp
mov dword [r15 + 0xb8], ebp
cmp dword [r15 + 0xb8], ebp
jne 0x140024f5a
mov rcx, r15
call fcn.140149d50
cmp qword [r15 + 0x18], rbp
jle 0x140024f4b
mov rcx, r15
call fcn.1401f8430
cmp qword [r15 + 0x50], rbp
jle 0x140024f5a
lea rcx, [r15 + 0x38]
call fcn.1401ff4d0
mov qword [rbx + 0x7e8], rbx
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x4c], ebp
mov dword [rbx + 0x7f0], ebp
mov rax, qword [rbx + 0xc0]
mov r12, qword [rax + 0x1a20]
test r12, r12
je 0x140025701
nop
nop
nop
mov dword [rsp + 0x48], ebp
mov rax, r12
test r12, r12
je 0x1400256fb
mov r12, qword [r12]
mov qword [rsp + 0x88], r12
mov r12, qword [rax + 0x10]
test r12, r12
je 0x14002568c
cmp dword [r12 + 0x48], 0
je 0x14002568c
mov rdi, qword [r12 + 0x28]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140024fee
cmp rax, qword [rdi - 0x18]
jne 0x140024fee
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14002502a
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400256b6
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402279d0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0xf8], rax
lea rcx, [rbx + 0x760]
lea rdx, [rsp + 0x60]
call fcn.1401ff6a8
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025073
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 0x58
call fcn.1401ebd7c
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x140025097
mov rcx, rax
call fcn.14015f300
mov r13, rax
jmp 0x14002509a
mov r13, rbp
mov r14d, dword [r12 + 0x180]
bt r14d, 0x1d
jb 0x1400250ce
mov eax, dword [r12 + 0x184]
test al, 0x10
jne 0x1400250ce
test al, 1
je 0x1400250c5
bt dword [r12 + 0x17c], 0xb
jb 0x1400250ce
mov dword [rsp + 0xf8], ebp
jmp 0x1400250d9
mov dword [rsp + 0xf8], 1
bt r14d, 0xc
jb 0x1400250f0
bt r14d, 0x1a
jb 0x1400250f0
mov dword [rsp + 0x100], ebp
jmp 0x1400250fb
mov dword [rsp + 0x100], 1
shr r14d, 6
and r14d, 1
mov eax, dword [r12 + 0x17c]
shr eax, 0x12
and eax, 1
mov dword [rsp + 0x78], eax
mov eax, dword [r12 + 0x188]
shr eax, 0xb
and eax, 1
mov dword [rsp + 0x40], eax
test r13, r13
je 0x140025656
mov rdi, qword [r12 + 0x38]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140025159
cmp rax, qword [rdi - 0x18]
jne 0x140025159
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140025195
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400256b0
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402279d0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x90], rcx
lea rdi, [rax - 0x18]
mov rsi, qword [r13]
sub rsi, 0x18
cmp rdi, rsi
je 0x14002526f
cmp dword [rsi + 0x10], 0
jl 0x14002525b
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x14002525b
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x1400251f4
cmp rax, qword [rdi]
jne 0x1400251f4
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140025231
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14002569e
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402279d0
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002524c
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [r13], rax
mov rax, qword [rsp + 0x50]
jmp 0x14002526f
mov r8d, dword [rax - 0x10]
mov rdx, rax
mov rcx, r13
call fcn.140007880
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002528b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [r12 + 0x28]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400252b4
cmp rax, qword [rdi - 0x18]
jne 0x1400252b4
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400252f0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400256aa
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402279d0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x90], rcx
lea rdi, [rax - 0x18]
mov rsi, qword [r13 + 0x50]
sub rsi, 0x18
cmp rdi, rsi
je 0x1400253cb
cmp dword [rsi + 0x10], 0
jl 0x1400253b6
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x1400253b6
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14002534f
cmp rax, qword [rdi]
jne 0x14002534f
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x14002538c
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x1400256a4
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.1402279d0
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400253a7
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [r13 + 0x50], rax
mov rax, qword [rsp + 0x70]
jmp 0x1400253cb
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [r13 + 0x50]
call fcn.140007880
mov rax, qword [rsp + 0x70]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400253e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r12
mov rbx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.140024d80
test eax, eax
je 0x140025530
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], 1
lea rdx, [0x140270ef8]
lea rcx, [rsp + 0x80]
call fcn.14003c380
nop
xor edx, edx
lea rdi, [0x140273028]
mov rax, qword [rsp + 0x80]
mov rsi, rax
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14002544a
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete cl
test cl, cl
je 0x140025471
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400254a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400254a7
lea rcx, [r13 + 8]
lea rdx, [rsp + 0x80]
call fcn.1401ff6a8
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400254a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x140270ee0]
lea rcx, [rsp + 0x58]
call fcn.14003c380
nop
xor edx, edx
lea rdi, [0x140273028]
mov rax, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400254d9
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete cl
test cl, cl
je 0x140025500
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025530
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140025530
lea rcx, [r13 + 8]
lea rdx, [rsp + 0x58]
call fcn.1401ff6a8
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025530
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0xc0]
bt dword [rax + 0x10], 0x11
jb 0x140025597
cmp dword [rsp + 0x78], 0
jne 0x140025586
mov ebp, dword [rsp + 0x100]
test ebp, ebp
jne 0x1400255a8
mov r12d, dword [rsp + 0xf8]
test r12d, r12d
jne 0x1400255b0
test r14d, r14d
jne 0x1400255b0
cmp dword [rsp + 0x40], r14d
jne 0x1400255b0
cmp dword [rsp + 0x48], r14d
jne 0x140025641
lea edx, [rbp + 1]
mov rcx, r13
call fcn.1400258a0
xor ebp, ebp
jmp 0x14002568c
mov ebp, dword [rsp + 0x100]
mov r12d, dword [rsp + 0xf8]
jmp 0x1400255b0
mov ebp, dword [rsp + 0x100]
mov r12d, dword [rsp + 0xf8]
jmp 0x1400255b0
mov r12d, dword [rsp + 0xf8]
mov dword [rsp + 0x4c], 1
lea rdx, [0x140270f10]
lea rcx, [rsp + 0x68]
call fcn.14003c380
nop
xor edx, edx
lea rdi, [0x140273028]
mov rax, qword [rsp + 0x68]
mov rsi, rax
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400255ea
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete cl
test cl, cl
je 0x140025611
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025641
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140025641
lea rcx, [r13 + 8]
lea rdx, [rsp + 0x68]
call fcn.1401ff6a8
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025641
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbx + 0x798]
mov rdx, r13
call fcn.1401f86a8
mov eax, dword [rsp + 0x40]
jmp 0x140025665
mov ebp, dword [rsp + 0x100]
mov r12d, dword [rsp + 0xf8]
test ebp, ebp
je 0x140025673
mov dword [rbx + 0x7f0], 1
test r12d, r12d
jne 0x14002567c
test eax, eax
je 0x14002568a
mov dword [rbx + 0x7fc], 1
xor ebp, ebp
jmp 0x14002568c
xor ebp, ebp
mov r12, qword [rsp + 0x88]
test r12, r12
je 0x1400256bc
jmp 0x140024f90
call fcn.140003e50
nop
call fcn.140003e50
nop
call fcn.140003e50
int3
call fcn.140003e50
int3
call fcn.140003e50
int3
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400256e2
lea rdx, [0x140270ef8]
mov rcx, r15
call fcn.1401f86a8
lea rdx, [0x140270ee0]
mov rcx, r15
call fcn.1401f86a8
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140025701
lea rdx, [0x140270f10]
mov rcx, r15
call fcn.1401f86a8
jmp 0x140025701
call fcn.1401f8920
int3
cmp qword [r15 + 0x88], 0
jle 0x1400257a5
cmp qword [r15 + 0xb0], 0
jne 0x140025730
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r15 + 0xb0], rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
lea rcx, [0x140149ed0]
call fcn.1401fbf18
mov rbx, rax
test rax, rax
je 0x1400257a5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
lea r9, [r15 + 0xa8]
mov r8, rdi
mov rdx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [r15 + 0xb8], 1
mov eax, 1
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret