Function at 0x18002a070
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 [0x1801a1110]
lea r8, [0x1801a10c8]
lea rdx, [0x1800291d0]
call fcn.1800b8628
test eax, eax
je 0x18002a0ab
cmp eax, 3
jne 0x18002a5a9
mov rdi, qword [0x1801a1110]
xor r14d, r14d
mov ebx, r14d
xor eax, eax
mov r13d, 1
lock cmpxchg dword [0x1801a2648], r13d
je 0x18002a0f3
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a0da
xor ecx, ecx
jmp 0x18002a0dd
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a2648], r13d
jne 0x18002a0d0
cmp qword [0x1801a2650], r14
je 0x18002a5a2
mov r12d, 5
test rdi, rdi
jne 0x18002a117
mov ecx, r13d
call fcn.1800b8524
mov ebp, eax
jmp 0x18002a144
mov ecx, dword [0x1801a3c4c]
mov ebx, r14d
test ecx, ecx
je 0x18002a13f
mov r8, qword [0x1801a3c40]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18002a188
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a130
mov ebp, 4
mov eax, r14d
xchg dword [0x1801a2648], eax
test ebp, ebp
jne 0x18002a5a9
mov rdx, qword [0x1801a2690]
cmp rdx, qword [0x1801a2698]
mov rax, qword [0x1801a1110]
mov qword [rsp + 0x90], rax
je 0x18002a230
mov qword [rdx], rax
add qword [0x1801a2690], 8
jmp 0x18002a244
cmp ebx, 0xffffffff
je 0x18002a13f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a228
mov r8d, r13d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800b806c
mov ebp, eax
test eax, eax
jne 0x18002a144
mov edx, r13d
mov ecx, ebx
call fcn.1800b8418
mov r15, qword [rsp + 0x20]
mov ebp, eax
test r15, r15
je 0x18002a144
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002a211
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 0x18002a208
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 0x18002a1e0
mov rcx, qword [0x1801a2650]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a144
mov ebp, r12d
jmp 0x18002a144
lea r8, [rsp + 0x90]
lea rcx, [0x1801a2688]
call fcn.18002d180
mov rcx, qword [0x1801a1108]
lea r8, [0x1801a10c0]
lea rdx, [0x180029270]
call fcn.1800b8628
test eax, eax
jne 0x18002a5a9
mov rdi, qword [0x1801a1108]
mov rbx, r14
lock cmpxchg dword [0x1801a2648], r13d
je 0x18002a2a3
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a28a
xor ecx, ecx
jmp 0x18002a28d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a2648], r13d
jne 0x18002a280
cmp qword [0x1801a2650], r14
je 0x18002a5a2
test rdi, rdi
jne 0x18002a2c1
mov ecx, r13d
call fcn.1800b8524
mov ebp, eax
jmp 0x18002a2ec
mov ecx, dword [0x1801a3c4c]
mov ebx, r14d
test ecx, ecx
je 0x18002a2e7
mov r8, qword [0x1801a3c40]
mov rax, r8
cmp rdi, qword [rax]
je 0x18002a330
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a2d8
mov ebp, 4
mov eax, r14d
xchg dword [0x1801a2648], eax
test ebp, ebp
jne 0x18002a5a9
mov rdx, qword [0x1801a2690]
cmp rdx, qword [0x1801a2698]
mov rax, qword [0x1801a1108]
mov qword [rsp + 0x98], rax
je 0x18002a3e0
mov qword [rdx], rax
add qword [0x1801a2690], 8
jmp 0x18002a3f4
cmp ebx, 0xffffffff
je 0x18002a2e7
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a3d8
mov r8d, r13d
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.1800b806c
mov ebp, eax
test eax, eax
jne 0x18002a2ec
mov edx, r13d
mov ecx, ebx
call fcn.1800b8418
mov r15, qword [rsp + 0x30]
mov ebp, eax
test r15, r15
je 0x18002a2ec
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x18002a3c1
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 0x18002a3b8
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 0x18002a390
mov rcx, qword [0x1801a2650]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a2ec
mov ebp, r12d
jmp 0x18002a2ec
lea r8, [rsp + 0x98]
lea rcx, [0x1801a2688]
call fcn.18002d180
mov rcx, qword [0x1801a1100]
lea r8, [0x1801a10b8]
lea rdx, [0x180029360]
call fcn.1800b8628
test eax, eax
jne 0x18002a5a9
mov rdi, qword [0x1801a1100]
mov rbx, r14
lock cmpxchg dword [0x1801a2648], r13d
je 0x18002a453
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18002a43a
xor ecx, ecx
jmp 0x18002a43d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a2648], r13d
jne 0x18002a430
cmp qword [0x1801a2650], r14
je 0x18002a5a2
test rdi, rdi
jne 0x18002a472
mov ecx, r13d
call fcn.1800b8524
mov r12d, eax
jmp 0x18002a4a5
mov ecx, dword [0x1801a3c4c]
mov ebx, r14d
test ecx, ecx
je 0x18002a49f
mov r8, qword [0x1801a3c40]
mov rax, r8
nop dword [rax]
cmp rdi, qword [rax]
je 0x18002a4ec
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a490
mov r12d, 4
xchg dword [0x1801a2648], r14d
test r12d, r12d
jne 0x18002a5a9
mov rdx, qword [0x1801a2690]
cmp rdx, qword [0x1801a2698]
mov rax, qword [0x1801a1100]
mov qword [rsp + 0xa0], rax
je 0x18002a588
mov qword [rdx], rax
movzx eax, r13b
add qword [0x1801a2690], 8
jmp 0x18002a5ab
cmp ebx, 0xffffffff
je 0x18002a49f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18002a4a5
mov r8d, r13d
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.1800b806c
mov r12d, eax
test eax, eax
jne 0x18002a4a5
mov edx, r13d
mov ecx, ebx
call fcn.1800b8418
mov rbp, qword [rsp + 0x40]
mov r12d, eax
test rbp, rbp
je 0x18002a4a5
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x18002a571
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 0x18002a568
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 0x18002a540
mov rcx, qword [0x1801a2650]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002a4a5
lea r8, [rsp + 0xa0]
lea rcx, [0x1801a2688]
call fcn.18002d180
movzx eax, r13b
jmp 0x18002a5ab
xchg dword [0x1801a2648], 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