Function at 0x546664
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404690
mov eax, dword [ebp - 8]
call fcn.00404690
xor eax, eax
push ebp
push 0x54692b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00492c68
test al, al
je 0x5466c6
mov ebx, 0x20119
jmp 0x5466cb
mov ebx, 0x20019
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5468ea
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x5468ea
inc ebx
mov dword [ebp - 0x30], 0
cmp byte [0xbd34e0], 3
je 0x5468ea
mov eax, dword [0x55e810]
mov eax, dword [eax]
call fcn.0048fe70
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x546944
call fcn.00409e10
cmp dword [ebp - 4], 0
jne 0x5467c9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x546944
call fcn.00409e10
jmp 0x546810
push dword [ebp - 4]
push 0x546950
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x546944
call fcn.00409e10
push dword [ebp - 0x248]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x546944
call fcn.00409e10
mov eax, dword [0x55e1cc]
inc dword [eax]
mov eax, dword [0x55e1cc]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x54685e
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
call fcn.0047002c
mov edx, dword [ebp - 0x34]
mov eax, 0x54695c
call fcn.004047e4
test eax, eax
jg 0x5468e0
mov edx, dword [ebp - 0x34]
mov eax, 0x546998
call fcn.004047e4
test eax, eax
jg 0x5468e0
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x34]
call fcn.00408624
mov eax, dword [ebp - 0x24c]
push eax
lea edx, [ebp - 0x250]
mov eax, 0x5469f4
call fcn.00408624
mov eax, dword [ebp - 0x250]
pop edx
call fcn.004047e4
test eax, eax
jg 0x5468e0
mov eax, dword [ebp - 8]
push eax
push edi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00546a0c
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00546664
mov dword [ebp - 0x10], 0x3e8
inc dword [ebp - 0x30]
dec ebx
jne 0x546736
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546932
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404204
ret