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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x300065c9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.3000217c
xor eax, eax
push ebp
push 0x3000684f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.30001df0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.3000218c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x3000681c
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], 0x400
mov eax, dword [ebp - 0x1c]
call fcn.30001140
mov edi, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1c], 0x400
cmp byte [ebp + 8], 0
je 0x30006668
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
jmp 0x30006681
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x30006804
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.30002314
lea eax, [ebp - 0x14]
call fcn.300021e0
mov edx, eax
mov eax, edi
mov ecx, dword [ebp - 0x1c]
call fcn.30001224
cmp byte [ebp + 8], 0
je 0x300066ce
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 0x14]
push 0x3000686c
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.30002054
inc esi
jmp 0x30006804
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.30001fe0
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.30006230
xor eax, eax
cmp dword [ebp - 0x20], 4
jne 0x3000674c
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.30001fe0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.30006118
push dword [ebp - 0x14]
push 0x30006878
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
call fcn.30006598
push dword [ebp - 0x34]
push 0x30006878
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x28]
call fcn.30006598
push dword [ebp - 0x38]
push 0x3000686c
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.30002054
or eax, 0xffffffff
cmp dword [ebp - 0x20], 3
jne 0x300067a1
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.30001fe0
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.30006198
push dword [ebp - 0x14]
push 0x30006878
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x20]
call fcn.30006598
push dword [ebp - 0x40]
push 0x30006878
push dword [ebp - 0x24]
push 0x3000686c
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.30002054
or eax, 0xffffffff
test eax, eax
jne 0x300067f5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.30001fe0
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.3000604c
push dword [ebp - 0x14]
push 0x30006878
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x20]
call fcn.30006598
push dword [ebp - 0x48]
push 0x30006878
push dword [ebp - 0x24]
push 0x3000686c
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.30002054
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.30001f9c
mov eax, dword [ebp - 0xc]
inc esi
test ebx, ebx
je 0x30006640
mov eax, edi
call fcn.30001158
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30006856
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.30001e14
lea eax, [ebp - 0x24]
call fcn.30001df0
lea eax, [ebp - 0x14]
call fcn.30001df0
lea eax, [ebp - 8]
call fcn.30001df0
ret