Function at 0x180020bc0
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 [0x18011b2d8]
lea r8, [0x18011b290]
lea rdx, [0x18001fc70]
call fcn.180068f48
test eax, eax
je 0x180020bfb
cmp eax, 3
jne 0x1800210f9
mov rdi, qword [0x18011b2d8]
xor r14d, r14d
mov ebx, r14d
xor eax, eax
mov r13d, 1
lock cmpxchg dword [0x18011c764], r13d
je 0x180020c43
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x180020c2a
xor ecx, ecx
jmp 0x180020c2d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18011c764], r13d
jne 0x180020c20
cmp qword [0x18011c768], r14
je 0x1800210f2
mov r12d, 5
test rdi, rdi
jne 0x180020c67
mov ecx, r13d
call fcn.180068e44
mov ebp, eax
jmp 0x180020c94
mov ecx, dword [0x18011dcbc]
mov ebx, r14d
test ecx, ecx
je 0x180020c8f
mov r8, qword [0x18011dcb0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180020cd8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180020c80
mov ebp, 4
mov eax, r14d
xchg dword [0x18011c764], eax
test ebp, ebp
jne 0x1800210f9
mov rdx, qword [0x18011d4b8]
cmp rdx, qword [0x18011d4c0]
mov rax, qword [0x18011b2d8]
mov qword [rsp + 0x90], rax
je 0x180020d80
mov qword [rdx], rax
add qword [0x18011d4b8], 8
jmp 0x180020d94
cmp ebx, 0xffffffff
je 0x180020c8f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180020d78
mov r8d, r13d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18006898c
mov ebp, eax
test eax, eax
jne 0x180020c94
mov edx, r13d
mov ecx, ebx
call fcn.180068d38
mov r15, qword [rsp + 0x20]
mov ebp, eax
test r15, r15
je 0x180020c94
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180020d61
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 0x180020d58
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 0x180020d30
mov rcx, qword [0x18011c768]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180020c94
mov ebp, r12d
jmp 0x180020c94
lea r8, [rsp + 0x90]
lea rcx, [0x18011d4b0]
call fcn.180023ac0
mov rcx, qword [0x18011b2d0]
lea r8, [0x18011b288]
lea rdx, [0x18001fd10]
call fcn.180068f48
test eax, eax
jne 0x1800210f9
mov rdi, qword [0x18011b2d0]
mov rbx, r14
lock cmpxchg dword [0x18011c764], r13d
je 0x180020df3
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x180020dda
xor ecx, ecx
jmp 0x180020ddd
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18011c764], r13d
jne 0x180020dd0
cmp qword [0x18011c768], r14
je 0x1800210f2
test rdi, rdi
jne 0x180020e11
mov ecx, r13d
call fcn.180068e44
mov ebp, eax
jmp 0x180020e3c
mov ecx, dword [0x18011dcbc]
mov ebx, r14d
test ecx, ecx
je 0x180020e37
mov r8, qword [0x18011dcb0]
mov rax, r8
cmp rdi, qword [rax]
je 0x180020e80
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180020e28
mov ebp, 4
mov eax, r14d
xchg dword [0x18011c764], eax
test ebp, ebp
jne 0x1800210f9
mov rdx, qword [0x18011d4b8]
cmp rdx, qword [0x18011d4c0]
mov rax, qword [0x18011b2d0]
mov qword [rsp + 0x98], rax
je 0x180020f30
mov qword [rdx], rax
add qword [0x18011d4b8], 8
jmp 0x180020f44
cmp ebx, 0xffffffff
je 0x180020e37
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180020f28
mov r8d, r13d
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.18006898c
mov ebp, eax
test eax, eax
jne 0x180020e3c
mov edx, r13d
mov ecx, ebx
call fcn.180068d38
mov r15, qword [rsp + 0x30]
mov ebp, eax
test r15, r15
je 0x180020e3c
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x180020f11
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 0x180020f08
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 0x180020ee0
mov rcx, qword [0x18011c768]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180020e3c
mov ebp, r12d
jmp 0x180020e3c
lea r8, [rsp + 0x98]
lea rcx, [0x18011d4b0]
call fcn.180023ac0
mov rcx, qword [0x18011b2c8]
lea r8, [0x18011b280]
lea rdx, [0x18001ffc0]
call fcn.180068f48
test eax, eax
jne 0x1800210f9
mov rdi, qword [0x18011b2c8]
mov rbx, r14
lock cmpxchg dword [0x18011c764], r13d
je 0x180020fa3
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x180020f8a
xor ecx, ecx
jmp 0x180020f8d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18011c764], r13d
jne 0x180020f80
cmp qword [0x18011c768], r14
je 0x1800210f2
test rdi, rdi
jne 0x180020fc2
mov ecx, r13d
call fcn.180068e44
mov r12d, eax
jmp 0x180020ff5
mov ecx, dword [0x18011dcbc]
mov ebx, r14d
test ecx, ecx
je 0x180020fef
mov r8, qword [0x18011dcb0]
mov rax, r8
nop dword [rax]
cmp rdi, qword [rax]
je 0x18002103c
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180020fe0
mov r12d, 4
xchg dword [0x18011c764], r14d
test r12d, r12d
jne 0x1800210f9
mov rdx, qword [0x18011d4b8]
cmp rdx, qword [0x18011d4c0]
mov rax, qword [0x18011b2c8]
mov qword [rsp + 0xa0], rax
je 0x1800210d8
mov qword [rdx], rax
movzx eax, r13b
add qword [0x18011d4b8], 8
jmp 0x1800210fb
cmp ebx, 0xffffffff
je 0x180020fef
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180020ff5
mov r8d, r13d
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.18006898c
mov r12d, eax
test eax, eax
jne 0x180020ff5
mov edx, r13d
mov ecx, ebx
call fcn.180068d38
mov rbp, qword [rsp + 0x40]
mov r12d, eax
test rbp, rbp
je 0x180020ff5
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x1800210c1
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 0x1800210b8
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 0x180021090
mov rcx, qword [0x18011c768]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180020ff5
lea r8, [rsp + 0xa0]
lea rcx, [0x18011d4b0]
call fcn.180023ac0
movzx eax, r13b
jmp 0x1800210fb
xchg dword [0x18011c764], 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