Function at 0x1400408b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x558
cmp qword [rsp + 0x560], 0
je 0x1400408d9
mov rcx, qword [rsp + 0x560]
mov rax, qword [0x14005ce18]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14005ce10], eax
je 0x1400408f1
mov eax, 0x10dd
jmp 0x140040da5
cmp dword [0x14005ce14], 0
je 0x14004090a
call fcn.140040210
mov eax, dword [0x14005ce14]
jmp 0x140040da5
mov rax, qword [0x14005ce28]
mov qword [rsp + 0x30], rax
jmp 0x140040925
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140040a6f
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
je 0x1400409fa
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 0x1400409b6
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.14003f2f0
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x44], 0
je 0x14004099f
jmp 0x1400409b6
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov dword [rsp + 0x40], eax
jmp 0x140040956
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x1f]
cmp dword [rsp + 0x40], eax
je 0x1400409e3
mov dword [0x14005ce14], 0xd
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [0x14005ce18], 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 0x140040a6a
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.140027210
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.1400271b0
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.140027290
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 0x140040918
mov rax, qword [0x14005ce20]
mov qword [rsp + 0x28], rax
jmp 0x140040a8a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140040c21
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 0x140040c1c
mov rax, qword [0x14005ce28]
mov qword [rsp + 0x520], rax
jmp 0x140040ae1
mov rax, qword [rsp + 0x520]
mov rax, qword [rax]
mov qword [rsp + 0x520], rax
cmp qword [rsp + 0x520], 0
je 0x140040c1c
mov rax, qword [rsp + 0x520]
cmp dword [rax + 8], 0
je 0x140040b89
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x20]
cmp qword [rsp + 0x148], rax
jb 0x140040b84
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x20]
add rax, 8
cmp qword [rsp + 0x148], rax
jae 0x140040b84
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 0x140040c17
mov rax, qword [rsp + 0x520]
mov rax, qword [rax + 0x18]
cmp qword [rsp + 0x148], rax
jb 0x140040c17
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 0x140040c17
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 0x140040ace
jmp 0x140040a7d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
mov rax, qword [0x14005ce28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140040d01
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 0x140040cc5
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0
je 0x140040cc5
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x20]
call fcn.140040040
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.1400285b0
mov rax, qword [rsp + 0x528]
mov qword [rsp + 0x30], rax
jmp 0x140040c38
mov qword [0x14005ce28], 0
call fcn.1400400a0
mov rax, qword [0x14005ce20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140040d6d
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.1400285b0
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x28], rax
jmp 0x140040d1d
mov qword [0x14005ce20], 0
mov dword [0x14005ce10], 0
cmp qword [rsp + 0x560], 0
je 0x140040d9f
mov rcx, qword [rsp + 0x560]
mov rax, qword [0x14005ce18]
mov qword [rcx], rax
mov eax, dword [0x14005ce14]
add rsp, 0x558
ret