Function at 0x10047d8
Capabilities:
Query or enumerate registry value

Disassembly:
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 0x1004a7c
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 0x1004a7c
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 0x1004858
mov dword [ebp - 4], 8
jmp 0x1004a78
push 4
push dword [ebp - 8]
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x10048f3
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x10048c9
cmp dword [ebp - 4], esi
jne 0x10048b3
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 0x1004873
cmp eax, esi
je 0x10048c9
push dword [ebp - 0x24]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x10]
call esi
pop ecx
jmp 0x1004a77
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 0x10048f3
push 4
push dword [ebp - 0xc]
call ebx
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
jne 0x10048ff
mov dword [ebp - 4], 8
jmp 0x1004a4b
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004962
cmp dword [ebp - 4], esi
jne 0x1004942
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 0x1004906
cmp eax, esi
je 0x1004962
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 0x1004a78
cmp dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
jbe 0x10049cd
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], esi
jne 0x10049cd
cmp dword [edi], esi
je 0x10049bf
xor ebx, ebx
cmp dword [ebp - 0xc], esi
jbe 0x10049bf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
cmp eax, esi
je 0x1004996
push eax
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x100499e
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x100497d
jmp 0x10049bf
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.010045fa
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 0x100496d
xor ebx, ebx
xor edi, edi
inc ebx
cmp dword [ebp - 8], esi
jbe 0x1004a0d
cmp dword [ebp - 4], esi
jne 0x1004a0d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004a07
cmp dword [ebp + 0x18], ebx
je 0x10049f1
cmp dword [ebp + 0x18], 3
jne 0x1004a01
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100475b
mov dword [ebp - 4], eax
mov dword [0x1007020], ebx
inc edi
cmp edi, dword [ebp - 8]
jb 0x10049d7
xor edi, edi
cmp dword [ebp - 0xc], esi
jbe 0x1004a4b
cmp dword [ebp - 4], esi
jne 0x1004a4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1004a45
cmp dword [ebp + 0x18], ebx
je 0x1004a2e
cmp dword [ebp + 0x18], 3
jne 0x1004a3f
push 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0100475b
mov dword [ebp - 4], eax
mov dword [0x1007020], ebx
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1004a14
push dword [ebp - 0x24]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
cmp dword [ebp - 0x10], esi
pop ecx
je 0x1004a62
push dword [ebp - 0x10]
call edi
pop ecx
cmp dword [ebp - 0x20], esi
je 0x1004a6d
push dword [ebp - 0x20]
call edi
pop ecx
cmp dword [ebp - 0x14], esi
je 0x1004a78
push dword [ebp - 0x14]
call edi
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0x14