Function at 0x1017b2a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1017cf0
cmp dword [ebp + 0xc], edi
je 0x1017cf0
cmp dword [ebp + 0x10], edi
je 0x1017cf0
mov eax, dword [ebp - 0x10]
add eax, eax
xor ebx, ebx
cmp dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1017cf9
mov esi, dword [sym.imp.msvcrt.dll_malloc]
add eax, 2
push eax
call esi
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x1017cf0
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call esi
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1017bc1
push ebx
call dword [sym.imp.msvcrt.dll_free]
jmp 0x1017cef
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 4]
push eax
call esi
mov esi, eax
cmp esi, edi
pop ecx
jne 0x1017be9
mov edi, dword [sym.imp.msvcrt.dll_free]
push ebx
call edi
push dword [ebp - 0xc]
call edi
pop ecx
jmp 0x1017cef
mov ecx, dword [ebp - 4]
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
or eax, 0xffffffff
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
test edi, edi
jbe 0x1017ca1
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [edi - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1017ca1
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x1017c9a
cmp dword [ebp - 0x18], 1
je 0x1017c6d
cmp dword [ebp - 0x18], 2
jne 0x1017c7f
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1017ccd
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov dword [esi + edi*4], eax
dec edi
jne 0x1017c11
push dword [ebp - 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jb 0x1017cdf
mov ecx, dword [esi + eax*4]
cmp ecx, dword [ebp - 8]
je 0x1017cc3
inc eax
cmp eax, dword [ebp - 4]
jbe 0x1017cb5
cmp eax, dword [ebp - 4]
ja 0x1017cdf
inc dword [ebp - 8]
jmp 0x1017cad
push dword [ebp - 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
pop ecx
pop ecx
jmp 0x1017d5d
push esi
call edi
cmp dword [ebp - 8], 0x1869f
pop ecx
jle 0x1017cff
push ebx
call edi
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov edi, dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
shl eax, 1
pop ecx
lea ecx, [eax + 0xc]
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
jae 0x1017d61
test ebx, ebx
je 0x1017d22
push ebx
call edi
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xc
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1017cf0
mov eax, dword [ebp - 4]
mov ecx, eax
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 4]
shr eax, 1
push 0xa
lea eax, [ebx + eax*2]
push eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
mov eax, ebx
jmp 0x1017cf2
test ebx, ebx
je 0x1017d5d
jmp 0x1017d36