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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edx
mov edi, 0x80070057
cmp eax, esi
je 0x10129de
cmp edx, esi
je 0x10129de
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 9
lea edx, [ebp - 0x18]
push edx
stosd dword es:[edi], eax
mov eax, dword [ecx]
mov ebx, 0x1001310
push ebx
call dword [eax + 4]
mov edi, eax
mov eax, dword [ebp - 0x5c]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
add eax, eax
push eax
push esi
push dword [ebp - 0x60]
call fcn.010059c0
add esp, 0xc
cmp edi, esi
jne 0x10129dd
or dword [ebp - 0x64], 0xffffffff
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x18]
push 0x1002b20
push eax
call fcn.01005a3f
add esp, 0xc
cmp eax, 1
je 0x10128a6
mov edi, 0x80004005
jmp 0x10129dd
lea eax, [ebp - 0x48]
push eax
push 0x20019
push esi
push 0x1001520
push 0x80000002
mov dword [ebp - 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10129d5
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10129a0
cmp dword [ebp - 0x4c], esi
jbe 0x10129a0
or dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0x4c], esi
jbe 0x101299d
push 0xa
pop ecx
push esi
push esi
push esi
xor eax, eax
push esi
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x44], esi
push dword [ebp - 0x48]
mov dword [ebp - 0x68], 0x14
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x101298e
lea eax, [ebp - 0x44]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101298e
or dword [ebp - 0x54], 0xffffffff
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0x10
push ebx
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x58], 4
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1012985
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x64]
je 0x10129ab
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x4c]
jb 0x101290d
xor edi, edi
inc edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10129dd
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x60]
call fcn.01003464
mov edi, eax
cmp edi, esi
jl 0x10129ca
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
jmp 0x10129a0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10129a0
cmp eax, 2
jne 0x10129dd
xor edi, edi
inc edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0100597b
leave
ret 0x10