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

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 0x30010250
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.3000b447
test eax, eax
je 0x30010250
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 0x30010257
xor eax, eax
jmp 0x300103f6
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 0x300103eb
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x30010287
mov dword [ebp - 4], eax
inc dword [ebp - 4]
push ebx
mov ebx, 0x106
push ebx
push dword [ebp - 0x28]
call fcn.3001df79
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x300103da
push esi
push ebx
push dword [ebp - 4]
call fcn.3001df79
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x300103bf
mov esi, 0x8000
push ebx
push esi
call fcn.3001df79
cmp eax, edi
mov dword [ebp - 8], eax
je 0x300103bf
push dword [ebp + 8]
mov dword [ebp - 0x34], esi
push 0x30010200
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push dword [ebp - 8]
call fcn.3001f3a8
cmp dword [ebp - 0x30], edi
mov dword [ebp - 0x38], eax
mov dword [ebp + 8], edi
jbe 0x3001038d
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 0x3001037e
cmp dword [ebp - 0x10], edi
jne 0x3001035e
mov edx, 0x30001874
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.3001f3a8
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.3000fe46
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jb 0x300102fc
mov esi, dword [ebp + 0xc]
cmp dword [esi], edi
jne 0x300103a8
push ebx
push 0x400
push 0xa
push 4
push esi
call fcn.30020def
test eax, eax
je 0x300103bf
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.30020f83
cmp eax, 0xffffffff
je 0x300103bf
mov dword [ebp - 0x18], 1
push dword [ebp - 0x14]
call fcn.3001dfaa
cmp dword [ebp - 0xc], edi
pop esi
je 0x300103d5
push dword [ebp - 0xc]
call fcn.3001dfaa
cmp dword [ebp - 0x18], edi
jne 0x300103e7
cmp dword [ebp - 8], edi
je 0x300103e7
push dword [ebp - 8]
call fcn.3001dfaa
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