Function at 0x4924e9
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f53a6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
mov edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
cmp eax, ebx
jne 0x4925ac
push 9
pop ecx
push 0x51b55c
xor eax, eax
lea edi, [esp + 0x34]
push 0x51b570
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49256f
lea ecx, [esp + 0x30]
push ecx
call eax
jmp 0x49257a
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x54], ecx
and dword [esp + 0x170], 0
test ecx, ecx
je 0x492840
mov eax, dword [esp + 0x44]
call fcn.0041a730
jmp 0x492842
cmp eax, 2
jne 0x4925e7
push edi
call fcn.00492883
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x170], ebx
test eax, eax
je 0x492840
push 0
push dword [edi + 8]
call fcn.00431050
jmp 0x492842
cmp eax, 3
jne 0x4926a5
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x14]
mov dword [esp + 0x58], eax
call fcn.00404790
mov dword [esp + 0x170], 2
xor esi, esi
movzx eax, byte [esp + esi + 0x54]
push eax
push str._.2x
lea edi, [esp + 0x1c]
call fcn.00446c40
inc esi
cmp esi, 8
pop ecx
pop ecx
jl 0x492639
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x54], esi
mov byte [esp + 0x170], 3
test esi, esi
je 0x492683
mov ebx, dword [esp + 0x14]
and dword [esi], 0
call fcn.0040c040
jmp 0x492685
xor esi, esi
mov byte [esp + 0x170], 2
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0040ed50
lea eax, [esp + 0x14]
call fcn.0042afc0
jmp 0x492859
push 4
pop edi
cmp eax, edi
jne 0x49274d
lea eax, [esp + 0x14]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x492859
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.MHz
push dword [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x492744
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x170], edi
cmp ecx, ebx
je 0x492732
mov eax, dword [esp + 0x1c]
call fcn.0041a730
jmp 0x492734
xor eax, eax
or dword [esp + 0x170], 0xffffffff
push eax
mov ecx, esi
call fcn.0040ed50
push dword [esp + 0x14]
jmp 0x492804
cmp eax, 5
jne 0x49280c
lea eax, [esp + 0x18]
push eax
push 0x20019
xor esi, esi
push esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x492859
mov edi, 0x100
push edi
lea eax, [esp + 0x60]
push esi
push eax
mov dword [esp + 0x60], ebx
call fcn.004d7710
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
push esi
push str.ProcessorNameString
push dword [esp + 0x2c]
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x492800
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x170], 5
cmp edi, esi
je 0x4927ee
lea ebx, [esp + 0x5c]
mov dword [edi], esi
call fcn.0040c040
mov esi, edi
or dword [esp + 0x170], 0xffffffff
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0040ed50
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x492859
push 6
pop edi
cmp eax, edi
jne 0x492854
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x170], edi
test eax, eax
je 0x492840
call fcn.00492351
mov ecx, dword [esp + 0x54]
call fcn.0040c000
jmp 0x492842
xor eax, eax
or dword [esp + 0x170], 0xffffffff
push eax
mov ecx, esi
call fcn.0040ed50
jmp 0x492859
and dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 8