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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x52
push 0
push 0
dec ecx
jne 0x4c227d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
call fcn.00406a64
lea esi, [ebp - 0x238]
lea edi, [ebp - 0x38]
xor eax, eax
push ebp
push 0x4c29f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [edi], 0x200
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00406a7c
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00406a7c
mov eax, ebx
xor edx, edx
call fcn.00406a7c
mov eax, dword [ebp + 0x14]
xor edx, edx
call fcn.00406a7c
mov eax, dword [ebp + 0x10]
xor edx, edx
call fcn.00406a7c
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00406a7c
lea eax, [ebp - 0x20]
push eax
push 0x80000002
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp - 4]
mov edx, 0x4c2a10
call fcn.00406f48
mov eax, dword [ebp - 0x23c]
call fcn.00406b08
push eax
call sub.advapi32.dll_RegConnectRegistryW
test eax, eax
jne 0x4c29c5
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2a18
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c2387
push edi
push esi
push 0
push 0
push 0x4c2a9c
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x18]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2ab8
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c24b6
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [edi], 4
push edi
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x4c2b14
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c23df
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.004bedac
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2b2c
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c2434
lea eax, [ebp - 0x244]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.00412634
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x10]
call fcn.00406a7c
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2b44
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [edi], 0
jbe 0x4c24b2
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x4c2b68
lea eax, [ebp - 0x250]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
push dword [ebp - 0x250]
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00412634
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x10]
call fcn.00406a7c
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x4c25ba
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2b6c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c25ba
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2bc0
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c2538
lea eax, [ebp - 0x258]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call fcn.00412634
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x10]
call fcn.00406a7c
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2bd0
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [edi], 0
jbe 0x4c25b6
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x4c2b68
lea eax, [ebp - 0x264]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
push dword [ebp - 0x264]
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.0040702c
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
call fcn.00412634
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x10]
call fcn.00406a7c
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2bf4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c2695
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2c54
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c262f
lea eax, [ebp - 0x26c]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x268]
call fcn.00412634
mov edx, dword [ebp - 0x268]
mov eax, ebx
call fcn.00406a7c
cmp dword [ebx], 0
jne 0x4c2691
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2c7c
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [edi], 0
jbe 0x4c2691
lea eax, [ebp - 0x274]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.00412634
mov edx, dword [ebp - 0x270]
mov eax, ebx
call fcn.00406a7c
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2c94
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c281d
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2cd8
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c270b
lea eax, [ebp - 0x27c]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x278]
call fcn.00412634
mov edx, dword [ebp - 0x278]
mov eax, dword [ebp + 0x14]
call fcn.00406a7c
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2cf0
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c276f
mov eax, dword [ebp + 0x14]
push dword [eax]
push 0x4c2b68
lea eax, [ebp - 0x284]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x280]
call fcn.00412634
push dword [ebp - 0x280]
mov eax, dword [ebp + 0x14]
mov edx, 3
call fcn.0040702c
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2d08
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c27c4
lea eax, [ebp - 0x28c]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x288]
call fcn.00412634
mov edx, dword [ebp - 0x288]
mov eax, dword [ebp + 0x10]
call fcn.00406a7c
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2d2c
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [edi], 0
jbe 0x4c2819
lea eax, [ebp - 0x294]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x294]
lea edx, [ebp - 0x290]
call fcn.00412634
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp + 0xc]
call fcn.00406a7c
mov byte [ebp - 0x19], 1
cmp dword [ebx], 0
jne 0x4c29bc
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4c2d54
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c29bc
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x4c298b
lea eax, [ebp - 8]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov word [esi], 0
mov dword [edi], 0x200
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c297f
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x4c295b
lea eax, [ebp - 0xc]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov word [esi], 0
mov dword [edi], 0x200
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406b08
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c294f
mov word [esi], 0
mov dword [edi], 0x200
push edi
push esi
push 0
push 0
push 0x4c2d9c
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
lea eax, [ebp - 0x298]
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
mov eax, dword [ebp - 0x298]
mov edx, 0x4c2db4
call fcn.00412358
test al, al
je 0x4c2949
mov dword [edi], 0x200
mov word [esi], 0
push edi
push esi
push 0
push 0
push 0x4c2dc8
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, esi
mov ecx, pe_nt_image_headers32
call fcn.00406c74
jmp 0x4c297f
mov dword [edi], 0x200
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push edi
push esi
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x4c297f
cmp dword [ebx], 0
je 0x4c289a
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0x30]
push 0
push 0
push 0
push 0
push edi
push esi
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x4c29af
cmp dword [ebx], 0
je 0x4c2851
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c29f7
lea eax, [ebp - 0x298]
mov edx, 0x18
call fcn.00406a74
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406a74
ret