Function at 0x4c2640
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xea4
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0xfe
xor ebx, ebx
lea edx, [ebp - 0x282]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xea4], eax
mov word [ebp - 0x284], cx
call fcn.004e7d90
push 0xfe
lea ecx, [ebp - 0x182]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x184], ax
call fcn.004e7d90
add esp, 0x18
lea edx, [ebp - 0xe90]
push edx
push 0x2001f
push ebx
push str.HardwareDescriptionSystemCentralProcessor0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xea0], ebx
mov dword [ebp - 0xe94], ebx
mov dword [ebp - 0xe90], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c2768
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xe98]
push eax
mov eax, dword [ebp - 0xe90]
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0xe9c]
push edx
push ebx
push str.ProcessorNameString
push eax
mov dword [ebp - 0xe9c], 1
mov dword [ebp - 0xe98], 0x80
call esi
mov eax, dword [ebp - 0xe90]
lea ecx, [ebp - 0xe98]
push ecx
lea edx, [ebp - 0xea0]
push edx
push ebx
push ebx
push str.MHz
push eax
mov dword [ebp - 0xe98], 4
call esi
mov ecx, dword [ebp - 0xe90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4c2750
movzx ecx, word [ebp + eax - 0x184]
mov word [ebp + eax - 0x284], cx
add eax, 2
cmp cx, bx
jne 0x4c2750
lea eax, [ebp - 0x184]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c2771
sub eax, edx
sar eax, 1
je 0x4c2ad5
lea edx, [ebp - 0x184]
push 0x20
push edx
call fcn.004e4991
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4c2964
push 0x7e
lea edx, [ebp - 0x82]
xor eax, eax
xor ecx, ecx
push ebx
push edx
mov word [esi - 2], ax
mov word [ebp - 0x84], cx
call fcn.004e7d90
lea eax, [esi + 2]
lea edx, [ebp - 0x84]
add esp, 0xc
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c27d0
lea eax, [ebp - 0x84]
push 0x528104
push eax
call fcn.004e49bf
add esp, 8
lea ecx, [ebp - 0x84]
test eax, eax
je 0x4c28fe
push 0x47
push ecx
call fcn.004e46a9
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c2820
sub eax, edx
sar eax, 1
cmp eax, 1
je 0x4c28e7
cmp eax, 2
je 0x4c28e7
cmp eax, 3
jne 0x4c2878
cmp word [ebp - 0x82], 0x2e
jne 0x4c2861
mov ax, word [ebp - 0x80]
xor ecx, ecx
mov word [ebp - 0x82], ax
mov word [ebp - 0x80], cx
lea edx, [ebp - 0x84]
push edx
call fcn.004e442a
add esp, 4
imul eax, eax, 0x64
jmp 0x4c295e
cmp eax, 4
jne 0x4c2964
mov eax, 0x2e
cmp word [ebp - 0x82], ax
jne 0x4c28bf
mov cx, word [ebp - 0x7e]
mov ax, word [ebp - 0x80]
mov edx, 0x30
mov word [ebp - 0x7e], dx
lea edx, [ebp - 0x84]
push edx
mov word [ebp - 0x82], ax
mov word [ebp - 0x80], cx
call fcn.004e442a
add esp, 4
jmp 0x4c295e
cmp word [ebp - 0x80], ax
jne 0x4c28d6
mov ax, word [ebp - 0x7e]
mov ecx, 0x30
mov word [ebp - 0x80], ax
mov word [ebp - 0x7e], cx
lea edx, [ebp - 0x84]
push edx
call fcn.004e442a
add esp, 4
jmp 0x4c295e
lea eax, [ebp - 0x84]
push eax
call fcn.004e442a
add esp, 4
imul eax, eax, 0x3e8
jmp 0x4c295e
push 0x52810c
push ecx
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4c2934
lea edx, [ebp - 0x84]
push 0x48
push edx
call fcn.004e46a9
lea edx, [ebp - 0x84]
xor ecx, ecx
push edx
mov word [eax], cx
call fcn.004e442a
add esp, 0xc
jmp 0x4c295e
xor eax, eax
jmp 0x4c2940
movzx ecx, word [ebp + eax - 0x284]
mov word [ebp + eax - 0x184], cx
add eax, 2
cmp cx, bx
jne 0x4c2940
mov eax, dword [ebp - 0xea0]
mov dword [ebp - 0xe94], eax
push 0x206
lea edx, [ebp - 0x48a]
xor ecx, ecx
push ebx
push edx
xor esi, esi
mov word [ebp - 0x48c], cx
call fcn.004e7d90
add esp, 0xc
push esi
lea eax, [ebp - 0x48c]
push str.HardwareDescriptionSystemCentralProcessor_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xe90]
push ecx
push 0x2001f
push ebx
lea edx, [ebp - 0x48c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c29d3
mov eax, dword [ebp - 0xe90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 0x81
jl 0x4c2984
lea ebx, [ebp - 0x184]
call fcn.004c2af0
call fcn.004c2ba0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x68a]
push edx
mov word [ebp - 0x68c], cx
call fcn.004e7d90
add esp, 0xc
test esi, esi
jle 0x4c2ad5
lea esp, [esp]
mov eax, dword [ebp - 0xe94]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x68c]
push str._s_t__d_MHZ
push edx
call ebx
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xe8a]
push ecx
mov word [ebp - 0xe8c], ax
call fcn.004e7d90
lea edx, [ebp - 0x68c]
push edx
push 0xcd
lea eax, [ebp - 0xe8c]
push str._03d_t_s
push eax
call ebx
lea eax, [ebp - 0xe8c]
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2a73
mov ebx, dword [ebp - 0xea4]
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [edi]
push ecx
lea edx, [ebp - 0xe8c]
push edx
lea ecx, [ebx + eax*2]
push ecx
call fcn.004eaf30
lea eax, [ebp - 0xe8c]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2ab0
sub eax, edx
sar eax, 1
add dword [edi], eax
mov eax, dword [edi]
mov edx, 1
mov word [ebx + eax*2], dx
inc dword [edi]
dec esi
jne 0x4c2a10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret