Function at 0x18009ccf0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x558
cmp qword [rsp + 0x560], 0
je 0x18009cd19
mov rcx, qword [rsp + 0x560]
mov rax, qword [0x1802053c0]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1802053b4], eax
je 0x18009cd31
mov eax, 0x10dd
jmp 0x18009d1e5
cmp dword [0x1802053b8], 0
je 0x18009cd4a
call fcn.18009cad0
mov eax, dword [0x1802053b8]
jmp 0x18009d1e5
mov rax, qword [0x1802053d0]
mov qword [rsp + 0x30], rax
jmp 0x18009cd65
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18009ceaf
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
je 0x18009ce3a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x1f]
cmp dword [rsp + 0x40], eax
jge 0x18009cdf6
mov dword [rsp + 0x44], 0
movsxd rcx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
add rcx, qword [rax + 0x18]
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
call fcn.18009f700
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x44], 0
je 0x18009cddf
jmp 0x18009cdf6
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov dword [rsp + 0x40], eax
jmp 0x18009cd96
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x1f]
cmp dword [rsp + 0x40], eax
je 0x18009ce23
mov dword [0x1802053b8], 0xd
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [0x1802053c0], rax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rcx], rax
jmp 0x18009ceaa
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
add rdx, 0x28
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
add rcx, 0x30
call fcn.18009e0f0
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
add rdx, 0x30
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
call fcn.18009e090
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rsp + 0x48]
call fcn.18009e170
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rcx], rax
jmp 0x18009cd58
mov rax, qword [0x1802053c8]
mov qword [rsp + 0x28], rax
jmp 0x18009ceca
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18009d061
mov dword [rsp + 0x80], 0x100001
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18009d05c
mov rax, qword [0x1802053d0]
mov qword [rsp + 0x520], rax
jmp 0x18009cf21
mov rax, qword [rsp + 0x520]
mov rax, qword [rax]
mov qword [rsp + 0x520], rax
cmp qword [rsp + 0x520], 0
je 0x18009d05c
mov rax, qword [rsp + 0x520]
cmp dword [rax + 8], 0
je 0x18009cfc9
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x20]
cmp qword [rsp + 0x148], rax
jb 0x18009cfc4
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x20]
add rax, 8
cmp qword [rsp + 0x148], rax
jae 0x18009cfc4
mov rcx, qword [rsp + 0x520]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rsp + 0x148]
sub rax, rcx
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x520]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x148]
add rax, rcx
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x18009d057
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x18]
cmp qword [rsp + 0x148], rax
jb 0x18009d057
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x1f]
mov rcx, qword [rsp + 0x520]
add rax, qword [rcx + 0x18]
cmp qword [rsp + 0x148], rax
jae 0x18009d057
mov rcx, qword [rsp + 0x520]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x148]
sub rax, rcx
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x520]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rsp + 0x148]
add rax, rcx
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x18009cf0e
jmp 0x18009cebd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1802053d0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18009d141
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + 0x1f]
lea r9, [rsp + 0x530]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x28]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
movzx r8d, byte [rax + 0x1f]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
je 0x18009d105
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0
je 0x18009d105
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
call fcn.18009cc70
mov r11, qword [rsp + 0x30]
mov qword [r11 + 0x20], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x528], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x540], rax
mov rcx, qword [rsp + 0x540]
call fcn.1801196dc
mov rax, qword [rsp + 0x528]
mov qword [rsp + 0x30], rax
jmp 0x18009d078
mov qword [0x1802053d0], 0
call fcn.18009cc20
mov rax, qword [0x1802053c8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18009d1ad
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x538], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x548], rax
mov rcx, qword [rsp + 0x548]
call fcn.1801196dc
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x28], rax
jmp 0x18009d15d
mov qword [0x1802053c8], 0
mov dword [0x1802053b4], 0
cmp qword [rsp + 0x560], 0
je 0x18009d1df
mov rcx, qword [rsp + 0x560]
mov rax, qword [0x1802053c0]
mov qword [rcx], rax
mov eax, dword [0x1802053b8]
add rsp, 0x558
ret