Function at 0x4ac9e0
Capabilities:
Resolve function by parsing pe exports
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], 0
cmp dword [ebp + 0xc], edi
jne 0x4aca5f
cmp dword [0x5496ac], edi
jne 0x4aca39
test esi, esi
je 0x4aca39
push dword [esi]
mov edx, 0x410
lea ecx, [ebp + 0xc]
call fcn.004ad010
mov dword [esp + 0xc], eax
test eax, eax
jns 0x4aca56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp + 0xc]
push eax
push 0x410
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhOpenThreadProcess
mov dword [esp + 0xc], eax
test eax, eax
js 0x4ace75
mov edi, dword [esp + 0xc]
mov byte [esp + 0x13], 1
mov ebx, dword [ebp + 8]
test esi, esi
je 0x4aca8d
mov ecx, dword fs:[0x18]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov esi, 1
cmp eax, dword [ecx + 0x24]
sete byte [esp + 0x14]
cmp edx, 4
sete cl
mov dword [esp + 0x18], ecx
je 0x4acaca
jmp 0x4acaa0
cmp ebx, 0xfffffffe
jne 0x4acde8
mov byte [esp + 0x14], 1
mov esi, 1
push 0
push 4
lea eax, [esp + 0x28]
push eax
push 9
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov ecx, dword [esp + 0x18]
test eax, eax
js 0x4acaca
mov eax, dword [esp + 0x20]
cmp eax, dword [0x54b660]
movzx ecx, cl
cmova ecx, esi
cmp byte [esp + 0x14], 0
jne 0x4acaee
test cl, cl
jne 0x4acaee
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtSuspendThread]
mov ecx, dword [esp + 0x1c]
test eax, eax
movzx ecx, cl
cmovns ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x5496ac]
mov eax, dword [ebp + 0x18]
test ecx, ecx
je 0x4acbe0
test al, 0x10
je 0x4acbe0
push 0
push 0
lea eax, [esp + 0x490]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], eax
lea eax, [esp + 0x14]
push 0x18
mov dword [esp + 0x90], eax
lea eax, [esp + 0x80]
push eax
push 0x999921ab
lea eax, [esp + 0xa0]
mov dword [esp + 0x8c], 1
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0xa4], 0xfe
mov dword [esp + 0xb0], 0
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x4acbdd
xor eax, eax
xor esi, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
cmp dword [esp + 0xc], eax
jbe 0x4acbdd
jmp 0x4acbb0
mov eax, dword [esp + esi*4 + 0x488]
push dword [ebp + 0x20]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x78], 4
call dword [ebp + 0x1c]
test al, al
je 0x4ace53
inc esi
cmp esi, dword [esp + 0xc]
jb 0x4acbb0
mov eax, dword [ebp + 0x18]
test al, 1
je 0x4ace4a
lea eax, [esp + 0x1b8]
mov dword [esp + 0x1b8], 0x1003f
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtGetContextThread]
mov dword [esp + 0xc], eax
test eax, eax
js 0x4ace46
push 0x108
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.004dce30
mov eax, dword [esp + 0x27c]
add esp, 0xc
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x27c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x26c]
mov dword [esp + 0xbc], 3
mov dword [esp + 0xec], 3
mov dword [esp + 0xdc], 3
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x20], eax
call fcn.004abcd0
cmp dword [0x54b600], 0
je 0x4ace46
mov edi, dword [0x54b5f4]
mov ecx, 0x54aee4
mov esi, dword [0x54b61c]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
push 0
push esi
push edi
push 0
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0xc4]
push eax
push ebx
push dword [esp + 0x3c]
push 0x14c
call dword [0x54b600]
mov ecx, 0x54aee4
mov bl, al
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
test bl, bl
je 0x4ace46
mov ecx, dword [esp + 0xb0]
mov eax, ecx
mov edx, dword [esp + 0xb4]
or eax, edx
je 0x4ace46
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x4ace46
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0x100], 0
push dword [ebp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x48], eax
mov eax, 1
mov dword [esp + 0x28], ecx
mov ecx, 0x101
cmovne eax, ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
call dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
test al, al
je 0x4ace4f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x270], eax
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x26c], eax
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x27c], eax
mov dword [esp + 0xe0], eax
jmp 0x4acc70
push 0
push 0x1c
lea eax, [esp + 0x9c]
push eax
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x4aca9b
mov ecx, dword fs:[0x18]
mov esi, 1
mov eax, dword [esp + 0x14]
movzx eax, al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, dword [ecx + 0x24]
mov ecx, dword [esp + 0x14]
cmove ecx, esi
cmp dword [esp + 0x9c], 4
mov dword [esp + 0x14], ecx
jne 0x4acaa0
mov cl, 1
jmp 0x4acaca
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x4ace53
mov edi, dword [esp + 0xc]
cmp byte [esp + 0x1c], 0
je 0x4ace63
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [esp + 0x13], 0
je 0x4ace73
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c