Function at 0x1008061
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xf8], esi
mov dword [ebp - 0xc], ebx
je 0x1016b5b
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
xor edi, edi
inc edi
push edi
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
test eax, eax
jl 0x10108e3
movzx eax, byte [ebp - 1]
xor esi, esi
sub eax, esi
je 0x1010773
dec eax
jne 0x10107b7
cmp dword [ebp - 8], esi
je 0x10108e3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_IStream_ReadPidl]
test eax, eax
jl 0x10108e3
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call fcn.010104a7
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
test esi, esi
je 0x10108e3
cmp byte [ebp - 1], 2
jne 0x1010650
mov ecx, dword [ebp - 0x18]
call fcn.01007f8a
mov ecx, dword [ebp - 8]
and dword [ebp - 0x18], 0
test ecx, ecx
je 0x10106e0
call fcn.01007f8a
and dword [ebp - 8], 0
mov dword [ebx + 0xc], edi
inc dword [ebp - 0x14]
add ebx, 0x1c
cmp dword [ebp - 0x14], 6
jae 0x10108d7
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
push edi
lea esi, [esi*8 + 0x1007fd0]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10108e3
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
call fcn.0100802f
test eax, eax
je 0x10106e3
push 4
mov ecx, ebx
call fcn.010079b8
test eax, eax
je 0x10108e3
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
test eax, eax
jl 0x10108e3
movzx eax, byte [ebp - 2]
cmp eax, dword [esi]
jne 0x10108e3
push dword [edi]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x2c]
call fcn.0100b57a
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x1010650
jmp 0x10108e3
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x1010782
call fcn.01007f8a
mov dword [ebp - 8], esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_IStream_ReadPidl]
test eax, eax
jl 0x10108e3
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0100b57a
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 8], 0
jmp 0x10106b8
dec eax
je 0x10106be
jmp 0x10108e3
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], 1
jmp 0x10108f1
mov ebx, dword [ebp - 0xc]
push 6
lea esi, [ebx + 0x38]
pop edi
jmp 0x1028674
mov ecx, dword [ebp - 8]
test ecx, ecx
pop edi
jne 0x1028696
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xf8], 1
jmp 0x1008081
push esi
push 0x1014480
push 0x1016bb0
push SysReAllocString
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x1010906
push edi
push 4
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
test eax, eax
jl 0x10108e6
cmp dword [ebp - 0x24], 9
jne 0x10108e6
mov dword [ebp - 0x14], esi
add ebx, 0x38
jmp 0x10106f3
mov ecx, esi
call fcn.01011772
add esi, 0x1c
dec edi
jne 0x1028674
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10108f1
call fcn.01007f8a
jmp 0x10108f1
call fcn.01007f8a
jmp 0x10108fd