Function at 0x658410
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 0x6586ab
cmp edx, 0xa
jl 0x6586ab
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.0064eb20
mov edx, 0x64
lea ecx, [esp + 0xa0]
call fcn.00651190
mov edx, 0x64
lea ecx, [esp + 0x38]
call fcn.006515e0
mov edx, 0x64
lea ecx, [esp + 0x170]
call fcn.006510a0
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 0x65869e
cmp dword [esp + 0x14], ebp
je 0x65869e
lea esp, [esp]
cmp ebx, 0xff
jae 0x658689
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 0x658689
cmp esi, ebp
jne 0x6585fc
cmp dword [esp + 0x20], ebp
je 0x6584e0
movsx eax, byte [esp + 0x1d8]
push eax
call fcn.006988e7
add esp, 4
test eax, eax
je 0x6584e0
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 0x6584e0
mov edx, dword [esp + 0x10]
cmp edx, ebp
je 0x6584e0
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 0x6585f1
cmp dword [esp + 0x1c], 1
jne 0x6585f1
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x2e4]
push edx
call fcn.006978dd
add esp, 8
test eax, eax
je 0x65861d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x6584e0
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 0x65867e
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x65867e
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
call fcn.006582a0
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