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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [ebp + 0x1c]
push esi
push edi
push dword [ebp + 0x24]
lea esi, [ebp - 0x82c]
push dword [ebp + 0x20]
mov dword [ebp - 4], ecx
call fcn.004197b3
lea eax, [ebp - 8]
push eax
push 9
xor edi, edi
push edi
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419550
xor eax, eax
inc eax
jmp 0x4197ad
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x419790
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov ebx, dword [0x45b170]
jbe 0x419640
cmp dword [ebp + 0x14], 3
je 0x419640
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea esi, [eax - 1]
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x400
mov byte [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x41961d
lea eax, [ebp - 0x82c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x6c
jne 0x4195f7
mov ecx, dword [ecx + 0x14]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 8]
push 2
call fcn.004029a9
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x14]
cmp dword [ebp + 0x24], ecx
je 0x4195d9
jmp 0x419605
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 8]
push 3
call fcn.004029a9
add dword [ebx + 8], 1
adc dword [ebx + 0xc], edi
cmp eax, 1
je 0x419616
cmp eax, 6
jne 0x419627
mov eax, dword [ebp + 0x24]
cmp eax, edi
jne 0x41962e
cmp esi, edi
je 0x419640
dec esi
jmp 0x419597
mov esi, eax
jmp 0x419793
cmp eax, dword [ebp - 4]
jne 0x41963b
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x419640
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4197a0
cmp dword [ebp + 0x14], 1
jne 0x41965b
cmp byte [ebp + 0x18], 0
je 0x4197a0
dec eax
mov dword [ebp - 0x24], 0xfffffffe
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0xc]
mov esi, 0x400
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x419771
cmp dword [ebp + 0x14], 1
je 0x4196fa
lea eax, [ebp - 0x82c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x6c
jne 0x4196cc
mov ecx, dword [ecx + 0x14]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 8]
push 2
call fcn.004029a9
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x14]
cmp dword [ebp + 0x24], ecx
je 0x4196ae
jmp 0x4196da
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 8]
push 3
call fcn.004029a9
add dword [ebx + 8], 1
adc dword [ebx + 0xc], edi
cmp eax, 1
je 0x4196ef
cmp eax, 6
jne 0x419627
mov eax, dword [ebp + 0x24]
cmp eax, edi
jne 0x41977e
cmp byte [ebp + 0x18], 0
je 0x419771
cmp byte [ebp - 0x824], 0
mov eax, 0x454a70
jne 0x419713
mov eax, 0x45282f
lea ecx, [ebp - 0x424]
push ecx
push eax
lea eax, [ebp - 0x824]
push eax
push str._s_s_s
lea edi, [ebp - 0xc2c]
call fcn.0040a3cc
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
mov edi, dword [ebp + 0xc]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 8]
call fcn.00419506
cmp eax, 1
je 0x419765
cmp eax, 6
jne 0x419627
cmp byte [edi], 0
jne 0x419790
cmp dword [esi], 0
jne 0x419790
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x419790
dec dword [ebp - 0xc]
jmp 0x419666
cmp eax, dword [ebp - 4]
jne 0x41978b
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x419790
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4197ac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 0x20