Function at 0x18002a560
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rcx, qword [0x1801a2488]
lea r8, [0x1801a2450]
lea rdx, [0x1800296c0]
call fcn.1800b9208
test eax, eax
je 0x18002a59b
cmp eax, 3
jne 0x18002aa99
mov rdi, qword [0x1801a2488]
xor r14d, r14d
mov ebx, r14d
xor eax, eax
mov r13d, 1
lock cmpxchg dword [0x1801a39c8], r13d
je 0x18002a5e3
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a5ca
xor ecx, ecx
jmp 0x18002a5cd
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a39c8], r13d
jne 0x18002a5c0
cmp qword [0x1801a39d0], r14
je 0x18002aa92
mov r12d, 5
test rdi, rdi
jne 0x18002a607
mov ecx, r13d
call fcn.1800b9104
mov ebp, eax
jmp 0x18002a634
mov ecx, dword [0x1801a4fcc]
mov ebx, r14d
test ecx, ecx
je 0x18002a62f
mov r8, qword [0x1801a4fc0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18002a678
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a620
mov ebp, 4
mov eax, r14d
xchg dword [0x1801a39c8], eax
test ebp, ebp
jne 0x18002aa99
mov rdx, qword [0x1801a3a10]
cmp rdx, qword [0x1801a3a18]
mov rax, qword [0x1801a2488]
mov qword [rsp + 0x90], rax
je 0x18002a720
mov qword [rdx], rax
add qword [0x1801a3a10], 8
jmp 0x18002a734
cmp ebx, 0xffffffff
je 0x18002a62f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a718
mov r8d, r13d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800b8c4c
mov ebp, eax
test eax, eax
jne 0x18002a634
mov edx, r13d
mov ecx, ebx
call fcn.1800b8ff8
mov r15, qword [rsp + 0x20]
mov ebp, eax
test r15, r15
je 0x18002a634
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002a701
mov rbx, r15
mov esi, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002a6f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, r13
jne 0x18002a6d0
mov rcx, qword [0x1801a39d0]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a634
mov ebp, r12d
jmp 0x18002a634
lea r8, [rsp + 0x90]
lea rcx, [0x1801a3a08]
call fcn.18002d670
mov rcx, qword [0x1801a2480]
lea r8, [0x1801a2448]
lea rdx, [0x180029760]
call fcn.1800b9208
test eax, eax
jne 0x18002aa99
mov rdi, qword [0x1801a2480]
mov rbx, r14
lock cmpxchg dword [0x1801a39c8], r13d
je 0x18002a793
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a77a
xor ecx, ecx
jmp 0x18002a77d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a39c8], r13d
jne 0x18002a770
cmp qword [0x1801a39d0], r14
je 0x18002aa92
test rdi, rdi
jne 0x18002a7b1
mov ecx, r13d
call fcn.1800b9104
mov ebp, eax
jmp 0x18002a7dc
mov ecx, dword [0x1801a4fcc]
mov ebx, r14d
test ecx, ecx
je 0x18002a7d7
mov r8, qword [0x1801a4fc0]
mov rax, r8
cmp rdi, qword [rax]
je 0x18002a820
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a7c8
mov ebp, 4
mov eax, r14d
xchg dword [0x1801a39c8], eax
test ebp, ebp
jne 0x18002aa99
mov rdx, qword [0x1801a3a10]
cmp rdx, qword [0x1801a3a18]
mov rax, qword [0x1801a2480]
mov qword [rsp + 0x98], rax
je 0x18002a8d0
mov qword [rdx], rax
add qword [0x1801a3a10], 8
jmp 0x18002a8e4
cmp ebx, 0xffffffff
je 0x18002a7d7
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a8c8
mov r8d, r13d
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.1800b8c4c
mov ebp, eax
test eax, eax
jne 0x18002a7dc
mov edx, r13d
mov ecx, ebx
call fcn.1800b8ff8
mov r15, qword [rsp + 0x30]
mov ebp, eax
test r15, r15
je 0x18002a7dc
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x18002a8b1
mov rbx, r15
mov esi, eax
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002a8a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, r13
jne 0x18002a880
mov rcx, qword [0x1801a39d0]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a7dc
mov ebp, r12d
jmp 0x18002a7dc
lea r8, [rsp + 0x98]
lea rcx, [0x1801a3a08]
call fcn.18002d670
mov rcx, qword [0x1801a2478]
lea r8, [0x1801a2440]
lea rdx, [0x180029850]
call fcn.1800b9208
test eax, eax
jne 0x18002aa99
mov rdi, qword [0x1801a2478]
mov rbx, r14
lock cmpxchg dword [0x1801a39c8], r13d
je 0x18002a943
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a92a
xor ecx, ecx
jmp 0x18002a92d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a39c8], r13d
jne 0x18002a920
cmp qword [0x1801a39d0], r14
je 0x18002aa92
test rdi, rdi
jne 0x18002a962
mov ecx, r13d
call fcn.1800b9104
mov r12d, eax
jmp 0x18002a995
mov ecx, dword [0x1801a4fcc]
mov ebx, r14d
test ecx, ecx
je 0x18002a98f
mov r8, qword [0x1801a4fc0]
mov rax, r8
nop dword [rax]
cmp rdi, qword [rax]
je 0x18002a9dc
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a980
mov r12d, 4
xchg dword [0x1801a39c8], r14d
test r12d, r12d
jne 0x18002aa99
mov rdx, qword [0x1801a3a10]
cmp rdx, qword [0x1801a3a18]
mov rax, qword [0x1801a2478]
mov qword [rsp + 0xa0], rax
je 0x18002aa78
mov qword [rdx], rax
movzx eax, r13b
add qword [0x1801a3a10], 8
jmp 0x18002aa9b
cmp ebx, 0xffffffff
je 0x18002a98f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a995
mov r8d, r13d
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.1800b8c4c
mov r12d, eax
test eax, eax
jne 0x18002a995
mov edx, r13d
mov ecx, ebx
call fcn.1800b8ff8
mov rbp, qword [rsp + 0x40]
mov r12d, eax
test rbp, rbp
je 0x18002a995
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x18002aa61
mov rdi, rbp
mov esi, eax
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18002aa58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, r13
jne 0x18002aa30
mov rcx, qword [0x1801a39d0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a995
lea r8, [rsp + 0xa0]
lea rcx, [0x1801a3a08]
call fcn.18002d670
movzx eax, r13b
jmp 0x18002aa9b
xchg dword [0x1801a39c8], r14d
xor al, al
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret