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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0x60]
mov dword [esp + 0x2c], ebx
mov edi, edi
cmp dword [eax + 0x44], esi
je 0x493f89
mov ecx, dword [eax]
test ecx, ecx
je 0x493f73
add eax, ecx
mov dword [esp + 0xc], eax
jne 0x493f60
lea eax, [esp + 0x208]
mov dword [esp + 0x20c], 0
mov dword [esp + 0xc], eax
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
test esi, esi
jne 0x493faa
xor ecx, ecx
test edx, edx
je 0x493faa
add eax, 0xdc
nop
mov dword [eax], ecx
lea eax, [eax + 0x40]
inc ecx
cmp ecx, edx
jb 0x493fa0
xor esi, esi
xor edi, edi
mov edi, edi
mov edx, dword [ebx]
mov ecx, dword [edx + 0x24]
cmp edi, ecx
jae 0x493fe0
mov eax, dword [edx]
add eax, 8
mov dword [esp + 0x1c], eax
imul eax, edi
add eax, dword [edx + 0x18]
mov edx, eax
inc edi
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
cmp dword [edx], 0xffffffff
jne 0x494188
cmp edi, ecx
jb 0x493fc8
test esi, esi
je 0x49403f
lea ecx, [ebx + 4]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor edi, edi
cmp dword [esi], edi
jbe 0x494024
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call sym.ProcessHacker.exe_PhRemoveEntryHashtable
mov ecx, dword [esp + 0x1c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49401f
call fcn.004a2a20
inc edi
cmp edi, dword [esi]
jb 0x493ff2
lea ecx, [ebx + 4]
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49403f
call fcn.004a2a20
lea eax, [ebx + 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlInterlockedFlushSList]
mov edi, eax
test edi, edi
je 0x494134
mov esi, edi
mov edi, dword [edi]
cmp dword [esi + 0x1c], 0
jne 0x494091
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x494091
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x70]
mov dword [eax + 0x70], ecx
lock inc dword [ecx - 4]
test edx, edx
je 0x494088
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x494088
call fcn.004a2a20
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x78], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x20]
mov edx, dword [eax + 0x88]
mov dword [eax + 0x88], ecx
test edx, edx
je 0x4940ba
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4940ba
call fcn.004a2a20
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
mov edx, dword [eax + 0xac]
mov dword [eax + 0xac], ecx
test edx, edx
je 0x4940e3
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4940e3
call fcn.004a2a20
mov eax, dword [esi + 8]
mov byte [eax + 0x91], 1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x494107
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x494107
call fcn.004a2a20
mov ecx, dword [esi + 8]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x49411d
call fcn.004a2a20
push esi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
jne 0x494053
cmp dword [esp + 0x20], 0
jbe 0x494bf7
mov esi, dword [esp + 0xc]
lea ecx, [ebx + 4]
add esi, 0xdc
mov dword [esp + 0x24], esi
mov eax, dword [esi]
lea edx, [esp + 0x158]
mov dword [esp + 0x30], edx
mov dword [esp + 0x158], eax
call sym.ProcessHacker.exe_PhfAcquireFastLockShared
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call sym.ProcessHacker.exe_PhFindEntryHashtable
test eax, eax
je 0x49423f
mov edi, dword [eax]
lock inc dword [edi - 4]
jmp 0x494241
xor ecx, ecx
cmp dword [esp + 0x20], ecx
jbe 0x4941bc
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
add eax, 0xdc
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [eax]
mov ebx, dword [esp + 0x2c]
je 0x493fb0
inc ecx
add eax, 0x40
cmp ecx, dword [esp + 0x20]
jb 0x4941a2
push dword [edx + 8]
lea eax, [ebx + 0x30]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
test esi, esi
jne 0x4941fb
push dword [0x54b7b0]
push 0xc
call sym.ProcessHacker.exe_PhCreateObject
push 8
mov esi, eax
push 4
push dword [0x54b674]
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 + 0x24]
mov ecx, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x49422e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
inc dword [esi]
jmp 0x493fb0
xor edi, edi
lea ecx, [ebx + 4]
call sym.ProcessHacker.exe_PhfReleaseFastLockShared
mov dword [esp + 0xc], edi
test edi, edi
jne 0x4947ac
mov eax, dword [0x5490f4]
push dword [0x54bc38]
mov esi, dword [esi]
add eax, 0xb0
push eax
mov dword [esp + 0x30], edi
mov dword [0x5490f0], 0xb0
call sym.ProcessHacker.exe_PhCreateObject
push 0xb0
mov edi, eax
push 0
push edi
call fcn.004dce30
add esp, 0xc
mov dword [edi], esi
cmp dword [0x54bcf0], 0
lea edx, [edi + 0x92]
mov eax, 0x10
mov ecx, 0xa
cmovne ecx, eax
push ecx
push edx
push esi
call fcn.004dec37
add esp, 0xc
mov edx, edi
mov ecx, 6
push 0
call fcn.00410510
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 0x34], 0
mov eax, dword [esi - 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x10]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esi - 0x24]
mov dword [ecx + 0x10], eax
mov eax, dword [esi - 0x20]
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esi - 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [esi - 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
sub ecx, dword [eax + 0x48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
mov dword [eax + 0x60], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov dword [eax + 0x64], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x7c], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x80], ecx
cmp byte [0x5496b4], 0
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
jne 0x4943c7
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], 0x18
push eax
push 0x40
push edi
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
cmp eax, 0xc0000022
jne 0x4943d3
mov cl, byte [0x5496b4]
test cl, cl
je 0x4943e1
lea eax, [esp + 0x34]
push eax
mov edx, 0x40
mov ecx, edi
call fcn.004b3f00
test eax, eax
jns 0x494489
mov cl, byte [0x5496b4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.ProcessHacker.exe_ThreadQueryAccess]
mov dword [esp + 0x3c], 0
lea edx, [eax + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], eax
test cl, cl
je 0x494412
mov eax, edi
and eax, 0x120848
cmp eax, edi
je 0x494479
lea eax, [esp + 0x3c]
mov dword [esp + 0xa0], 0x18
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xa8], 0
push eax
push edi
push edx
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
cmp eax, 0xc0000022
jne 0x494489
cmp byte [0x5496b4], 0
je 0x494489
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
mov edx, edi
call fcn.004b3f00
cmp dword [ebx + 0x60], 0
je 0x4944c5
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xb8]
push 0
push 0x10
push ecx
push 0x17
push dword [eax + 0x8c]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov edx, dword [esp + 0xc]
test eax, eax
js 0x494506
mov edi, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
jmp 0x4944e2
mov edx, dword [esp + 0xc]
movsx eax, byte [0x54b668]
mov ecx, dword [edx]
cmp ecx, eax
jae 0x494506
mov eax, dword [0x54bf84]
mov edi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, edi
mov dword [esp + 0x18], eax
sub ecx, dword [edx + 0x50]
sbb eax, dword [edx + 0x54]
mov dword [edx + 0x58], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x5c], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 0x50], edi
mov dword [eax + 0x54], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x14]
sbb eax, dword [edx + 0x2c]
mov dword [edx + 0x30], ecx
mov dword [edx + 0x34], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x2c], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x1c]
sbb eax, dword [edx + 0x3c]
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x18]
mov dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x3c], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x8c]
test eax, eax
je 0x494572
push 0
push 4
lea ecx, [esp + 0x30]
push ecx
push 9
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x494581
mov eax, dword [esi - 8]
mov dword [esp + 0x28], eax
cdq
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x4945c6
push 0
push 0x1c
lea eax, [esp + 0xe4]
push eax
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x4945c2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xf4]
mov dword [ecx + 0x84], eax
jmp 0x4945d0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x84], SysStringLen
mov eax, dword [ebx + 0x88]
or eax, dword [ebx + 0x8c]
je 0x4945f9
mov eax, dword [esp + 0xc]
mov ecx, ebx
push dword [eax + 0x6c]
lea edx, [eax + 0x78]
push dword [eax + 0x68]
call fcn.00493ba0
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x70], eax
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x70], 0
jne 0x494669
mov dword [edx + 0x78], 2
push dword [0x54b7b4]
push 0x3a
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
push 0x10
mov dword [eax], 0x30
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov word [ecx + 0x30], dx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov dword [eax], 0x780030
add eax, 4
push eax
push ecx
call fcn.004dec37
mov eax, dword [esp + 0x18]
add esp, 0xc
mov esi, dword [eax + 0x70]
push dword [esi + 4]
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esi], eax
mov edx, dword [esp + 0xc]
mov ecx, ebx
call fcn.00493aa0
push 0x2c
lea eax, [esp + 0x100]
mov dword [esp + 0xfc], 0x30
push 0
push eax
call fcn.004dce30
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
mov eax, dword [esp + 0xc]
setne cl
mov byte [eax + 0x90], cl
lea ecx, [ebx + 4]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
mov edi, dword [ebx]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 8]
call eax
mov esi, dword [edi + 0xc]
mov edx, eax
mov ecx, dword [edi + 0x10]
and edx, 0x7fffffff
dec esi
mov dword [esp + 0x18], edx
and esi, edx
mov dword [esp + 0x30], esi
mov eax, dword [ecx + esi*4]
cmp eax, 0xffffffff
je 0x49471c
mov esi, dword [edi]
add esi, 8
imul esi, eax
add esi, dword [edi + 0x18]
cmp dword [esi], edx
jne 0x494710
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [edi + 4]
call eax
test al, al
jne 0x494792
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4946e7
mov esi, dword [esp + 0x30]
mov edx, dword [edi + 0x20]
cmp edx, 0xffffffff
je 0x494737
mov ecx, dword [edi]
add ecx, 8
imul ecx, edx
add ecx, dword [edi + 0x18]
mov eax, dword [ecx + 4]
mov dword [edi + 0x20], eax
jmp 0x494767
mov edx, dword [edi + 0x24]
cmp edx, dword [edi + 0x14]
jne 0x494756
mov edx, dword [edi + 0xc]
mov ecx, edi
add edx, edx
call fcn.004a8e10
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 0x24]
dec esi
and esi, dword [esp + 0x18]
mov ecx, dword [edi]
lea eax, [edx + 1]
add ecx, 8
mov dword [edi + 0x24], eax
imul ecx, edx
add ecx, dword [edi + 0x18]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi*4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x10]
mov dword [eax + esi*4], edx
lea eax, [esp + 0xc]
push dword [edi]
push eax
lea eax, [ecx + 8]
push eax
call fcn.004dd620
add esp, 0xc
inc dword [edi + 0x1c]
lea ecx, [ebx + 4]
call sym.ProcessHacker.exe_PhfReleaseFastLockExclusive
push dword [esp + 0xc]
lea eax, [ebx + 0x10]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
jmp 0x494bde
mov dl, byte [edi + 0x91]
mov eax, dword [esi - 0x24]
test dl, dl
mov dword [edi + 0x10], eax
mov eax, dword [esi - 0x20]
setne byte [esp + 0x17]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esi - 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [esi - 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
mov dword [eax + 0x60], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov dword [eax + 0x64], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x7c], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
cmp dword [ecx + 0x80], eax
je 0x494811
mov dword [ecx + 0x80], eax
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x17], 1
cmp dword [ecx + 0x78], 2
lea edx, [ecx + 0x78]
jne 0x49485f
mov eax, dword [ebx + 0x88]
or eax, dword [ebx + 0x8c]
je 0x49485f
push dword [ecx + 0x6c]
push dword [ecx + 0x68]
mov ecx, ebx
call fcn.00493ba0
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x70]
mov dword [ecx + 0x70], eax
test edx, edx
je 0x494856
lea ecx, [edx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x494856
call fcn.004a2a20
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x17], 1
cmp byte [ecx + 0x91], 0
je 0x494891
cmp dword [ecx + 0x78], 2
jne 0x494891
mov eax, dword [esi - 8]
cdq
cmp dword [ecx + 0x68], eax
jne 0x49487c
cmp dword [ecx + 0x6c], edx
je 0x494891
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov ecx, ebx
mov edx, dword [esp + 0xc]
call fcn.00493aa0
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
sub eax, dword [ecx + 0x48]
mov edx, dword [ecx + 0x4c]
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x48], ecx
mov ecx, 1
mov esi, dword [esp + 0xc]
movzx eax, byte [esp + 0x17]
cmp dword [esi + 0x4c], edx
cmovne eax, ecx
cmp dword [ebx + 0x60], 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x10], eax
je 0x494905
push 0
push 0x10
lea eax, [esp + 0xd0]
push eax
push 0x17
push dword [esi + 0x8c]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, dword [esp + 0xc]
test eax, eax
js 0x494953
mov edx, dword [esp + 0xc8]
mov edi, dword [esp + 0xcc]
jmp 0x49491e
movsx eax, byte [0x54b668]
mov ecx, dword [esi]
cmp ecx, eax
jae 0x494953
mov eax, dword [0x54bf84]
mov edx, dword [eax + ecx*8]
mov edi, dword [eax + ecx*8 + 4]
mov ecx, edx
mov eax, edi
sub ecx, dword [esi + 0x50]
sbb eax, dword [esi + 0x54]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edi
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
cmp dword [esi + 0x58], eax
jne 0x49494e
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x5c], eax
je 0x494953
mov byte [esp + 0x18], 1
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x14]
sbb eax, dword [esi + 0x2c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x2c], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x1c]
sbb eax, dword [edx + 0x3c]
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x18]
mov dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x3c], eax
cmp byte [0x54494b], 0
mov edx, dword [esp + 0xc]
je 0x494a3f
cmp dword [ebx + 0x60], 0
je 0x4949bf
cmp dword [edx + 0x8c], 0
je 0x494a3f
mov eax, dword [edx + 0x58]
mov ecx, dword [edx + 0x5c]
mov dword [esp + 0x48], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x50], 0
and eax, 0x80000000
mov dword [esp + 0x4c], ecx
fild qword [esp + 0x48]
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 0
fild qword [esp + 0x50]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov eax, dword [0x54bf50]
mov ecx, dword [0x54bf54]
mov dword [esp + 0x58], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [esp + 0x5c], ecx
fild qword [esp + 0x58]
mov dword [esp + 0x64], eax
fild qword [esp + 0x60]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
jmp 0x494ae1
mov eax, dword [edx + 0x40]
add eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x44]
adc ecx, dword [edx + 0x34]
mov dword [esp + 0x68], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x70], 0
and eax, 0x80000000
mov dword [esp + 0x6c], ecx
fild qword [esp + 0x68]
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], 0
fild qword [esp + 0x70]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov eax, dword [0x54bee8]
add eax, dword [0x54bf68]
mov ecx, dword [0x54beec]
adc ecx, dword [0x54bf6c]
add eax, dword [0x54bf78]
mov dword [esp + 0x78], eax
adc ecx, dword [0x54bf7c]
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x7c], ecx
and eax, 0x80000000
fild qword [esp + 0x78]
mov dword [esp + 0x84], eax
fild qword [esp + 0x80]
fchs
faddp st(1)
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
mov eax, dword [esp + 0xc]
fstp dword [eax + 0x20]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x8c]
mov edi, dword [eax + 0x84]
test ecx, ecx
je 0x494b2c
push 0
push 0x1c
lea eax, [esp + 0xe4]
push eax
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x494b28
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xf4]
mov dword [ecx + 0x84], eax
jmp 0x494b36
mov eax, dword [esp + 0xc]
mov dword [eax + 0x84], SysStringLen
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
movzx eax, al
push 0x2c
cmp dword [esi + 0x84], edi
mov edi, 1
push 0
cmovne eax, edi
mov dword [esp + 0x130], 0x30
mov dword [esp + 0x18], eax
lea eax, [esp + 0x134]
push eax
call fcn.004dce30
mov bl, byte [esi + 0x90]
lea eax, [esp + 0x134]
add esp, 0xc
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
mov eax, dword [esp + 0xc]
setne cl
mov byte [eax + 0x90], cl
mov eax, dword [esp + 0x10]
movzx ecx, al
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x90], bl
mov ebx, dword [esp + 0x2c]
cmovne ecx, edi
mov byte [eax + 0x91], 0
test cl, cl
je 0x494bc7
push dword [esp + 0xc]
lea eax, [ebx + 0x20]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x494bde
call fcn.004a2a20
mov esi, dword [esp + 0x24]
lea ecx, [ebx + 4]
add esi, 0x40
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
jne 0x494150
push 0
lea eax, [ebx + 0x40]
push eax
call sym.ProcessHacker.exe_PhInvokeCallback
add dword [ebx + 0x80], 1
pop edi
adc dword [ebx + 0x84], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret