Function at 0x411e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x518
mov al, byte [esp + 0x520]
push ebx
push ebp
push esi
mov esi, ecx
test al, al
mov dword [esp + 0x14], esi
jne 0x411e28
push 0xffffffffffffffff
push 0
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::SetSize
jmp 0x411e2c
mov byte [esi + 0x18], 0
push 9
push str.softwaremicrosoftwindows_ntcurrentversionperflib
lea eax, [esp + 0x12c]
push str._s_03x
push eax
mov byte [esp + 0x1f], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x124]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411e88
push str.Could_not_open_performance_registry_key
lea ecx, [esi + 0x2c]
mov byte [esp + 0x13], 1
call sub.MFC42.DLL_CString::operator
jmp 0x41217e
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
push 0
push str.Counters
push edx
call ebx
test eax, eax
je 0x411ec3
push str.Could_not_open_counter_registry_key
lea ecx, [esi + 0x2c]
mov byte [esp + 0x13], 1
call sub.MFC42.DLL_CString::operator
jmp 0x41217e
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x411eef
push str.Out_of_Memory
lea ecx, [esi + 0x2c]
mov byte [esp + 0x17], 1
call sub.MFC42.DLL_CString::operator
jmp 0x41216f
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ebp
push ecx
push 0
push str.Counters
push edx
call ebx
test eax, eax
je 0x411f39
push str.Could_Not_Read_the_counter_Names
lea ecx, [esi + 0x2c]
mov byte [esp + 0x17], 1
call sub.MFC42.DLL_CString::operator
jmp 0x41216f
mov al, byte [ebp]
mov ebx, ebp
test al, al
je 0x411ff2
cmp ebx, ebp
jbe 0x41208e
movsx eax, byte [ebx - 2]
mov edi, dword [sym.imp.MSVCRT.dll__ismbcdigit]
lea esi, [ebx - 2]
push eax
call edi
add esp, 4
test eax, eax
je 0x411f74
movsx ecx, byte [esi - 1]
dec esi
push ecx
call edi
add esp, 4
test eax, eax
jne 0x411f65
mov esi, dword [esp + 0x18]
push str.process
push ebx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x411fd6
movsx edx, byte [ebx - 2]
lea esi, [ebx - 2]
push edx
call edi
add esp, 4
test eax, eax
je 0x411fab
movsx eax, byte [esi - 1]
dec esi
push eax
call edi
add esp, 4
test eax, eax
jne 0x411f9c
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x411f46
push ebp
call dword [sym.imp.MSVCRT.dll_free]
push 0xc800
mov dword [esp + 0x1c], 0xc800
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x411ed8
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
mov ebx, dword [sym.imp.MSVCRT.dll_realloc]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ebp
push ecx
lea edx, [esp + 0x134]
push 0
push edx
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412099
cmp eax, 0xea
jne 0x4120bd
mov eax, dword [esp + 0x14]
add eax, 0x6400
push eax
push ebp
mov dword [esp + 0x1c], eax
call ebx
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x412035
mov edi, dword [sym.imp.MSVCRT.dll__ismbcdigit]
jmp 0x411f78
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4120bd
cmp word [ebp], 0x50
jne 0x4120bd
cmp word [ebp + 2], 0x45
jne 0x4120bd
cmp word [ebp + 4], 0x52
jne 0x4120bd
cmp word [ebp + 6], 0x46
je 0x4120d4
push str.Could_Not_Obtain_Performance_Data
lea ecx, [esi + 0x2c]
mov byte [esp + 0x17], 1
call sub.MFC42.DLL_CString::operator
jmp 0x41216f
mov eax, dword [ebp + 0x18]
mov ebx, 0x100
add eax, ebp
mov ecx, dword [eax + 0x28]
cmp ecx, 0x100
ja 0x4120eb
mov ebx, ecx
mov esi, dword [eax + 4]
xor edi, edi
add esi, eax
test ebx, ebx
jbe 0x41216f
mov eax, dword [esi + 0x10]
push 0
push 0
lea ecx, [esp + 0x2c]
push 0x104
add eax, esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x412158
mov al, byte [esp + 0x530]
test al, al
je 0x412143
mov edx, dword [esp + 0x52c]
lea ecx, [esp + 0x24]
push ecx
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x412167
jmp 0x412158
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [edx + 4]
mov edx, dword [edx + 0xc]
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esi]
add eax, esi
mov esi, dword [eax]
add esi, eax
inc edi
cmp edi, ebx
jb 0x4120f6
jmp 0x41216f
mov eax, dword [esp + 0x18]
mov byte [eax + 0x18], 1
test ebp, ebp
pop edi
je 0x41217e
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
push 0x80000004
call esi
mov cl, byte [esp + 0xf]
xor eax, eax
test cl, cl
pop esi
pop ebp
sete al
pop ebx
add esp, 0x518
ret 8