Function at 0x472582
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.004828ec
add esp, 4
test eax, eax
jne 0x4725d2
xor eax, eax
jmp 0x472865
push 0x104
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.0046a31d
add esp, 0xc
push 0x2c
push 0x454ce4
lea edx, [ebp - 0x324]
push edx
call fcn.0045df18
add esp, 0xc
movsx eax, byte [ebp - 0x118]
test eax, eax
je 0x472846
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 0x472846
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 0x47283c
cmp dword [ebp - 8], 0
jbe 0x47283c
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 0x4726ae
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
cmp edx, dword [ebp - 8]
jae 0x472822
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 0x47270f
cmp dword [ebp - 4], 0x103
jne 0x472812
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
push 0x454d14
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 0x454d1c
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
cmp esi, 0x104
jb 0x47275c
jmp 0x47269f
push 0x104
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0045df18
add esp, 0xc
push 0x454d28
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0045a000
add esp, 8
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0045a000
add esp, 8
push 0x454d30
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0045a000
add esp, 8
lea edx, [ebp - 0x21c]
push edx
call fcn.0045a237
add esp, 4
test eax, eax
je 0x472812
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x472812
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 0x47281d
jmp 0x472822
jmp 0x47269f
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 0x453109
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x472860
xor eax, eax
jmp 0x472865
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret