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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
cmp edi, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x656cce
cmp edx, 0xa
jl 0x656cce
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, 0x64
lea ecx, [esp + 0x98]
call fcn.0064f8a0
mov edx, 0x64
lea ecx, [esp + 0x30]
call fcn.0064fac0
mov edx, 0x64
lea ecx, [esp + 0x168]
call fcn.0064ff60
mov edx, 0x64
lea ecx, [esp + 0x100]
call fcn.00650010
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0xa4]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x656cc0
cmp dword [esp + 0x10], ebx
je 0x656cc0
jmp 0x656b20
cmp ebx, 0xff
jae 0x656c86
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1d0]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1e4]
push ecx
push ebx
push edx
mov dword [esp + 0x34], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
inc ebx
cmp esi, 0x103
je 0x656c86
test esi, esi
jne 0x656c7a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x656b20
cmp eax, 0x106
jb 0x656b98
mov dword [esp + 0x14], 0x105
lea eax, [esp + 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x656ba0
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1d8]
push ecx
call fcn.00697b57
add esp, 0xc
test eax, eax
jne 0x656b20
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0x20019
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1dc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x656b20
mov esi, dword [esp + 0xc]
test esi, esi
je 0x656b20
cmp dword [ebp + 8], 1
jne 0x656ca0
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x2d8]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x178]
push edx
push esi
mov dword [esp + 0x34], 0x1f3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x656c6f
cmp dword [esp + 0x18], 1
jne 0x656c6f
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x2dc]
push ecx
call fcn.006968ed
add esp, 8
test eax, eax
je 0x656c9c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x656b20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.00656910
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x656b20
mov eax, 0x338
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x325
pop ebx
mov esp, ebp
pop ebp
ret 4