Function at 0x106a39b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x688], edi
call fcn.010185f7
mov dword [ebp - 0x694], eax
test eax, eax
jl 0x106a5cb
and dword [ebp - 0x690], 0
mov esi, 0x104
push esi
xor eax, eax
lea ecx, [ebp - 0x20c]
inc eax
push ecx
push eax
mov dword [ebp - 0x680], eax
push edi
jmp 0x106a6fb
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
push 0x106a7a4
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106a417
or dword [ebx + 8], 1
jmp 0x106a6e1
push 0x106a794
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106a432
or dword [ebx + 8], 0x10
jmp 0x106a6e1
push 0x106a78c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106a44d
or dword [ebx + 8], 8
jmp 0x106a6e1
push 0x106a780
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x106a5e3
and dword [ebp - 0x684], 0
and dword [ebp - 0x68c], 0
inc dword [ebp - 0x680]
push esi
push eax
push dword [ebp - 0x680]
push dword [ebp - 0x688]
call fcn.01069ef6
test eax, eax
je 0x106a73e
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_GUIDFromStringW]
test eax, eax
lea eax, [ebp - 0x20c]
je 0x106a52b
push eax
push 0x27
lea eax, [ebp - 0x25c]
push eax
call fcn.010065a0
inc dword [ebp - 0x680]
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x680]
push dword [ebp - 0x688]
call fcn.01069ef6
test eax, eax
jne 0x106a504
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0106a2e0
test eax, eax
je 0x106a73e
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x684]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
lea eax, [ebp - 0x67c]
mov dword [ebp - 0x68c], eax
jmp 0x106a579
push 0x1065ba8
push eax
call edi
test eax, eax
jne 0x106a560
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
mov dword [ebp - 0x690], 1
push dword [ebp - 0x688]
call fcn.0106a217
mov dword [ebp - 0x684], eax
jmp 0x106a579
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x684]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
cmp dword [ebp - 0x684], 0
je 0x106a5a1
push dword [ebp - 0x684]
push dword [ebp - 0x68c]
call fcn.0107b45c
push dword [ebp - 0x684]
mov dword [ebx], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 0x690], 0
je 0x106a6e1
xor eax, eax
cmp dword [ebx], eax
jne 0x106a5c0
push ebx
push eax
push eax
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push dword [ebp - 0x694]
call fcn.0101959d
xor eax, eax
cmp dword [ebx], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 8
push 0x106a770
push eax
call edi
test eax, eax
jne 0x106a5f8
or dword [ebx + 8], 4
jmp 0x106a6e1
push 0x1065ba8
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x106a70d
push 0x106a75c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106a62c
mov dword [ebx + 4], 1
jmp 0x106a6e1
push 0x106a748
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106a67c
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
lea eax, [ebp - 0x6b4]
push dword [ebp - 0x688]
push eax
call fcn.0106a0cf
mov esi, eax
lea edi, [ebp - 0x6a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0xc]
lea esi, [ebp - 0x6a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x104
jmp 0x106a6e1
cmp dword [ebx], 0
jne 0x106a6e1
mov edi, dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [ebp - 0x68c], eax
test eax, eax
jne 0x106a6d9
push esi
lea eax, [ebp - 0x66c]
push eax
call fcn.0107ae84
test eax, eax
jl 0x106a6d9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x106a6d9
lea eax, [ebp - 0x464]
push eax
call edi
mov dword [ebp - 0x68c], eax
mov eax, dword [ebp - 0x68c]
mov dword [ebx], eax
inc dword [ebp - 0x680]
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x680]
push dword [ebp - 0x688]
call fcn.01069ef6
test eax, eax
je 0x106a5ae
jmp 0x106a3f6
mov eax, dword [ebp - 0x680]
inc eax
push eax
push dword [ebp - 0x688]
call fcn.0106a217
mov esi, eax
test esi, esi
je 0x106a735
push dword [ebx]
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [ebx], esi
jmp 0x106a5ae
cmp dword [ebx], 0
jne 0x106a5c0
xor eax, eax
jmp 0x106a5d2