Function at 0x40c468
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
mov eax, dword [ebp - 8]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x40c6f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40c6c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404b40
cmp dword [ebp + 0xc], 0
je 0x40c4c4
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404ff0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c4f1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6cf
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c556
xor eax, eax
push ebp
push 0x40c54c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6cf
mov eax, dword [ebp - 0x18]
dec eax
je 0x40c566
sub eax, 2
je 0x40c5c6
jmp 0x40c68d
xor eax, eax
push ebp
push 0x40c5b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x1c]
dec ecx
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00404c30
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
call fcn.00405048
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6a0
xor eax, eax
push ebp
push 0x40c681
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00403114
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x40c66e
xor eax, eax
push ebp
push 0x40c664
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push dword [eax]
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x11c]
mov edx, 2
call fcn.004086e0
push dword [ebp - 0x120]
push 0x40c710
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00404eb8
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c66e
mov eax, dword [ebp - 0x1c]
inc eax
cmp eax, dword [ebp - 0x14]
jg 0x40c611
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6cf
cmp dword [ebp + 0xc], 0
je 0x40c6b2
cmp dword [ebp - 0x10], 0
sete al
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6fc
lea eax, [ebp - 0x120]
call fcn.00404b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b64
ret