Function at 0x3001033b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [eax], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
je 0x30010384
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.3000b4bd
test eax, eax
je 0x30010384
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x3001038b
xor eax, eax
jmp 0x3001052a
push edi
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyA]
test eax, eax
jne 0x3001051f
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x300103bb
mov dword [ebp - 4], eax
inc dword [ebp - 4]
push ebx
mov ebx, 0x106
push ebx
push dword [ebp - 0x28]
call fcn.3001e0d5
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x3001050e
push esi
push ebx
push dword [ebp - 4]
call fcn.3001e0d5
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x300104f3
mov esi, 0x8000
push ebx
push esi
call fcn.3001e0d5
cmp eax, edi
mov dword [ebp - 8], eax
je 0x300104f3
push dword [ebp + 8]
mov dword [ebp - 0x34], esi
push 0x30010334
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push dword [ebp - 8]
call fcn.3001f574
cmp dword [ebp - 0x30], edi
mov dword [ebp - 0x38], eax
mov dword [ebp + 8], edi
jbe 0x300104c1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegEnumValueA]
test eax, eax
jne 0x300104b2
cmp dword [ebp - 0x10], edi
jne 0x30010492
mov edx, 0x3000187c
or ecx, 0xffffffff
mov edi, edx
push edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.3001f574
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
call fcn.3000ff7a
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jb 0x30010430
mov esi, dword [ebp + 0xc]
cmp dword [esi], edi
jne 0x300104dc
push ebx
push 0x400
push 0xa
push 4
push esi
call fcn.30020fbf
test eax, eax
je 0x300104f3
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.30021153
cmp eax, 0xffffffff
je 0x300104f3
mov dword [ebp - 0x18], 1
push dword [ebp - 0x14]
call fcn.3001e106
cmp dword [ebp - 0xc], edi
pop esi
je 0x30010509
push dword [ebp - 0xc]
call fcn.3001e106
cmp dword [ebp - 0x18], edi
jne 0x3001051b
cmp dword [ebp - 8], edi
je 0x3001051b
push dword [ebp - 8]
call fcn.3001e106
mov edi, dword [ebp - 0x18]
pop ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, edi
pop edi
leave
ret 8