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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c8
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
je 0x6576bb
cmp edx, 0xa
jl 0x6576bb
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 + 0x108]
call fcn.0064db30
mov edx, 0x64
lea ecx, [esp + 0xa0]
call fcn.006501a0
mov edx, 0x64
lea ecx, [esp + 0x38]
call fcn.006505f0
mov edx, 0x64
lea ecx, [esp + 0x170]
call fcn.006500b0
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
lea ecx, [esp + 0x114]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6576ae
cmp dword [esp + 0x14], ebp
je 0x6576ae
lea esp, [esp]
cmp ebx, 0xff
jae 0x657699
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1d8]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
push ebp
push ebp
push ebp
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1ec]
push ecx
push ebx
push edx
mov dword [esp + 0x40], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
inc ebx
cmp esi, 0x103
je 0x657699
cmp esi, ebp
jne 0x65760c
cmp dword [esp + 0x20], ebp
je 0x6574f0
movsx eax, byte [esp + 0x1d8]
push eax
call fcn.006978f7
add esp, 4
test eax, eax
je 0x6574f0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0x1e4]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6574f0
mov edx, dword [esp + 0x10]
cmp edx, ebp
je 0x6574f0
mov ecx, 0x7d
lea edi, [esp + 0x2e0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2e4]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
lea eax, [esp + 0x48]
push eax
push edx
mov dword [esp + 0x3c], 0x1f3
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebp
jne 0x657601
cmp dword [esp + 0x1c], 1
jne 0x657601
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x2e4]
push edx
call fcn.006968ed
add esp, 8
test eax, eax
je 0x65762d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x6574f0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0xac]
push edx
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x65768e
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x65768e
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
call fcn.006572b0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x338
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x325
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret