Function at 0x18000ff90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x558
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x548], rax
cmp qword [rsp + 0x560], 0
je 0x18000ffcb
mov rax, qword [rsp + 0x560]
mov rcx, qword [0x180021420]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180021418], eax
je 0x18000ffe3
mov eax, 0x10dd
jmp 0x180010428
cmp dword [0x18002141c], 0
je 0x18000fffc
call fcn.18000fd80
mov eax, dword [0x18002141c]
jmp 0x180010428
mov dword [rsp + 0x20], 0
mov rax, qword [0x180021430]
mov qword [rsp + 0x38], rax
jmp 0x18001001f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800100f6
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 0
je 0x18001007b
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x20]
add rcx, 0x20
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call fcn.180003160
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov qword [rax], rcx
jmp 0x1800100f1
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
add rax, 0x50
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x20]
add rcx, 0x58
mov rdx, rax
call fcn.1800104a0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
add rax, 0x58
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call fcn.180010440
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180010520
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
jmp 0x180010012
mov rax, qword [0x180021428]
mov qword [rsp + 0x30], rax
jmp 0x180010111
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180010283
mov dword [rsp + 0x80], 0x100001
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18001027e
mov rax, qword [0x180021430]
mov qword [rsp + 0x38], rax
jmp 0x18001015f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18001027e
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 0
je 0x1800101f5
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
cmp qword [rsp + 0x148], rax
jb 0x1800101f0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
add rax, 8
cmp qword [rsp + 0x148], rax
jae 0x1800101f0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x148]
sub rcx, rax
mov rax, rcx
movzx edx, al
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.1800106b0
movzx eax, al
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x180010279
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
cmp qword [rsp + 0x148], rax
jb 0x180010279
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 0x18]
cmp qword [rsp + 0x148], rax
jae 0x180010279
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x148]
sub rcx, rax
mov rax, rcx
movzx eax, al
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.180010720
cdqe
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x148], rax
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x180010152
jmp 0x180010104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x28], rax
mov rax, qword [0x180021430]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18001036f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x528]
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov r8d, eax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rsp + 0x38]
cmp dword [rax + 8], 0
je 0x180010333
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x20], 0
je 0x180010333
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.18000ff30
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x20], 0
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x520], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x538], rax
mov rcx, qword [rsp + 0x538]
call fcn.18001308c
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0x38], rax
jmp 0x18001029a
mov qword [0x180021430], 0
cmp dword [rsp + 0x20], 0
je 0x18001038f
cmp dword [0x180021414], 0
jne 0x18001038f
call fcn.180010560
call fcn.18000fec0
mov rax, qword [0x180021428]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800103f0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x530], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x540], rax
mov rcx, qword [rsp + 0x540]
call fcn.18001308c
mov rax, qword [rsp + 0x530]
mov qword [rsp + 0x30], rax
jmp 0x1800103a0
mov qword [0x180021428], 0
mov dword [0x180021418], 0
cmp qword [rsp + 0x560], 0
je 0x180010422
mov rax, qword [rsp + 0x560]
mov rcx, qword [0x180021420]
mov qword [rax], rcx
mov eax, dword [0x18002141c]
mov rcx, qword [rsp + 0x548]
xor rcx, rsp
call fcn.180002fd0
add rsp, 0x558
ret