Function at 0x408e40
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov eax, dword [ecx + 0x10]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov dword [esp + 0x20], ecx
jle 0x408fc0
xor ebp, ebp
xor ebx, ebx
push str.NtQuerySystemInformation
push str.ntdll
xor esi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x44a9bc], eax
jne 0x408e97
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a0
ret 4
push ebp
lea ecx, [esp + 0x50]
push 0x2c
push ecx
push ebp
call eax
test eax, eax
je 0x408eb5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a0
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea edx, [esp + 0x30]
push 0x20
push edx
push 3
call dword [0x44a9bc]
test eax, eax
jne 0x4090b0
push eax
lea eax, [esp + 0x7c]
push 0x138
push eax
push 2
call dword [0x44a9bc]
test eax, eax
jne 0x4090b0
mov ecx, esi
or ecx, ebx
jne 0x408f16
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x34]
push 0x3e8
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edx
call edi
jmp 0x408ebb
fild dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
fmul qword [0x43a760]
fild qword [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
faddp st(1)
fild dword [esp + 0x28]
and edx, 0xff
fmul qword [0x43a760]
fild qword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
faddp st(1)
fsubp st(1)
fild dword [esp + 0x38]
fmul qword [0x43a760]
fild qword [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
faddp st(1)
fild dword [esp + 0x1c]
fmul qword [0x43a760]
fild qword [esp + 0x10]
mov dword [esp + 0x10], edx
faddp st(1)
fsubp st(1)
fdivp st(1)
fmul qword [0x43a758]
fild dword [esp + 0x10]
fdivp st(1)
fsubr qword [0x43a758]
fadd qword [0x43a750]
call fcn.004185bc
mov ecx, dword [esp + 0x1b4]
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
jmp 0x408fc2
xor edi, edi
cmp dword [ecx + 0x10], 1
jg 0x4090e7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push edi
push str.PerfStatsStartStat
push reloc.OLEAUT32.dll_SysStringLen
call ebp
test eax, eax
je 0x408ffc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a0
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov ebx, 4
push str.KERNELCPUUsage
push eax
mov dword [esp + 0x3c], ebx
call esi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push str.PerfStatsStatData
push reloc.OLEAUT32.dll_SysStringLen
call ebp
test eax, eax
je 0x40905f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a0
ret 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.KERNELCPUUsage
push eax
mov dword [esp + 0x3c], ebx
call esi
mov edx, dword [esp + 0x1b4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [edx], ecx
call edi
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push str.PerfStatsStopStat
push reloc.OLEAUT32.dll_SysStringLen
call ebp
test eax, eax
je 0x4090bf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a0
ret 4
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.KERNELCPUUsage
push edx
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x18]
push eax
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1a0
ret 4