Function at 0x40c410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
lea eax, [ebp - 0x74]
push eax
push 1
call fcn.0040c3c0
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x40c450
jmp 0x40c721
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], 0x64
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x6c]
push edx
push 0
push 0x42c0d8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40c4ae
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004288d0
add esp, 8
jmp 0x40c54d
cmp dword [ebp - 0x7c], 2
jne 0x40c4b9
jmp 0x40c54d
cmp dword [ebp - 0x7c], 0xea
jne 0x40c548
lea eax, [ebp - 0x80]
push eax
call fcn.00428990
add esp, 4
mov ecx, dword [ebp - 0x70]
add ecx, 0x10
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
push eax
call fcn.00428870
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0x42c0d8
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x40c533
lea eax, [ebp - 0x80]
push eax
call fcn.00428990
add esp, 4
jmp 0x40c717
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004288d0
add esp, 8
jmp 0x40c54d
jmp 0x40c717
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x42c0e4
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40c594
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004288d0
add esp, 8
jmp 0x40c633
cmp dword [ebp - 0x7c], 2
jne 0x40c59f
jmp 0x40c633
cmp dword [ebp - 0x7c], 0xea
jne 0x40c62e
lea ecx, [ebp - 0x80]
push ecx
call fcn.00428990
add esp, 4
mov edx, dword [ebp - 0x70]
add edx, 0x10
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00428870
add esp, 4
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x6c]
push edx
push 0
push 0x42c0e4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x40c619
lea ecx, [ebp - 0x80]
push ecx
call fcn.00428990
add esp, 4
jmp 0x40c717
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004288d0
add esp, 8
jmp 0x40c633
jmp 0x40c717
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0x42c0f0
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40c67a
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004288d0
add esp, 8
jmp 0x40c70f
cmp dword [ebp - 0x7c], 2
jne 0x40c685
jmp 0x40c70f
cmp dword [ebp - 0x7c], 0xea
jne 0x40c70d
lea edx, [ebp - 0x80]
push edx
call fcn.00428990
add esp, 4
mov eax, dword [ebp - 0x70]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.00428870
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x42c0f0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x40c6f8
lea edx, [ebp - 0x80]
push edx
call fcn.00428990
add esp, 4
jmp 0x40c717
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004288d0
add esp, 8
jmp 0x40c70f
jmp 0x40c717
xor edx, edx
jne 0x40c467
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret