Function at 0x657eb0
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 0x65812e
cmp edx, 0xa
jl 0x65812e
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.00650d00
mov edx, 0x64
lea ecx, [esp + 0x30]
call fcn.00650f20
mov edx, 0x64
lea ecx, [esp + 0x168]
call fcn.006513c0
mov edx, 0x64
lea ecx, [esp + 0x100]
call fcn.00651470
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 0x658120
cmp dword [esp + 0x10], ebx
je 0x658120
jmp 0x657f80
cmp ebx, 0xff
jae 0x6580e6
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 0x6580e6
test esi, esi
jne 0x6580da
mov eax, dword [esp + 0x14]
test eax, eax
je 0x657f80
cmp eax, 0x106
jb 0x657ff8
mov dword [esp + 0x14], 0x105
lea eax, [esp + 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x658000
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1d8]
push ecx
call fcn.00698fb7
add esp, 0xc
test eax, eax
jne 0x657f80
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 0x657f80
mov esi, dword [esp + 0xc]
test esi, esi
je 0x657f80
cmp dword [ebp + 8], 1
jne 0x658100
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 0x6580cf
cmp dword [esp + 0x18], 1
jne 0x6580cf
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x2dc]
push ecx
call fcn.00697d4d
add esp, 8
test eax, eax
je 0x6580fc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x657f80
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.00657d70
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x657f80
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