Function at 0x425f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
push ebx
push str.Counter_009
push reloc.OLEAUT32.dll_SysReAllocStringLen
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x426228
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x426228
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push edi
push ecx
push ebx
push str.Counter_009
push reloc.OLEAUT32.dll_SysReAllocStringLen
call esi
test eax, eax
je 0x426013
push edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov al, byte [edi]
mov ebp, edi
cmp al, bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
je 0x426219
cmp dword [esp + 0x10], 5
jge 0x426219
push ebp
lea edx, [esp + 0x30]
push 0x4a4c38
push edx
call fcn.004478fa
mov esi, dword [esp + 0x2c]
add esp, 0xc
and esi, 1
jne 0x42605f
push ebp
call fcn.00447ced
add esp, 4
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x4261f0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x81f0], 0xffffffff
jne 0x4260bf
mov esi, str.PhysicalDisk
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42609f
cmp cl, bl
je 0x42609b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42609f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x42607b
xor eax, eax
jmp 0x4260a4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4260bf
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81f0], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
push str.Disk_Read_Bytes_sec
push ebp
call fcn.004487f0
add esp, 8
test eax, eax
je 0x4260e8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x81f4], edx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x81f8], 0xffffffff
jne 0x426140
mov esi, str.Disk_Write_Bytes_sec
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x426120
cmp cl, bl
je 0x42611c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x426120
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4260fc
xor eax, eax
jmp 0x426125
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x426140
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81f8], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x81fc], 0xffffffff
jne 0x426198
mov esi, str.Disk_Reads_sec
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x426178
cmp cl, bl
je 0x426174
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x426178
add eax, 2
add esi, 2
cmp cl, bl
jne 0x426154
xor eax, eax
jmp 0x42617d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x426198
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81fc], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x8200], 0xffffffff
jne 0x4261f0
mov esi, str.Disk_Writes_sec
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4261d0
cmp cl, bl
je 0x4261cc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4261d0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4261ac
xor eax, eax
jmp 0x4261d5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4261f0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x8200], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [esp + 0x28]
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x20]
inc ecx
cmp al, bl
mov dword [esp + 0x20], ecx
jne 0x42602b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret