Function at 0x657a40
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 0x657cbe
cmp edx, 0xa
jl 0x657cbe
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.00650890
mov edx, 0x64
lea ecx, [esp + 0x30]
call fcn.00650ab0
mov edx, 0x64
lea ecx, [esp + 0x168]
call fcn.00650f50
mov edx, 0x64
lea ecx, [esp + 0x100]
call fcn.00651000
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 0x657cb0
cmp dword [esp + 0x10], ebx
je 0x657cb0
jmp 0x657b10
cmp ebx, 0xff
jae 0x657c76
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 0x657c76
test esi, esi
jne 0x657c6a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x657b10
cmp eax, 0x106
jb 0x657b88
mov dword [esp + 0x14], 0x105
lea eax, [esp + 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x657b90
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1d8]
push ecx
call fcn.00698b47
add esp, 0xc
test eax, eax
jne 0x657b10
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 0x657b10
mov esi, dword [esp + 0xc]
test esi, esi
je 0x657b10
cmp dword [ebp + 8], 1
jne 0x657c90
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 0x657c5f
cmp dword [esp + 0x18], 1
jne 0x657c5f
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x2dc]
push ecx
call fcn.006978dd
add esp, 8
test eax, eax
je 0x657c8c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x657b10
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.00657900
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x657b10
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