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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x888], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
push edi
mov dword [esp + 0x24], ecx
xor edi, edi
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x28], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x18], 0
test eax, eax
jne 0x4c2ae0
lea ecx, [ecx]
cmp dword [0x5b1f3c], edi
jne 0x4c2aa3
test esi, esi
je 0x4c2aa3
push dword [esi]
mov edx, 0x410
lea ecx, [esp + 0x24]
call fcn.004c3180
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jns 0x4c2ad7
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [esp + 0x20]
push eax
push 0x410
push ebx
call sym.ProcessHacker.exe_PhOpenThreadProcess
mov ecx, eax
mov dword [esp + 0x14], eax
test ecx, ecx
jns 0x4c2ad7
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
test esi, esi
je 0x4c2b0b
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 + 0x1c]
cmp edx, 4
sete cl
mov dword [esp + 0x18], ecx
je 0x4c2b48
jmp 0x4c2b1e
cmp ebx, 0xfffffffe
jne 0x4c2ea5
mov byte [esp + 0x1c], 1
mov esi, 1
push 0
push 4
lea eax, [esp + 0x1c]
push eax
push 9
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov ecx, dword [esp + 0x18]
test eax, eax
js 0x4c2b48
mov eax, dword [esp + 0x14]
cmp eax, dword [0x5b1da0]
movzx ecx, cl
cmova ecx, esi
cmp byte [esp + 0x1c], 0
jne 0x4c2b6c
test cl, cl
jne 0x4c2b6c
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtSuspendThread]
mov ecx, dword [esp + 0x28]
test eax, eax
movzx ecx, cl
cmovns ecx, esi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x18]
test cl, 0x10
je 0x4c2c7f
mov eax, dword [0x5b1f3c]
lea ecx, [ecx]
test eax, eax
je 0x4c2c7f
push 0
push 0
lea ecx, [esp + 0x4a0]
mov dword [esp + 0x20], 0
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x20]
push 0x18
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0x90]
push ecx
push 0x999921ab
lea ecx, [esp + 0xb0]
mov dword [esp + 0x98], ebx
push ecx
push 0
push 0
push 0
push eax
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 0xfe
mov dword [esp + 0xc0], 0
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
lea esp, [esp]
test eax, eax
js 0x4c2c7c
xor eax, eax
xor esi, esi
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
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
cmp dword [esp + 0x18], eax
jbe 0x4c2c7c
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0x498]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x88], 4
call dword [0x5404bc]
call dword [esp + 0x2c]
test al, al
je 0x4c2f11
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4c2c40
mov ecx, dword [ebp + 0x18]
nop
test cl, 1
je 0x4c2f11
lea eax, ds:[esp + 0x1c8]
mov dword [esp + 0x1c8], 0x1003f
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtGetContextThread]
mov dword [esp + 0x14], eax
test eax, eax
js 0x4c2f0d
push 0x108
lea eax, [esp + 0xc4]
push 0
push eax
lfence
call fcn.0051fd40
mov eax, dword [esp + 0x28c]
add esp, 0xc
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x28c]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x27c]
mov dword [esp + 0xcc], 3
mov dword [esp + 0xfc], 3
mov dword [esp + 0xec], 3
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0x18], eax
call fcn.004c1ac0
cmp dword [0x5b1f24], 0
je 0x4c2f0d
mov edi, dword [0x5b1f30]
mov ecx, 0x5b38c0
mov esi, dword [0x5b1f08]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
push 0
push esi
mov esi, dword [0x5b1f24]
lea eax, [esp + 0x1d0]
push edi
push 0
push eax
lea eax, [esp + 0xd4]
mov ecx, esi
push eax
push ebx
push dword [esp + 0x34]
push 0x14c
call dword [0x5404bc]
call esi
mov ecx, 0x5b38c0
mov esi, eax
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
test esi, esi
je 0x4c2f0d
mov ecx, dword [esp + 0xc0]
mov eax, ecx
mov edx, dword [esp + 0xc4]
or eax, edx
je 0x4c2f0d
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x4c2f0d
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0x110], 0
push dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x58], eax
mov eax, 1
mov dword [esp + 0x38], ecx
mov ecx, 0x101
cmovne eax, ecx
mov ecx, esi
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x38]
push eax
call dword [0x5404bc]
nop
call esi
test al, al
je 0x4c2f0d
mov eax, dword [esp + 0x34]
mov dword [esp + 0x280], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x27c], eax
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28c], eax
mov dword [esp + 0xf0], eax
jmp 0x4c2d17
push 0
push 0x1c
lea eax, [esp + 0xac]
push eax
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
lea ebx, [ebx]
test eax, eax
js 0x4c2b19
mov ecx, dword fs:[0x18]
mov esi, 1
mov eax, dword [esp + 0x1c]
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb0]
cmp eax, dword [ecx + 0x24]
mov ecx, dword [esp + 0x1c]
cmove ecx, esi
cmp dword [esp + 0xac], 4
mov dword [esp + 0x1c], ecx
jne 0x4c2b1e
mov cl, 1
jmp 0x4c2b48
mov edi, dword [esp + 0x14]
cmp byte [esp + 0x28], 0
je 0x4c2f26
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [esp + 0x13], 0
je 0x4c2f37
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x894]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x1c