Function at 0x40c470
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 0x40c6fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40c6cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404b40
cmp dword [ebp + 0xc], 0
je 0x40c4cc
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 0x40c4f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6d7
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 0x40c55e
xor eax, eax
push ebp
push 0x40c554
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 0x40c6d7
mov eax, dword [ebp - 0x18]
dec eax
je 0x40c56e
sub eax, 2
je 0x40c5ce
jmp 0x40c695
xor eax, eax
push ebp
push 0x40c5bf
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 0x40c6a8
xor eax, eax
push ebp
push 0x40c689
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 0x40c676
xor eax, eax
push ebp
push 0x40c66c
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.004086e8
push dword [ebp - 0x120]
push 0x40c718
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 0x40c676
mov eax, dword [ebp - 0x1c]
inc eax
cmp eax, dword [ebp - 0x14]
jg 0x40c619
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c6a8
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 0x40c6d7
cmp dword [ebp + 0xc], 0
je 0x40c6ba
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 0x40c6d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c704
lea eax, [ebp - 0x120]
call fcn.00404b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b64
ret