Function at 0x108d326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4020
call fcn.0106f850
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc eax
cmp dword [edi], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
mov esi, 0x400
jne 0x108d361
push eax
push esi
call dword [sym.imp.msvcrt.dll_calloc]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
mov dword [eax], esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ebx, dword [edi]
mov dword [ebp - 8], eax
jmp 0x108d391
cmp word [ebx], 0
je 0x108d395
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
push 0xfffffffffffffffe
shl eax, 1
pop ecx
sub ecx, eax
add dword [ebp - 8], ecx
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
jne 0x108d36d
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x108d3b2
push 1
push esi
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
je 0x108d3fb
jmp 0x108d3cb
mov eax, dword [ebp - 4]
cmp word [eax], 0
je 0x108d3fb
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push 0xfffffffffffffffe
shl eax, 1
pop ecx
push dword [ebp - 4]
sub ecx, eax
add dword [ebp - 0xc], ecx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 4], eax
jne 0x108d3c8
mov eax, 0x1000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4020]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2020]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x18]
test eax, eax
jne 0x108d5ac
cmp word [ebp - 0x20], ax
je 0x108d48a
mov eax, dword [edi]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x108d512
jmp 0x108d44f
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
je 0x108d512
lea ecx, [ebp - 0x2020]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x108d3fb
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x108d44c
jmp 0x108d512
mov eax, dword [ebp - 0x1c]
add eax, eax
cmp eax, dword [ebp - 8]
jb 0x108d4df
mov eax, dword [ebp + 0x18]
add dword [eax], esi
push dword [eax]
push dword [edi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
je 0x108d5ac
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp word [ebx], 0
je 0x108d4df
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call edi
push 0xfffffffffffffffe
shl eax, 1
pop ecx
sub ecx, eax
add dword [ebp - 8], ecx
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
pop ecx
pop ecx
jne 0x108d4b9
lea eax, [ebp - 0x2020]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x2020]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
and word [ebx], 0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0xfffffffffffffffe
add eax, eax
pop ecx
sub ecx, eax
add dword [ebp - 8], ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x108d56c
mov edi, dword [ebp + 0x10]
add dword [edi], esi
push dword [edi]
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x108d5ac
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
jmp 0x108d543
mov esi, dword [ebp - 4]
cmp word [esi], 0
je 0x108d56c
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push esi
call edi
push 0xfffffffffffffffe
shl eax, 1
pop ecx
sub ecx, eax
add dword [ebp - 0xc], ecx
push esi
call edi
lea esi, [esi + eax*2 + 2]
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 4], esi
jne 0x108d540
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x4020]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
shr eax, 1
lea eax, [ecx + eax*2 - 2]
and word [eax], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
mov esi, 0x400
jmp 0x108d3fb
pop edi
pop esi
pop ebx
leave
ret 0x14