Function at 0x41a5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ab41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 4
sub esp, 0x26c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 0x120], 0
lea edi, [ebp - 0x11f]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x134], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPerflib
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a669
mov dword [ebp - 0x264], str.error_opening_perflib
push 0x4574f0
lea eax, [ebp - 0x264]
push eax
call fcn.00420569
mov dword [ebp - 0x13c], 4
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Last_Counter
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a6be
mov dword [ebp - 0x268], str.error_querying_last_counter_index
push 0x4574f0
lea eax, [ebp - 0x268]
push eax
call fcn.00420569
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Version
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a700
mov dword [ebp - 0x138], 1
jmp 0x41a70a
mov dword [ebp - 0x138], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov word [ebp - 0x148], ax
jmp 0x41a728
mov eax, dword [ebp - 0x148]
and eax, 0x3ff
mov word [ebp - 0x140], ax
jmp 0x41a73f
cmp dword [ebp - 0x138], 0
je 0x41a83f
mov dword [ebp - 0x14c], 0
mov ax, word [ebp - 0x140]
mov word [ebp - 0x150], ax
jmp 0x41a772
mov word [ebp - 0x150], 9
cmp dword [ebp - 0x14c], 0
jne 0x41a815
mov eax, dword [ebp - 0x150]
and eax, 0xffff
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPerflib_03X
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.Counters
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41a7b7
lea eax, [ebp - 0x134]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a7f7
mov eax, dword [ebp - 0x150]
and eax, 0xffff
cmp eax, 9
jne 0x41a806
mov dword [ebp - 0x14c], 1
jmp 0x41a810
mov dword [ebp - 0x14c], 0
jmp 0x41a769
cmp dword [ebp - 0x1c], 0
je 0x41a83a
mov dword [ebp - 0x26c], str.error_opening_counters_key
push 0x4574f0
lea eax, [ebp - 0x26c]
push eax
call fcn.00420569
jmp 0x41a8fb
mov dword [ebp - 0x258], 0
mov ax, word [ebp - 0x140]
mov word [ebp - 0x25c], ax
jmp 0x41a865
mov word [ebp - 0x25c], 9
cmp dword [ebp - 0x258], 0
jne 0x41a8f2
mov eax, dword [ebp - 0x25c]
and eax, 0xffff
push eax
push str.Counter__03X
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a8d4
mov eax, dword [ebp - 0x25c]
and eax, 0xffff
cmp eax, 9
jne 0x41a8e3
mov dword [ebp - 0x258], 1
jmp 0x41a8ed
mov dword [ebp - 0x258], 0
jmp 0x41a85c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x13c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a946
mov dword [ebp - 0x270], str.error_querying_size_of_counter_name_data
push 0x4574f0
lea eax, [ebp - 0x270]
push eax
call fcn.00420569
push 0x164
push str.MSINFO95PERFDATA.CXX
mov eax, dword [ebp - 0x13c]
push eax
call fcn.0040c0a0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x41a992
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x274], str.error_allocating_data_for_counter_name_info__TitleBuffer_
push 0x4574f0
lea eax, [ebp - 0x274]
push eax
call fcn.00420569
push 0x16b
push str.MSINFO95PERFDATA.CXX
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea eax, [eax*4 + 4]
push eax
call fcn.0040c0a0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x41a9e4
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x278], str.error_allocating_data_for_counter_name_info
push 0x4574f0
lea eax, [ebp - 0x278]
push eax
call fcn.00420569
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
lea edx, [edx*4 + 4]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41aa54
mov dword [ebp - 0x27c], str.error_querying_data__TitleBuffer_
push 0x4574f0
lea eax, [ebp - 0x27c]
push eax
call fcn.00420569
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jbe 0x41aaca
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042334a
add esp, 4
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x124]
inc eax
add dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x128]
cmp dword [eax], ecx
jb 0x41aab7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add dword [ebp - 0x18], eax
jmp 0x41aa5c
jmp 0x41aad5
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x41aaf6
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041ab60
add esp, 8
cmp dword [ebp - 0x12c], 0
je 0x41ab10
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x134], 0
je 0x41ab39
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x134], eax
je 0x41ab39
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
jmp 0x41ab4b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret