Function at 0x4121e6
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x214], ebx
je 0x412238
push 0x104
push ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x412287
mov edi, 0x4026e8
push edi
push ecx
call fcn.0041b296
cmp eax, ebx
pop ecx
pop ecx
je 0x41252c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call esi
push edi
push ebx
call fcn.0041b296
cmp eax, ebx
pop ecx
pop ecx
je 0x412281
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
jmp 0x412287
mov byte [ebp - 0x20c], bl
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4122db
cmp eax, 2
jne 0x4122ca
lea eax, [ebp - 0x108]
push eax
push 0x4051b0
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
jmp 0x41253a
push eax
push 0x405174
call fcn.0040be00
pop ecx
jmp 0x412536
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x412501
mov eax, dword [ebp - 0x22c]
inc eax
push eax
call fcn.0041af8c
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4124f5
mov ecx, dword [ebp - 0x22c]
inc ecx
mov dword [ebp - 0x224], ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
push ebx
mov edi, esi
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
push ebx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
lea eax, [ebp - 0x224]
push eax
push esi
mov dword [ebp - 0x218], 1
push ebx
jmp 0x4124d6
mov edi, dword [ebp - 0x234]
cmp edi, ebx
je 0x41245b
cmp byte [edi], bl
mov dword [ebp - 0x220], ebx
je 0x4123ef
push edi
mov dword [ebp - 0x238], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x238]
lea edi, [edi + eax + 1]
push esi
call fcn.0041b470
test eax, eax
pop ecx
pop ecx
je 0x4123df
push esi
push 0x405164
call fcn.0040be00
pop ecx
pop ecx
mov ecx, dword [ebp - 0x228]
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push esi
push dword [ebp - 0x210]
call fcn.00411e2d
test eax, eax
je 0x4123d2
mov dword [ebp - 0x220], 1
jmp 0x4123df
push esi
push 0x405130
call fcn.0040be00
pop ecx
pop ecx
cmp byte [edi], bl
jne 0x412371
cmp dword [ebp - 0x220], ebx
jne 0x4124b0
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x228]
push esi
push dword [ebp - 0x210]
call fcn.004121e6
cmp eax, ebx
mov dword [ebp - 0x214], eax
jge 0x4124b0
push 0x405100
call fcn.0040be00
pop ecx
cmp dword [ebp - 0x21c], 0x103
je 0x412450
cmp dword [ebp - 0x21c], ebx
je 0x412450
push dword [ebp - 0x21c]
push 0x4050c4
call fcn.0040be00
pop ecx
pop ecx
mov dword [ebp - 0x214], 0xfffffff7
push esi
call fcn.0041af7c
jmp 0x412517
push esi
lea eax, [ebp - 0x108]
push eax
push 0x4050b0
call fcn.0040be00
mov ecx, dword [ebp - 0x228]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push esi
push dword [ebp - 0x210]
call fcn.00411e2d
test eax, eax
jne 0x4124b0
push esi
lea eax, [ebp - 0x108]
push eax
push 0x40507c
call fcn.0040be00
add esp, 0xc
mov eax, dword [ebp - 0x22c]
push ebx
push ebx
push ebx
push ebx
inc eax
lea ecx, [ebp - 0x224]
push ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x218]
inc dword [ebp - 0x218]
push esi
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
mov dword [ebp - 0x21c], eax
je 0x412359
jmp 0x412420
push 0x405044
call fcn.0040be00
jmp 0x41250d
push eax
push 0x405008
call fcn.0040be00
pop ecx
mov dword [ebp - 0x214], 0xfffffff7
pop ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
jmp 0x41253a
push 0x404fd8
call fcn.0040be00
pop ecx
push 0xfffffffffffffff7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 0xc