Function at 0x49f620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov dword [esp + 0x178], eax
mov esi, dword [ebx + 0x60]
mov dword [esp + 0x20], ebx
nop
cmp dword [eax + 0x44], esi
je 0x49f67f
mov ecx, dword [eax]
test ecx, ecx
je 0x49f666
add eax, ecx
mov dword [esp + 0x178], eax
jne 0x49f650
lea eax, [esp + 0x2b8]
mov dword [esp + 0x2bc], 0
mov dword [esp + 0x178], eax
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
test esi, esi
jne 0x49f69f
xor ecx, ecx
test edx, edx
je 0x49f69f
add eax, 0xdc
mov dword [eax], ecx
lea eax, [eax + 0x40]
inc ecx
cmp ecx, edx
jb 0x49f695
xor esi, esi
xor edi, edi
mov edx, dword [ebx]
mov ecx, dword [edx + 0x24]
cmp edi, ecx
jae 0x49f6de
mov eax, dword [edx]
add eax, 8
mov dword [esp + 0x17c], eax
imul eax, edi
add eax, dword [edx + 0x18]
mov edi, edi
mov edx, eax
inc edi
add eax, dword [esp + 0x17c]
mov dword [esp + 0x180], edx
cmp dword [edx], 0xffffffff
jne 0x49fa88
cmp edi, ecx
jb 0x49f6c0
mov edi, dword [esp + 0x20]
test esi, esi
je 0x49f758
lea ecx, [edi + 4]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x49f73b
jmp 0x49f700
mov eax, dword [esi + 8]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x17c]
push eax
push dword [edi]
call sym.ProcessHacker.exe_PhRemoveEntryHashtable
mov ecx, dword [esp + 0x17c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f736
call fcn.004b3960
inc ebx
cmp ebx, dword [esi]
jb 0x49f700
lea ecx, ds:[edi + 4]
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f758
call fcn.004b3960
lea eax, ds:[edi + 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlInterlockedFlushSList]
mov ebx, eax
test ebx, ebx
je 0x49f87c
mov esi, ebx
mov ebx, dword [ebx]
cmp dword [esi + 0x20], 0
jne 0x49f7eb
mov ecx, dword ds:[esi + 0x18]
test ecx, ecx
je 0x49f7eb
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov dword [eax + 0x80], ecx
lock inc dword [ecx - 4]
test edx, edx
je 0x49f7ae
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f7ae
call fcn.004b3960
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov edx, dword [eax + 0x84]
mov dword [eax + 0x84], ecx
test ecx, ecx
je 0x49f7c8
lock inc dword [ecx - 4]
test edx, edx
je 0x49f7df
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f7df
call fcn.004b3960
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x88], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
mov edx, dword [eax + 0x74]
mov dword [eax + 0x74], ecx
test edx, edx
je 0x49f80e
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f80e
call fcn.004b3960
mov eax, dword [esi + 8]
mov byte [eax + 0x8d], 1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x49f832
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f832
call fcn.004b3960
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x49f84c
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f84c
call fcn.004b3960
mov ecx, dword [esi + 8]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f865
lea ecx, [ecx]
call fcn.004b3960
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jne 0x49f770
cmp dword [esp + 0x1c], 0
jbe 0x49feb8
mov ebx, dword [esp + 0x178]
lea esi, [edi + 4]
add ebx, 0xdc
mov dword [esp + 0x18], ebx
jmp 0x49f8a0
mov eax, dword [ebx]
lea ecx, [esp + 0x188]
mov dword [esp + 0x184], ecx
mov ecx, esi
mov dword [esp + 0x188], eax
call sym.ProcessHacker.exe_PhfAcquireFastLockShared
lea eax, [esp + 0x184]
push eax
push dword [edi]
call sym.ProcessHacker.exe_PhFindEntryHashtable
test eax, eax
je 0x49fee9
mov esi, dword [eax]
mov dword [esp + 0x24], esi
lock inc dword [esi - 4]
lea ecx, [edi + 4]
call sym.ProcessHacker.exe_PhfReleaseFastLockShared
mov dword [esp + 0x178], esi
test esi, esi
je 0x49fefb
mov bl, byte [esi + 0x8d]
mov esi, dword [esp + 0x18]
test bl, bl
mov edx, dword [esp + 0x24]
setne bl
mov eax, dword [esi - 0x24]
mov ecx, dword [esi - 0x20]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x178]
mov ecx, dword [esi + 4]
mov dword [eax + 0x5c], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [esi + 8]
mov dword [eax + 0x60], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x64], ecx
mov ecx, dword [esp + 0x178]
mov eax, dword [esi + 0x14]
cmp dword [ecx + 0x68], eax
je 0x49f96a
mov dword [ecx + 0x68], eax
mov bl, 1
mov ecx, dword [esp + 0x178]
cmp dword [ecx + 0x88], 2
lea edx, [ecx + 0x88]
jne 0x49f9c7
mov eax, dword [edi + 0x88]
or eax, dword [edi + 0x8c]
je 0x49f9c7
push dword [ecx + 0x7c]
push dword [ecx + 0x78]
mov ecx, edi
call fcn.0049f4c0
mov ecx, dword [esp + 0x178]
mov edx, dword [ecx + 0x80]
mov dword [ecx + 0x80], eax
test edx, edx
je 0x49f9be
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49f9be
call fcn.004b3960
mov ecx, dword [esp + 0x178]
mov bl, 1
cmp byte [ecx + 0x8d], 0
je 0x49fa05
cmp dword [ecx + 0x88], 2
jne 0x49fa05
mov eax, dword ds:[esi - 8]
cdq
cmp dword [ecx + 0x78], eax
jne 0x49f9ea
cmp dword [ecx + 0x7c], edx
je 0x49fa05
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov ecx, edi
mov edx, dword [esp + 0x178]
call fcn.0049f3c0
mov ecx, dword [esp + 0x178]
mov eax, dword [esi + 0xc]
sub eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x178]
mov ecx, dword [esi + 0xc]
movzx ebx, bl
mov dword [eax + 0x40], ecx
mov eax, 1
mov esi, dword [esp + 0x178]
cmp dword [esi + 0x44], edx
cmovne ebx, eax
cmp dword [edi + 0x60], 0
mov eax, dword [esi + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x44], eax
je 0x49fb65
push 0
push 0x10
lea eax, [esp + 0x230]
push eax
push 0x17
push dword [esi + 0x70]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, dword [esp + 0x178]
test eax, eax
js 0x49fbbc
mov edx, dword [esp + 0x228]
mov ebx, dword [esp + 0x22c]
jmp 0x49fb7e
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
jbe 0x49fad0
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x178]
add eax, 0xdc
jmp 0x49fab0
mov ebx, dword ds:[esp + 0x17c]
cmp ebx, dword [eax]
mov ebx, dword [esp + 0x20]
je 0x49f6a3
inc ecx
add eax, 0x40
cmp ecx, dword [esp + 0x1c]
jb 0x49fab0
push dword [edx + 8]
lea eax, [ebx + 0x30]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
lea esp, [esp]
test esi, esi
jne 0x49fb13
push dword [0x5b1d74]
push 0xc
call sym.ProcessHacker.exe_PhCreateObject
push 8
mov esi, eax
push 4
push dword [0x5b1dac]
mov dword [esi], 0
mov dword [esi + 4], 2
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x180]
mov ecx, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp + 0x17c], eax
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x49fb4c
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword ds:[esi + 8]
mov edx, dword [esp + 0x17c]
mov dword [eax + ecx*4], edx
inc dword [esi]
jmp 0x49f6a3
movsx eax, byte [0x5b1da8]
mov ecx, dword [esi]
cmp ecx, eax
jae 0x49fbbc
mov eax, dword [0x5b1cfc]
mov edx, dword [eax + ecx*8]
mov ebx, dword [eax + ecx*8 + 4]
mov ecx, edx
mov eax, ebx
sub ecx, dword [esi + 0x48]
sbb eax, dword [esi + 0x4c]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x178]
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], ebx
mov esi, dword [esp + 0x178]
mov eax, dword [esp + 0x24]
cmp dword [esi + 0x50], eax
jne 0x49fbb4
mov eax, dword [esp + 0x44]
cmp dword [esi + 0x54], eax
je 0x49fbb8
mov bl, 1
jmp 0x49fbbc
mov ebx, dword [esp + 0x10]
mov ecx, dword ds:[esi + 0x10]
sub ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
sbb eax, dword [esi + 0x24]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov edx, dword [esp + 0x178]
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x30]
mov eax, dword [edx + 0x1c]
sbb eax, dword [edx + 0x34]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], ecx
cmp byte [0x5ac98b], 0
mov edx, dword [esp + 0x178]
je 0x49fcda
cmp dword [edi + 0x60], 0
je 0x49fc36
cmp dword [edx + 0x70], 0
je 0x49fcda
mov eax, dword [edx + 0x50]
mov ecx, dword [edx + 0x54]
mov dword [esp + 0xb8], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0xc0], 0
and eax, 0x80000000
mov dword [esp + 0xbc], ecx
fild qword [esp + 0xb8]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xd0], 0
fild qword [esp + 0xc0]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov eax, dword [0x5b1d08]
mov ecx, dword [0x5b1d0c]
mov dword [esp + 0xc8], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [esp + 0xcc], ecx
fild qword [esp + 0xc8]
mov dword [esp + 0xd4], eax
fild qword [esp + 0xd0]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
jmp 0x49fd97
mov eax, dword [edx + 0x38]
add eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x3c]
adc ecx, dword [edx + 0x2c]
mov dword [esp + 0xa8], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0xb0], 0
and eax, 0x80000000
mov dword [esp + 0xac], ecx
fild qword [esp + 0xa8]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x98], 0
fild qword [esp + 0xb0]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov eax, dword [0x5b48b8]
add eax, dword [0x5b4918]
mov ecx, dword [0x5b48bc]
adc ecx, dword [0x5b491c]
add eax, dword [0x5b4928]
mov dword [esp + 0xa0], eax
adc ecx, dword [0x5b492c]
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0xa4], ecx
and eax, 0x80000000
fild qword [esp + 0xa0]
mov dword [esp + 0x9c], eax
fild qword [esp + 0x98]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
mov eax, dword [esp + 0x178]
fstp dword [eax + 0x58]
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x49fde9
push 0
push 0x1c
lea eax, [esp + 0x244]
push eax
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x49fde2
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x254]
mov dword [ecx + 0x6c], eax
jmp 0x49fdf0
mov eax, dword [esp + 0x178]
mov dword [eax + 0x6c], 0x7fffffff
mov esi, dword [esp + 0x178]
mov ecx, dword [esp + 0x10]
movzx eax, bl
push 0x2c
cmp dword [esi + 0x6c], ecx
mov ecx, 1
push 0
cmovne eax, ecx
mov dword [esp + 0x260], 0x30
mov dword [esp + 0x18], eax
lea eax, [esp + 0x264]
push eax
call fcn.0051fd40
mov bl, byte ds:[esi + 0x8c]
lea eax, [esp + 0x264]
add esp, 0xc
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
mov eax, dword [esp + 0x178]
setne cl
mov byte [eax + 0x8c], cl
mov eax, dword [esp + 0x178]
cmp byte [eax + 0x8c], bl
mov byte [eax + 0x8d], 0
jne 0x49fe75
cmp byte [esp + 0x10], 0
je 0x49fe85
push dword [esp + 0x178]
lea eax, [edi + 0x20]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
mov ecx, dword [esp + 0x178]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49fe9f
call fcn.004b3960
mov ebx, dword [esp + 0x18]
lea esi, [edi + 4]
add ebx, 0x40
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebx
jne 0x49f8a0
push 0
lea eax, [edi + 0x40]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
add dword ds:[edi + 0x80], 1
mov ecx, dword [esp + 0x3b4]
adc dword [edi + 0x84], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov ecx, esi
call sym.ProcessHacker.exe_PhfReleaseFastLockShared
mov dword [esp + 0x178], 0
mov eax, dword [0x5b1724]
push dword [0x5b1d50]
mov esi, dword [ebx]
add eax, 0x90
push eax
mov dword [esp + 0x188], 0
mov dword [0x5b1720], 0x90
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
push 0x8c
push 0
lea ecx, [edi + 4]
push ecx
call fcn.0051fd40
add esp, 0xc
mov dword [edi], esi
mov edx, edi
mov ecx, 6
push 0
call fcn.00413fa0
mov eax, dword ds:[ebx - 0x14]
mov ecx, dword [ebx - 0x10]
mov dword [esp + 0x178], edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx - 0x24]
mov edx, dword [ebx - 0x20]
mov dword [esp + 0x30], 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx - 0x1c]
mov edx, dword [ebx - 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [eax + 0x40]
mov dword [eax + 0x44], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x40], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 4]
mov dword [eax + 0x5c], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 8]
mov dword [eax + 0x60], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x64], ecx
mov eax, dword [esp + 0x178]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x68], ecx
cmp byte [0x5b18bb], 0
mov eax, dword [esp + 0x178]
lea esi, [eax + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
je 0x4a00c5
mov dword [esp + 0x60], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x64], 0
test eax, eax
je 0x4a0045
push 0
push 0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push 0x10
push eax
lea eax, [esp + 0x168]
jmp 0x4a01de
push 0
push 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push 4
mov dword [esp + 0x120], eax
lea eax, [esp + 0x58]
push eax
push 0x9999200b
lea eax, [esp + 0x11c]
mov dword [esp + 0x124], 0x4cc3b0
push eax
push 0
push 0x4cc2c0
push 0
push dword [0x5b1f3c]
mov dword [esp + 0x140], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
call dword [sym.imp.ntdll.dll_NtTestAlert]
push 0
push 0
lea eax, [esp + 0x60]
push 0x10
push eax
lea eax, [esp + 0x168]
jmp 0x4a01de
push eax
lea eax, [esp + 0xdc]
mov dword [esp + 0xdc], 0x18
push eax
push 0x40
push esi
mov dword [esp + 0xec], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
lea esp, [esp]
cmp eax, 0xc0000022
jne 0x4a01f6
mov cl, byte [0x5b18bb]
test cl, cl
je 0x4a0204
lea eax, [esp + 0x30]
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x6c], 0x40
mov dword [esp + 0x74], 0
test eax, eax
je 0x4a0164
mov dword [esp + 0x74], eax
jmp 0x4a01cc
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
push 4
mov dword [esp + 0x134], eax
lea eax, [esp + 0x60]
push eax
push 0x9999200b
lea eax, [esp + 0x130]
mov dword [esp + 0x138], 0x4cc3b0
push eax
push 0
push 0x4cc2c0
push 0
push dword [0x5b1f3c]
mov dword [esp + 0x154], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
call dword [sym.imp.ntdll.dll_NtTestAlert]
push 0
push 0
lea eax, [esp + 0x70]
push 0x10
push eax
lea eax, [esp + 0x170]
push 0x99992193
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jns 0x4a0439
mov cl, byte [0x5b18bb]
mov eax, dword [esp + 0x178]
mov dword [esp + 0x28], 0
lea esi, [eax + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
test cl, cl
je 0x4a02f1
mov dword [esp + 0x80], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x800
mov dword [esp + 0x84], 0
test eax, eax
je 0x4a0270
push 0
push 0
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
push 0x10
push eax
lea eax, [esp + 0x178]
jmp 0x4a0421
push 0
push 0
lea eax, [esp + 0x8c]
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 4
mov dword [esp + 0x148], eax
lea eax, [esp + 0x48]
push eax
push 0x9999200b
lea eax, [esp + 0x144]
mov dword [esp + 0x14c], 0x4cc3b0
push eax
push 0
push 0x4cc2c0
push 0
push dword [0x5b1f3c]
mov dword [esp + 0x168], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
call dword [sym.imp.ntdll.dll_NtTestAlert]
push 0
push 0
lea eax, [esp + 0x80]
push 0x10
push eax
lea eax, [esp + 0x178]
jmp 0x4a0421
push eax
lea eax, [esp + 0xf4]
mov dword [esp + 0xf4], 0x18
push eax
push 0x800
push esi
mov dword [esp + 0x104], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
cmp eax, 0xc0000022
jne 0x4a0439
cmp byte [0x5b18bb], 0
lea ebx, [ebx]
je 0x4a0439
lea eax, [esp + 0x28]
mov dword [esp + 0x88], esi
mov dword [esp + 0x90], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x8c], 0x800
mov dword [esp + 0x94], 0
test eax, eax
je 0x4a03a2
mov dword ds:[esp + 0x94], eax
jmp 0x4a040c
push 0
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 4
mov dword [esp + 0x15c], eax
lea eax, [esp + 0x20]
push eax
push 0x9999200b
lea eax, [esp + 0x158]
mov dword [esp + 0x160], 0x4cc3b0
push eax
push 0
push 0x4cc2c0
push 0
push dword [0x5b1f3c]
mov dword [esp + 0x17c], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
call dword [sym.imp.ntdll.dll_NtTestAlert]
push 0
push 0
lea eax, [esp + 0x90]
push 0x10
push eax
lea eax, [esp + 0x180]
push 0x99992193
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x60], 0
je 0x4a0482
mov eax, dword ds:[esp + 0x178]
lea ecx, [esp + 0x218]
push 0
push 0x10
push ecx
push 0x17
push dword [eax + 0x70]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov edx, dword [esp + 0x178]
test eax, eax
js 0x4a04cc
mov esi, dword ds:[esp + 0x218]
mov eax, dword [esp + 0x21c]
jmp 0x4a04a2
mov edx, dword [esp + 0x178]
movsx eax, byte [0x5b1da8]
mov ecx, dword [edx]
cmp ecx, eax
jae 0x4a04cc
mov eax, dword [0x5b1cfc]
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, esi
mov dword [esp + 0x18], eax
sub ecx, dword [edx + 0x48]
sbb eax, dword [edx + 0x4c]
mov dword [edx + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x54], eax
mov eax, dword [esp + 0x178]
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], ecx
mov edx, dword [esp + 0x178]
mov ecx, dword [edx + 0x10]
sub ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x14]
sbb eax, dword [edx + 0x24]
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], eax
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov edx, dword [esp + 0x178]
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x30]
mov eax, dword [edx + 0x1c]
sbb eax, dword [edx + 0x34]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], ecx
mov ecx, dword [esp + 0x178]
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x4a054d
push 0
push 4
lea ecx, [esp + 0x188]
push ecx
push 9
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x180]
test eax, eax
jne 0x4a0562
mov eax, dword [ebx - 8]
mov dword [esp + 0x180], eax
cdq
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x4a05aa
push 0
push 0x1c
lea eax, [esp + 0x244]
push eax
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x4a05a3
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x254]
mov dword [ecx + 0x6c], eax
jmp 0x4a05b1
mov eax, dword [esp + 0x178]
mov dword [eax + 0x6c], 0x7fffffff
mov eax, dword [edi + 0x88]
or eax, dword [edi + 0x8c]
je 0x4a05e6
mov eax, dword [esp + 0x178]
mov ecx, edi
push dword [eax + 0x7c]
lea edx, [eax + 0x88]
push dword [eax + 0x78]
call fcn.0049f4c0
mov ecx, dword [esp + 0x178]
mov dword [ecx + 0x80], eax
mov esi, dword [esp + 0x178]
cmp dword [esi + 0x80], 0
jne 0x4a06db
mov dword [esi + 0x88], 2
mov esi, dword [0x5b1d70]
test byte [esi], 1
je 0x4a0648
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test eax, eax
je 0x4a062a
lock dec dword [esi + 0x18]
add eax, 8
mov byte [eax + 2], 2
jmp 0x4a065f
mov eax, dword [esi + 0x20]
add eax, 8
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
add eax, 8
mov byte [eax + 2], 2
jmp 0x4a065f
push 0x42
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [eax + 2], 0
lock inc dword [esi + 4]
mov dword [eax + 4], 1
xor edx, edx
movzx ecx, byte [esi + 2]
mov word [eax], cx
lea ecx, [eax + 8]
mov dword [ecx], 0x30
lea eax, [ecx + 8]
mov dword [ecx + 4], eax
mov word [eax + 0x30], dx
mov eax, dword [esp + 0x178]
push 0x10
mov dword [eax + 0x80], ecx
mov eax, dword [esp + 0x17c]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
mov dword [eax], 0x780030
add eax, 4
push eax
push ecx
call fcn.00522341
mov eax, dword [esp + 0x184]
add esp, 0xc
mov esi, dword [eax + 0x80]
push dword [esi + 4]
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esi], eax
mov esi, dword [esp + 0x178]
push 0x2c
lea eax, [esp + 0x290]
mov dword [esp + 0x28c], 0x30
push 0
push eax
call fcn.0051fd40
add esp, 0xc
lea eax, [esp + 0x288]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
mov eax, dword [esp + 0x178]
setne cl
mov byte [eax + 0x8c], cl
mov ecx, edi
mov edx, dword [esp + 0x178]
call fcn.0049f3c0
lea esi, [edi + 4]
mov ecx, esi
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
lea eax, ds:[esp + 0x178]
push eax
push dword [edi]
call sym.ProcessHacker.exe_PhAddEntryHashtable
mov ecx, esi
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
push dword [esp + 0x178]
lea eax, [edi + 0x10]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
lea esp, [esp]
jmp 0x49fea6