Function at 0x658880
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 0x658b1b
cmp edx, 0xa
jl 0x658b1b
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.0064ef90
mov edx, 0x64
lea ecx, [esp + 0xa0]
call fcn.00651600
mov edx, 0x64
lea ecx, [esp + 0x38]
call fcn.00651a50
mov edx, 0x64
lea ecx, [esp + 0x170]
call fcn.00651510
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 0x658b0e
cmp dword [esp + 0x14], ebp
je 0x658b0e
lea esp, [esp]
cmp ebx, 0xff
jae 0x658af9
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 0x658af9
cmp esi, ebp
jne 0x658a6c
cmp dword [esp + 0x20], ebp
je 0x658950
movsx eax, byte [esp + 0x1d8]
push eax
call fcn.00698d57
add esp, 4
test eax, eax
je 0x658950
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 0x658950
mov edx, dword [esp + 0x10]
cmp edx, ebp
je 0x658950
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 0x658a61
cmp dword [esp + 0x1c], 1
jne 0x658a61
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x2e4]
push edx
call fcn.00697d4d
add esp, 8
test eax, eax
je 0x658a8d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x658950
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 0x658aee
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x658aee
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
call fcn.00658710
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