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

Disassembly:
push 0xffffffffffffffff
push 0x45ddf3
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e074]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0x60]
push ecx
mov edi, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
call fcn.00409f90
xor ebx, ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jae 0x403014
lea eax, [esp + 0x68]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403155
mov ebp, dword [esp + 0x18]
push 0x31
lea ecx, [esp + 0x85]
push ebx
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x8c], bl
call fcn.004481d0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x84]
mov dword [esp + 0x1c], 0x32
call fcn.00402460
test eax, eax
jne 0x4030a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403083
mov ecx, dword [esp + 0x34]
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
add ecx, 4
call fcn.004017b0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push str.MHz
mov esi, 4
push ebp
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4030da
cmp dword [esp + 0x2c], esi
jne 0x4030da
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x4030ed
push ebp
call edi
xor ebp, ebp
mov dword [esp + 0x20], ebp
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov dword [edx], ecx
cmp eax, 0x24a
ja 0x403174
je 0x40316b
sub eax, 0x182
je 0x40315b
sub eax, 0x64
jne 0x403182
mov esi, dword [esp + 0x1c]
mov edx, str.Intel_486_Processor
call fcn.0040a1a0
jmp 0x4031ac
cmp dword [esp + 0x7c], esi
jmp 0x4031b8
mov esi, dword [esp + 0x1c]
mov edx, str.Intel_386_processor
call fcn.0040a1a0
jmp 0x4031ac
push 0x17
push str.Intel_Pentium_Processor
jmp 0x4031a1
cmp eax, 0x898
je 0x40319a
cmp eax, 0x21d8
je 0x40318a
push esi
push 0x461840
jmp 0x4031a1
mov esi, dword [esp + 0x1c]
mov edx, str.AMD_X8664_Processor
call fcn.0040a1a0
jmp 0x4031ac
push 0x14
push str.Intel_IA64_Processor
mov ecx, dword [esp + 0x24]
add ecx, esi
call fcn.004017b0
cmp ebp, ebx
je 0x4031b3
push ebp
call edi
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0x60], vtable.Share::String::_tstringA.0
jb 0x4031cf
mov eax, dword [esp + 0x68]
push eax
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004453f2
add esp, 0xb0
ret 8