Function at 0x180010020
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x578
mov qword [rsp + 0x568], rcx
cmp qword [rsp + 0x568], 0
je 0x180010050
mov rcx, qword [0x18003cfe8]
mov rax, qword [rsp + 0x568]
mov qword [rax], rcx
mov eax, dword [0x18003cfd0]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov eax, dword [rsp + 0x4c]
cmp eax, ecx
je 0x18001007e
mov dword [rsp + 0x574], 0x10dd
jmp 0x1800105fa
cmp dword [0x18003cff0], 0
je 0x1800100a2
call fcn.18000fdb0
mov eax, dword [0x18003cff0]
mov dword [rsp + 0x574], eax
jmp 0x1800105fa
mov dword [rsp + 0x554], 0
mov rax, qword [0x18003cfd8]
mov qword [rsp + 0x560], rax
cmp qword [rsp + 0x560], 0
je 0x1800101dc
mov rax, qword [rsp + 0x560]
cmp dword [rax + 8], 0
je 0x180010131
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x560]
mov rdx, qword [rax + 0x20]
add rdx, 0x20
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov r8d, eax
call fcn.18001e9d0
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x10]
mov qword [rax], rcx
jmp 0x1800101bf
mov rax, qword [rsp + 0x560]
mov rdx, qword [rax + 0x20]
add rdx, 0x50
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x20]
add rcx, 0x58
call fcn.180010610
mov rax, qword [rsp + 0x560]
mov rdx, qword [rax + 0x20]
add rdx, 0x58
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x18]
call fcn.180010680
mov qword [rsp + 0x548], rax
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rsp + 0x548]
call fcn.1800106e0
mov qword [rsp + 0x548], rax
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x10]
mov qword [rax], rcx
jmp 0x1800101c4
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov qword [rsp + 0x560], rax
jmp 0x1800100bc
mov rax, qword [0x18003cfe0]
mov qword [rsp + 0x558], rax
cmp qword [rsp + 0x558], 0
je 0x1800103f8
mov dword [rsp + 0xa0], 0x100001
mov rax, qword [rsp + 0x558]
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp eax, 0
je 0x1800103db
mov rax, qword [0x18003cfd8]
mov qword [rsp + 0x560], rax
cmp qword [rsp + 0x560], 0
je 0x1800103d6
mov rax, qword [rsp + 0x560]
cmp dword [rax + 8], 0
je 0x1800102ff
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x20]
cmp rax, rcx
jb 0x1800102fa
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x20]
add rcx, 8
cmp rax, rcx
jae 0x1800102fa
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x20]
sub rax, rcx
mov dl, al
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x20]
call fcn.180010720
mov cl, al
mov rax, qword [rsp + 0x40]
movzx ecx, cl
add rax, rcx
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x558]
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1800103b9
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x18]
cmp rax, rcx
jb 0x1800103b4
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x560]
mov rdx, qword [rdx + 0x20]
movzx edx, byte [rdx + 0x3e]
add rcx, rdx
cmp rax, rcx
jae 0x1800103b4
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x560]
mov rcx, qword [rcx + 0x18]
sub rax, rcx
movzx edx, al
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x20]
call fcn.1800107b0
mov ecx, eax
mov rax, qword [rsp + 0x38]
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x558]
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1800103b9
jmp 0x1800103be
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov qword [rsp + 0x560], rax
jmp 0x180010234
jmp 0x1800103db
jmp 0x1800103e0
mov rax, qword [rsp + 0x558]
mov rax, qword [rax]
mov qword [rsp + 0x558], rax
jmp 0x1800101eb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003cfd8]
mov qword [rsp + 0x560], rax
cmp qword [rsp + 0x560], 0
je 0x180010514
mov rax, qword [rsp + 0x560]
mov r8d, dword [rax + 0x28]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov edx, eax
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x18]
lea r9, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x560]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov r8d, eax
mov rax, qword [rsp + 0x560]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rsp + 0x560]
cmp dword [rax + 8], 0
je 0x1800104d1
mov rax, qword [rsp + 0x560]
cmp qword [rax + 0x20], 0
je 0x1800104d1
mov rax, qword [rsp + 0x560]
mov rcx, qword [rax + 0x20]
call fcn.18000ff40
mov rax, qword [rsp + 0x560]
mov qword [rax + 0x20], 0
mov dword [rsp + 0x554], 1
mov rax, qword [rsp + 0x560]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x560]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x180010502
mov rcx, qword [rsp + 0x30]
call fcn.18001abf8
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x560], rax
jmp 0x180010412
mov qword [0x18003cfd8], 0
cmp dword [rsp + 0x554], 0
je 0x18001053f
cmp dword [0x18003cfcc], 0
jne 0x18001053f
call fcn.180010840
call fcn.18000ff90
mov rax, qword [0x18003cfe0]
mov qword [rsp + 0x558], rax
cmp qword [rsp + 0x558], 0
je 0x1800105b7
mov rax, qword [rsp + 0x558]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x558]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0x28], rax
cmp rax, 0
je 0x1800105a5
mov rcx, qword [rsp + 0x28]
call fcn.18001abf8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x558], rax
jmp 0x180010553
mov qword [0x18003cfe0], 0
mov dword [0x18003cfd0], 0
cmp qword [rsp + 0x568], 0
je 0x1800105ed
mov rcx, qword [0x18003cfe8]
mov rax, qword [rsp + 0x568]
mov qword [rax], rcx
mov eax, dword [0x18003cff0]
mov dword [rsp + 0x574], eax
mov eax, dword [rsp + 0x574]
add rsp, 0x578
ret