Function at 0x1004b0f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor esi, esi
push esi
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
call edi
cmp eax, esi
jne 0x1004db5
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x10]
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1004db5
mov eax, dword [ebp - 8]
inc dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_calloc]
push 2
push eax
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
jne 0x1004b91
mov dword [ebp - 4], 8
jmp 0x1004db1
push 4
push dword [ebp - 8]
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x1004c2c
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x1004c02
cmp dword [ebp - 4], esi
jne 0x1004bec
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov ecx, edi
imul ecx, dword [ebp - 0x18]
push esi
push esi
lea ecx, [edx + ecx*2]
lea eax, [eax + edi*4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
push esi
push esi
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
cmp edi, dword [ebp - 8]
mov dword [ebp - 4], eax
jb 0x1004bac
cmp eax, esi
je 0x1004c02
push dword [ebp - 0x24]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x10]
call esi
pop ecx
jmp 0x1004db0
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x1c]
imul eax, dword [ebp - 0x1c]
push 2
push eax
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x1004c2c
push 4
push dword [ebp - 0xc]
call ebx
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
jne 0x1004c38
mov dword [ebp - 4], 8
jmp 0x1004d84
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004c9b
cmp dword [ebp - 4], esi
jne 0x1004c7b
mov ecx, dword [ebp - 0x20]
mov eax, edi
imul eax, dword [ebp - 0x1c]
push esi
push esi
lea eax, [ecx + eax*2]
mov dword [ebx + edi*4], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + edi*4]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jb 0x1004c3f
cmp eax, esi
je 0x1004c9b
push dword [ebp - 0x24]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x20]
call esi
push ebx
call esi
add esp, 0x10
jmp 0x1004db1
cmp dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
jbe 0x1004d06
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], esi
jne 0x1004d06
cmp dword [edi], esi
je 0x1004cf8
xor ebx, ebx
cmp dword [ebp - 0xc], esi
jbe 0x1004cf8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
cmp eax, esi
je 0x1004ccf
push eax
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1004cd7
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x1004cb6
jmp 0x1004cf8
push dword [ebp + 0x18]
push dword [edi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004923
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi], esi
mov dword [eax + ebx*4], esi
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add edi, 4
cmp eax, dword [ebp - 8]
jb 0x1004ca6
xor ebx, ebx
xor edi, edi
inc ebx
cmp dword [ebp - 8], esi
jbe 0x1004d46
cmp dword [ebp - 4], esi
jne 0x1004d46
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004d40
cmp dword [ebp + 0x18], ebx
je 0x1004d2a
cmp dword [ebp + 0x18], 3
jne 0x1004d3a
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004a8b
mov dword [ebp - 4], eax
mov dword [0x1008040], ebx
inc edi
cmp edi, dword [ebp - 8]
jb 0x1004d10
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004d84
cmp dword [ebp - 4], esi
jne 0x1004d84
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004d7e
cmp dword [ebp + 0x18], ebx
je 0x1004d67
cmp dword [ebp + 0x18], 3
jne 0x1004d78
push 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01004a8b
mov dword [ebp - 4], eax
mov dword [0x1008040], ebx
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1004d4d
push dword [ebp - 0x24]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
cmp dword [ebp - 0x10], esi
pop ecx
je 0x1004d9b
push dword [ebp - 0x10]
call edi
pop ecx
cmp dword [ebp - 0x20], esi
je 0x1004da6
push dword [ebp - 0x20]
call edi
pop ecx
cmp dword [ebp - 0x14], esi
je 0x1004db1
push dword [ebp - 0x14]
call edi
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0x14