Function at 0x42aa24
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.0042fbb3
add esp, 4
test eax, eax
jne 0x42aa74
xor eax, eax
jmp 0x42ad07
push 0x104
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.0042ee6e
add esp, 0xc
push 0x2c
push 0x420cb0
lea edx, [ebp - 0x324]
push edx
call fcn.00433167
add esp, 0xc
movsx eax, byte [ebp - 0x118]
test eax, eax
je 0x42ace8
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 0x42ace8
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 0x42acde
cmp dword [ebp - 8], 0
jbe 0x42acde
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 0x42ab50
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
cmp edx, dword [ebp - 8]
jae 0x42acc4
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 0x42abb1
cmp dword [ebp - 4], 0x103
jne 0x42acb4
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
push 0x420ce0
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 0x420ce8
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
cmp esi, 0x104
jb 0x42abfe
jmp 0x42ab41
push 0x104
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00433167
add esp, 0xc
push 0x420cf4
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0043515d
add esp, 8
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0043515d
add esp, 8
push 0x420cfc
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0043515d
add esp, 8
lea edx, [ebp - 0x21c]
push edx
call fcn.0043e679
add esp, 4
test eax, eax
je 0x42acb4
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x42acb4
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 0x42acbf
jmp 0x42acc4
jmp 0x42ab41
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 0x41f109
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x42ad02
xor eax, eax
jmp 0x42ad07
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret