Function at 0x140029e10
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd30
mov dword [rsp + 0x54], 0
mov byte [rsp + 0x53], 0
mov byte [rsp + 0x52], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x51], 0
cmp qword [rsp + 0xd48], 0
jne 0x140029ed0
call sym.ProcessHacker.exe_KphIsConnected
movzx eax, al
test eax, eax
jne 0x140029e6a
cmp qword [rsp + 0xd50], 0
jne 0x140029e9a
mov r8, qword [rsp + 0xd40]
mov edx, 0x410
lea rcx, [rsp + 0xd48]
call sym.ProcessHacker.exe_PhOpenThreadProcess
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140029e98
mov eax, dword [rsp + 0x54]
jmp 0x14002a3c6
jmp 0x140029ecb
mov rax, qword [rsp + 0xd50]
mov r8, qword [rax]
mov edx, 0x410
lea rcx, [rsp + 0xd48]
call sym.ProcessHacker.exe_PhOpenProcess
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140029ecb
mov eax, dword [rsp + 0x54]
jmp 0x14002a3c6
mov byte [rsp + 0x52], 1
cmp qword [rsp + 0xd50], 0
je 0x140029f0c
call fcn.140012650
mov rcx, qword [rsp + 0xd50]
mov rax, qword [rax + 0x48]
cmp qword [rcx + 8], rax
jne 0x140029ef7
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0xd50]
cmp qword [rax], 4
jne 0x140029f0a
mov byte [rsp + 0x51], 1
jmp 0x140029f5f
cmp qword [rsp + 0xd40], 0xfffffffffffffffe
jne 0x140029f1e
mov byte [rsp + 0x50], 1
jmp 0x140029f5f
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xd40]
call fcn.14001dd40
test eax, eax
jl 0x140029f5f
call fcn.140012650
mov rax, qword [rax + 0x48]
cmp qword [rsp + 0xc8], rax
jne 0x140029f4f
mov byte [rsp + 0x50], 1
cmp qword [rsp + 0xc0], 4
jne 0x140029f5f
mov byte [rsp + 0x51], 1
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x140029f8a
movzx eax, byte [rsp + 0x51]
test eax, eax
jne 0x140029f8a
xor edx, edx
mov rcx, qword [rsp + 0xd40]
call qword [sym.imp.ntdll.dll_NtSuspendThread]
test eax, eax
jl 0x140029f8a
mov byte [rsp + 0x53], 1
mov eax, dword [rsp + 0xd58]
and eax, 0x10
test eax, eax
je 0x14002a04e
call sym.ProcessHacker.exe_KphIsConnected
movzx eax, al
test eax, eax
je 0x14002a04e
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x670]
mov r8d, 0x3d
mov edx, 1
mov rcx, qword [rsp + 0xd40]
call sym.ProcessHacker.exe_KphCaptureStackBackTraceThread
test eax, eax
jl 0x14002a04e
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0
jmp 0x14002a00b
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x58], eax
jae 0x14002a04e
mov eax, dword [rsp + 0x58]
mov rax, qword [rsp + rax*8 + 0x670]
mov qword [rsp + 0x300], rax
mov rdx, qword [rsp + 0xd68]
lea rcx, [rsp + 0x300]
call qword [rsp + 0xd60]
movzx eax, al
test eax, eax
jne 0x14002a04c
jmp 0x14002a392
jmp 0x14002a001
mov eax, dword [rsp + 0xd58]
and eax, 2
test eax, eax
je 0x14002a1b1
mov dword [rsp + 0x890], 0x10001f
lea rdx, [rsp + 0x860]
mov rcx, qword [rsp + 0xd40]
call sym.ProcessHacker.exe_PhGetThreadContext
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14002a090
jmp 0x14002a1b1
lea rax, [rsp + 0x1f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov dword [rsp + 0x1fc], 3
mov rax, qword [rsp + 0x958]
mov qword [rsp + 0x1f0], rax
mov dword [rsp + 0x22c], 3
mov rax, qword [rsp + 0x8f8]
mov qword [rsp + 0x220], rax
mov dword [rsp + 0x21c], 3
mov rax, qword [rsp + 0x900]
mov qword [rsp + 0x210], rax
xor eax, eax
cmp eax, 1
je 0x14002a1b1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x860]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1f0]
mov r8, qword [rsp + 0xd40]
mov rdx, qword [rsp + 0xd48]
mov ecx, 0x8664
call sym.ProcessHacker.exe_PhStackWalk
movzx eax, al
test eax, eax
jne 0x14002a15c
jmp 0x14002a1b1
cmp qword [rsp + 0x1f0], 0
je 0x14002a172
cmp qword [rsp + 0x1f0], 0xffffffffffffffff
jne 0x14002a174
jmp 0x14002a1b1
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0x1f0]
call fcn.140029d70
mov rdx, qword [rsp + 0xd68]
lea rcx, [rsp + 0x350]
call qword [rsp + 0xd60]
movzx eax, al
test eax, eax
jne 0x14002a1ac
jmp 0x14002a392
jmp 0x14002a0f5
mov eax, dword [rsp + 0xd58]
and eax, 1
test eax, eax
je 0x14002a392
mov dword [rsp + 0x3a0], 0x1003f
mov qword [rsp + 0x20], 0
mov r9d, 0x2cc
lea r8, [rsp + 0x3a0]
mov edx, 0x1d
mov rcx, qword [rsp + 0xd40]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14002a208
jmp 0x14002a392
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov dword [rsp + 0xec], 3
mov eax, dword [rsp + 0x458]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x11c], 3
mov eax, dword [rsp + 0x464]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x10c], 3
mov eax, dword [rsp + 0x454]
mov qword [rsp + 0x100], rax
xor eax, eax
cmp eax, 1
je 0x14002a392
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
mov r8, qword [rsp + 0xd40]
mov rdx, qword [rsp + 0xd48]
mov ecx, 0x14c
call sym.ProcessHacker.exe_PhStackWalk
movzx eax, al
test eax, eax
jne 0x14002a2d4
jmp 0x14002a392
cmp qword [rsp + 0xe0], 0
je 0x14002a2ea
cmp qword [rsp + 0xe0], 0xffffffffffffffff
jne 0x14002a2ef
jmp 0x14002a392
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe0]
call fcn.140029d70
mov rdx, qword [rsp + 0xd68]
lea rcx, [rsp + 0x60]
call qword [rsp + 0xd60]
movzx eax, al
test eax, eax
jne 0x14002a31e
jmp 0x14002a392
mov rcx, qword [rsp + 0x60]
call fcn.140027690
mov dword [rsp + 0x458], eax
mov rcx, qword [rsp + 0x60]
call fcn.140027690
mov eax, eax
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x70]
call fcn.140027690
mov dword [rsp + 0x454], eax
mov rcx, qword [rsp + 0x70]
call fcn.140027690
mov eax, eax
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x78]
call fcn.140027690
mov dword [rsp + 0x464], eax
mov rcx, qword [rsp + 0x78]
call fcn.140027690
mov eax, eax
mov qword [rsp + 0x110], rax
jmp 0x14002a26a
movzx eax, byte [rsp + 0x53]
test eax, eax
je 0x14002a3ab
xor edx, edx
mov rcx, qword [rsp + 0xd40]
call qword [sym.imp.ntdll.dll_NtResumeThread]
movzx eax, byte [rsp + 0x52]
test eax, eax
je 0x14002a3c2
mov rcx, qword [rsp + 0xd48]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x54]
add rsp, 0xd30
pop rdi
ret