Function at 0x4ce380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6336ac], 0
push ebx
push esi
push edi
mov dword [ebp - 8], 0
je 0x4ce468
mov eax, dword [0x634f1c]
push 0
lea eax, [eax + eax*2]
shl eax, 3
push eax
push dword [0x634f9c]
push 0x17
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, dword [0x634f1c]
test eax, eax
jns 0x4ce3e8
lea eax, ds:[esi + esi*2]
shl eax, 3
push eax
push 0
push dword [0x634f9c]
call fcn.00581cf0
add esp, 0xc
xor ecx, ecx
xor edx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
xor ebx, ebx
xor eax, eax
cmp esi, 2
jb 0x4ce42f
mov eax, dword [0x634f9c]
lea ecx, [esi - 2]
shr ecx, 1
add eax, 0x1c
inc ecx
lea esi, [ecx + ecx]
mov dword [ebp - 0x10], esi
mov esi, dword [0x634f1c]
add edx, dword [eax - 0x18]
lea eax, [eax + 0x30]
adc edi, 0
add ebx, dword [eax - 0x30]
adc dword [ebp - 0xc], 0
sub ecx, 1
jne 0x4ce414
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jae 0x4ce44f
mov esi, dword [0x634f9c]
lea eax, [eax + eax*2]
mov dword [ebp - 8], 0
mov eax, dword [esi + eax*8 + 4]
mov esi, dword [0x634f1c]
jmp 0x4ce451
xor eax, eax
add edx, ebx
mov ebx, dword [ebp - 8]
adc edi, ecx
add eax, edx
mov dx, word [0x6336b0]
adc ebx, edi
jmp 0x4ce569
mov dx, word [0x6336b0]
xor eax, eax
xor esi, esi
mov word [ebp - 0xc], ax
cmp ax, dx
jae 0x4ce4e9
lea esp, [esp]
push dword [ebp - 0xc]
call sym.SystemInformer.exe_PhGetActiveProcessorCount
movzx eax, ax
mov dword [ebp - 0x10], eax
movzx eax, ax
push 0
lea edi, [eax + eax*2]
movzx eax, si
shl edi, 3
push edi
lea ebx, [eax + eax*2]
mov eax, dword [0x634f9c]
shl ebx, 3
add eax, ebx
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push 0x17
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
jns 0x4ce4d0
mov eax, dword [0x634f9c]
push edi
add eax, ebx
push 0
push eax
call fcn.00581cf0
add esp, 0xc
mov ax, word [ebp - 0xc]
mov dx, word [0x6336b0]
inc ax
add esi, dword [ebp - 0x10]
mov word [ebp - 0xc], ax
cmp ax, dx
jb 0x4ce480
mov esi, dword [0x634f1c]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x14], 0
cmp esi, 2
jb 0x4ce541
mov eax, dword [0x634f9c]
lea ecx, [esi - 2]
shr ecx, 1
add eax, 0x1c
inc ecx
lea esi, [ecx + ecx]
mov dword [ebp - 0x18], esi
xor esi, esi
mov edi, edi
add esi, dword [eax - 0x18]
lea eax, [eax + 0x30]
adc dword [ebp - 0x14], 0
add edi, dword [eax - 0x30]
adc ebx, 0
sub ecx, 1
jne 0x4ce520
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [0x634f1c]
cmp eax, esi
jae 0x4ce556
mov ecx, dword [0x634f9c]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 + 4]
xor ecx, ecx
jmp 0x4ce55a
xor eax, eax
mov ecx, eax
add edi, dword [ebp - 0x10]
adc ebx, dword [ebp - 0x14]
add eax, edi
adc ecx, ebx
mov dword [ebp - 8], ecx
mov ebx, ecx
mov ecx, dword [0x636408]
mov dword [ebp - 0x10], eax
mov eax, ecx
sub eax, dword [0x634f88]
mov edi, dword [ebp - 0x10]
mov dword [0x634f8c], eax
mov dword [0x634f88], ecx
mov ecx, dword [0x636488]
mov eax, ecx
sub eax, dword [0x634ee4]
mov dword [0x634ee4], ecx
mov ecx, edi
sub ecx, dword [0x634fc0]
mov dword [0x634ee8], eax
mov eax, ebx
sbb eax, dword [0x634fc4]
mov dword [0x634fc8], ecx
mov ecx, dword [0x636414]
mov dword [0x634fcc], eax
mov eax, ecx
sub eax, dword [0x634fac]
cmp byte [0x6336ac], 0
mov dword [0x634fc0], edi
mov dword [0x634fc4], ebx
mov dword [0x634fb0], eax
mov dword [0x634fac], ecx
je 0x4ce62c
lea eax, ds:[esi + esi*2]
shl eax, 3
push eax
push dword [0x634f94]
push 0
push 0
push 0xb
call dword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x4ce6a9
mov eax, dword [0x634f1c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push dword [0x634f94]
call fcn.00581cf0
add esp, 0xc
jmp 0x4ce6a9
xor eax, eax
xor esi, esi
mov word [ebp - 8], ax
cmp ax, dx
jae 0x4ce6a9
lea esp, [esp]
push dword [ebp - 8]
call sym.SystemInformer.exe_PhGetActiveProcessorCount
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, ax
lea edi, [eax + eax*2]
movzx eax, si
shl edi, 3
push edi
lea ebx, [eax + eax*2]
mov eax, dword [0x634f94]
shl ebx, 3
add eax, ebx
push eax
push 2
lea eax, [ebp - 8]
push eax
push 0x2e
call dword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x4ce68e
mov eax, dword [0x634f94]
push edi
add eax, ebx
push 0
push eax
call fcn.00581cf0
add esp, 0xc
mov ax, word ds:[ebp - 8]
add esi, dword [ebp - 0x18]
inc ax
mov word [ebp - 8], ax
cmp ax, word [0x6336b0]
jb 0x4ce640
mov eax, dword [0x634ef0]
test eax, eax
je 0x4ce6c6
push eax
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [0x634fb4]
mov dword [0x634ef0], eax
mov dword [0x634fb4], 0
call fcn.004d10c0
mov eax, dword [0x634f80]
cmp eax, 2
jae 0x4ce6ef
inc eax
mov dword [0x634f80], eax
call fcn.004cffc0
call fcn.004d00c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret