Function at 0x1007ae10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x198
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.1007a880
test eax, eax
jne 0x1007af45
call fcn.1007a8f0
test eax, eax
jne 0x1007af45
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.PerfStatsStartStat
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
jne 0x1007b0ce
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov ebp, 4
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x34], ebp
call esi
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.PerfStatsStatData
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
jne 0x1007b0ce
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x34], ebp
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.PerfStatsStopStat
push reloc.OLEAUT32.dll_SysStringLen
call ebx
test eax, eax
jne 0x1007b0ce
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x34], 4
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je 0x1007b0ce
push ebp
lea eax, [esp + 0x48]
push 0x2c
push eax
push ebp
call edi
test eax, eax
jne 0x1007b0ce
push ebp
lea ecx, [esp + 0x28]
push 0x20
push ecx
push 3
call edi
test eax, eax
jne 0x1007b0ce
push ebp
lea edx, [esp + 0x74]
push 0x138
push edx
push 2
call edi
test eax, eax
jne 0x1007b0ce
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x1007b00e
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x10], eax
push 0x320
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
call ebx
push ebp
lea edx, [esp + 0x28]
push 0x20
push edx
push 3
call edi
test eax, eax
jne 0x1007b0ce
push ebp
lea eax, [esp + 0x74]
push 0x138
push eax
push 2
call edi
test eax, eax
jne 0x1007b0ce
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
or ecx, eax
je 0x1007afb6
fild dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
mov edx, dword [esi + 8]
fmul qword [0x104b3358]
fild qword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
faddp st(1)
fild dword [esi + 0xc]
mov ecx, dword [esp + 0x6c]
fmul qword [0x104b3358]
fild qword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
and ecx, 0xff
faddp st(1)
fsubp st(1)
fild dword [esp + 0x30]
fmul qword [0x104b3358]
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
faddp st(1)
fild dword [esi + 0x14]
fmul qword [0x104b3358]
fild qword [esp + 0x14]
mov dword [esp + 0x14], ecx
faddp st(1)
fsubp st(1)
fdivp st(1)
fmul qword [0x104b3350]
fild dword [esp + 0x14]
fdivp st(1)
fsubr qword [0x104b3350]
fadd qword [0x104b3348]
call fcn.10093588
mov edx, dword [esp + 0x74]
mov ebp, eax
mov eax, dword [esp + 0x30]
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x198
ret