Function at 0x460a24
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x330], 0x104
mov dword [ebp - 0x32c], 0
lea eax, [ebp - 0x118]
push eax
call fcn.00465bb3
add esp, 4
test eax, eax
jne 0x460a74
xor eax, eax
jmp 0x460d07
push 0x104
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.00464e6e
add esp, 0xc
push 0x2c
push 0x456cb0
lea edx, [ebp - 0x324]
push edx
call fcn.00469167
add esp, 0xc
movsx eax, byte [ebp - 0x118]
test eax, eax
je 0x460ce8
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea edx, [ebp - 0x324]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x460ce8
mov dword [ebp - 8], 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x460cde
cmp dword [ebp - 8], 0
jbe 0x460cde
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x328], 0
mov dword [ebp - 4], 0
jmp 0x460b50
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
cmp edx, dword [ebp - 8]
jae 0x460cc4
mov eax, dword [ebp - 0x220]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x330], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x460bb1
cmp dword [ebp - 4], 0x103
jne 0x460cb4
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
push 0x456ce0
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
mov ecx, dword [ebp - 0x220]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
push 0x456ce8
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
cmp esi, 0x104
jb 0x460bfe
jmp 0x460b41
push 0x104
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00469167
add esp, 0xc
push 0x456cf4
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046b15d
add esp, 8
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0046b15d
add esp, 8
push 0x456cfc
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046b15d
add esp, 8
lea edx, [ebp - 0x21c]
push edx
call fcn.00474679
add esp, 4
test eax, eax
je 0x460cb4
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x460cb4
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 4], 0x103
jne 0x460cbf
jmp 0x460cc4
jmp 0x460b41
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x220], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x455109
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x460d02
xor eax, eax
jmp 0x460d07
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret