Function at 0x75c824a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x75c824c0
mov ebx, dword [0x75c85068]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
je 0x75c82742
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [0x75c86c34]
cmp dword [0x75c86c2c], ecx
jb 0x75c824e6
mov ecx, dword [0x75c86c2c]
jmp 0x75c824ec
mov ecx, dword [0x75c86c34]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
push dword [0x75c8508c]
lea eax, [ecx*4 + 4]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, eax
mov eax, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionPerflib]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, eax
lea eax, [edi*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x75c82578
mov dword [ebp - 4], 0xe
cmp dword [ebp - 4], 0
je 0x75c8254f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0xc], 0
je 0x75c82561
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
test esi, esi
je 0x75c8274d
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x75c8274d
push dword [ebp + 0x14]
push 0x2001f
xor edi, edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x75c82540
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 8], edi
push edi
mov eax, dword [ebp + 0x14]
push ecx
push edi
push dword [0x75c8506c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x75c82540
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edi
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [str.Help]
push edi
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 8], edi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x75c82540
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
je 0x75c82539
push esi
mov edi, esi
call dword [sym.imp.msvcrt.dll__msize]
mov ecx, eax
add esp, 4
shr ecx, 2
mov edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
add ebx, esi
mov ecx, dword [ebp - 0x1c]
add edi, ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push ebx
push eax
push 0
push dword [0x75c8506c]
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x75c82540
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp + 0x14]
push edi
mov eax, dword [str.Help]
push ecx
push 0
push eax
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x75c82540
cmp word [ebx], 0
je 0x75c826d5
lea eax, [ebp - 0x14]
push eax
push 0x75c85168
push ebx
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
dec eax
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x75c82540
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [ebp - 0x14]
push ebx
mov dword [esi + eax*4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x75c82690
cmp word [edi], 0
je 0x75c82720
lea eax, [ebp - 0x14]
push eax
push 0x75c85168
push edi
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
dec eax
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x75c82540
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x14]
push edi
mov dword [esi + eax*4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x75c826db
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x75c8272c
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
je 0x75c8273e
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
jmp 0x75c8274f
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18