Function at 0x1004b1a
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 0x1004dc0
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 0x1004dc0
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 0x1004b9c
mov dword [ebp - 4], 8
jmp 0x1004dbc
push 4
push dword [ebp - 8]
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x1004c37
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x1004c0d
cmp dword [ebp - 4], esi
jne 0x1004bf7
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 0x1004bb7
cmp eax, esi
je 0x1004c0d
push dword [ebp - 0x24]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x10]
call esi
pop ecx
jmp 0x1004dbb
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 0x1004c37
push 4
push dword [ebp - 0xc]
call ebx
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
jne 0x1004c43
mov dword [ebp - 4], 8
jmp 0x1004d8f
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004ca6
cmp dword [ebp - 4], esi
jne 0x1004c86
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 0x1004c4a
cmp eax, esi
je 0x1004ca6
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 0x1004dbc
cmp dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
jbe 0x1004d11
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], esi
jne 0x1004d11
cmp dword [edi], esi
je 0x1004d03
xor ebx, ebx
cmp dword [ebp - 0xc], esi
jbe 0x1004d03
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
cmp eax, esi
je 0x1004cda
push eax
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1004ce2
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x1004cc1
jmp 0x1004d03
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.0100492e
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 0x1004cb1
xor ebx, ebx
xor edi, edi
inc ebx
cmp dword [ebp - 8], esi
jbe 0x1004d51
cmp dword [ebp - 4], esi
jne 0x1004d51
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004d4b
cmp dword [ebp + 0x18], ebx
je 0x1004d35
cmp dword [ebp + 0x18], 3
jne 0x1004d45
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004a96
mov dword [ebp - 4], eax
mov dword [0x1008040], ebx
inc edi
cmp edi, dword [ebp - 8]
jb 0x1004d1b
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004d8f
cmp dword [ebp - 4], esi
jne 0x1004d8f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004d89
cmp dword [ebp + 0x18], ebx
je 0x1004d72
cmp dword [ebp + 0x18], 3
jne 0x1004d83
push 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01004a96
mov dword [ebp - 4], eax
mov dword [0x1008040], ebx
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1004d58
push dword [ebp - 0x24]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
cmp dword [ebp - 0x10], esi
pop ecx
je 0x1004da6
push dword [ebp - 0x10]
call edi
pop ecx
cmp dword [ebp - 0x20], esi
je 0x1004db1
push dword [ebp - 0x20]
call edi
pop ecx
cmp dword [ebp - 0x14], esi
je 0x1004dbc
push dword [ebp - 0x14]
call edi
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0x14