Function at 0x429d70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0x39
lea eax, [ebp - 0x18]
mov esi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], ebx
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
js 0x42a1a9
mov edx, dword [ebp - 0x18]
mov edi, edx
mov ecx, dword [ebx]
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x44], ecx
je 0x429dcd
mov eax, dword [edi]
test eax, eax
je 0x429db2
add edi, eax
mov dword [ebp - 0x14], edi
jne 0x429da0
push edx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7ffe0000
push ebx
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
test eax, eax
je 0x429df1
mov ecx, dword [eax + 0x34]
test ecx, ecx
cmovne eax, ecx
cmp dword [eax + 0x54], 0
jne 0x429df1
mov dword [eax + 0x54], 4
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jb 0x429ece
test byte [0x5463f4], 1
jne 0x429ea5
mov eax, 0x5463f4
lock bts dword [eax], 0x1f
jae 0x429e2f
test byte [0x5463f4], 1
jne 0x429ea5
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x429ea5
push 0
push 4
lea eax, [ebp - 0x10]
push eax
push 0xc5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, dword [0x549990]
test eax, eax
mov eax, 0x5463f4
cmovns ecx, dword [ebp - 0x10]
mov dword [0x549990], ecx
lock bts dword [eax], 0
jb 0x429ea5
mov esi, dword [0x5463f8]
test esi, esi
je 0x429e73
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5463f4
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x429ea2
test esi, esi
je 0x429ea2
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5463f8], 0
mov esi, dword [ebp - 8]
mov eax, dword [0x549990]
test eax, eax
je 0x429ece
push eax
push ebx
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
test eax, eax
je 0x429ece
mov ecx, dword [eax + 0x34]
test ecx, ecx
cmovne eax, ecx
cmp dword [eax + 0x54], 0
jne 0x429ece
mov dword [eax + 0x54], 0x12
push 0
push 0x18
lea eax, [ebp - 0x3c]
push eax
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x42a00f
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x42a00f
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov ecx, ebx
push 5
setb al
movzx eax, al
push eax
call fcn.00429d30
push 0
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x38]
add eax, 0x88
push eax
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x429fd3
mov eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jae 0x429fd3
shl eax, 2
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 0x38]
mov ebx, eax
push 0
push 4
lea eax, [ebp - 0x1c]
add ecx, 0x90
push eax
push ecx
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x429fc1
mov eax, dword [ebp - 0x10]
push 0
shl eax, 2
push eax
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x429fc1
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x429fbe
mov edi, dword [ebp - 0xc]
lea ebx, [ebx]
push dword [ebx + esi*4]
push edi
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
test eax, eax
je 0x429fb5
mov ecx, dword [eax + 0x34]
test ecx, ecx
cmovne eax, ecx
cmp dword [eax + 0x54], 0
jne 0x429fb5
mov dword [eax + 0x54], 0xb
mov dword [eax + 0x58], esi
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x429f90
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0xc]
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x38]
add eax, 0x38
push eax
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x42a00f
push dword [ebp - 0x20]
push ebx
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
test eax, eax
je 0x42a00f
mov ecx, dword [eax + 0x34]
test ecx, ecx
cmovne eax, ecx
cmp dword [eax + 0x54], 0
jne 0x42a00f
mov dword [eax + 0x54], 0x11
xor ebx, ebx
cmp dword [edi + 4], ebx
jbe 0x42a0c3
lea esi, [edi + 0x104]
mov eax, dword [esi]
test eax, eax
je 0x42a0b6
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
push eax
push dword [ebp - 0xc]
setb byte [ebp - 1]
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
mov edx, eax
test edx, edx
je 0x42a065
cmp byte [ebp - 1], 0
je 0x42a052
mov ecx, dword [edx + 0x34]
test ecx, ecx
cmovne edx, ecx
cmp dword [edx + 0x54], 0
jne 0x42a065
mov dword [edx + 0x54], 7
mov eax, dword [esi - 0x28]
mov dword [edx + 0x58], eax
lea eax, [ebp - 0x24]
push eax
push 0x1c
lea eax, [ebp - 0x58]
push eax
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x42a0b6
cmp dword [ebp - 0x24], 0x1c
jne 0x42a0b6
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jae 0x42a0b6
push eax
push dword [ebp - 0xc]
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
mov edx, eax
test edx, edx
je 0x42a0b6
mov ecx, dword [edx + 0x34]
test ecx, ecx
cmovne edx, ecx
cmp dword [edx + 0x54], 0
jne 0x42a0b6
mov dword [edx + 0x54], 9
mov eax, dword [esi - 0x28]
mov dword [edx + 0x58], eax
inc ebx
add esi, 0x60
cmp ebx, dword [edi + 4]
jb 0x42a020
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
cmp esi, eax
je 0x42a196
cmp dword [esi + 0x54], 0
jne 0x42a18c
test dword [esi + 0x30], 0x1040000
mov edi, dword [ebp - 8]
je 0x42a13a
cmp dword [esi + 0x34], esi
jne 0x42a13a
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x18]
push edi
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x42a137
mov edi, dword [ebp - 0x14]
push edi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test eax, eax
je 0x42a12b
mov ecx, edi
mov edi, eax
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x42a12b
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x42a12b
call fcn.004a2a20
mov dword [esi + 0x54], 3
mov dword [esi + 0x58], edi
jmp 0x42a189
lea eax, [ebx + 0x1c]
test dword [esi + 0x28], 0x1000
je 0x42a18c
push 0
push 0x1c
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x18]
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x42a189
cmp dword [ebp - 0x6c], 0xffeeffee
jne 0x42a189
mov edi, dword [ebp - 0x5c]
test edi, edi
je 0x42a189
push edi
push ebx
call sym.ProcessHacker.exe__PhLookupMemoryItemList_8
test eax, eax
je 0x42a189
cmp dword [eax + 0x18], edi
jne 0x42a189
cmp dword [eax + 0x54], 0xb
jne 0x42a189
mov dword [esi + 0x54], 0xd
mov dword [esi + 0x58], eax
lea eax, [ebx + 0x1c]
mov esi, dword [esi]
cmp esi, eax
jne 0x42a0d4
push dword [ebp - 0x18]
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret