Function at 0x106d11b
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.010191d1
mov dword [ebp - 0x694], eax
test eax, eax
jl 0x106d34b
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 0x106d47b
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
push 0x106d524
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d197
or dword [ebx + 8], 1
jmp 0x106d461
push 0x106d514
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d1b2
or dword [ebx + 8], 0x10
jmp 0x106d461
push 0x106d50c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d1cd
or dword [ebx + 8], 8
jmp 0x106d461
push 0x106d500
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x106d363
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.0106cc76
test eax, eax
je 0x106d4be
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 0x106d2ab
push eax
push 0x27
lea eax, [ebp - 0x25c]
push eax
call fcn.0100665f
inc dword [ebp - 0x680]
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x680]
push dword [ebp - 0x688]
call fcn.0106cc76
test eax, eax
jne 0x106d284
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0106d060
test eax, eax
je 0x106d4be
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 0x106d2f9
push 0x1068998
push eax
call edi
test eax, eax
jne 0x106d2e0
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
mov dword [ebp - 0x690], 1
push dword [ebp - 0x688]
call fcn.0106cf97
mov dword [ebp - 0x684], eax
jmp 0x106d2f9
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 0x106d321
push dword [ebp - 0x684]
push dword [ebp - 0x68c]
call fcn.0107c5f4
push dword [ebp - 0x684]
mov dword [ebx], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 0x690], 0
je 0x106d461
xor eax, eax
cmp dword [ebx], eax
jne 0x106d340
push ebx
push eax
push eax
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push dword [ebp - 0x694]
call fcn.01019203
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.01001feb
leave
ret 8
push 0x106d4f0
push eax
call edi
test eax, eax
jne 0x106d378
or dword [ebx + 8], 4
jmp 0x106d461
push 0x1068998
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x106d48d
push 0x106d4dc
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d3ac
mov dword [ebx + 4], 1
jmp 0x106d461
push 0x106d4c8
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d3fc
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
lea eax, [ebp - 0x6b4]
push dword [ebp - 0x688]
push eax
call fcn.0106ce4f
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 0x106d461
cmp dword [ebx], 0
jne 0x106d461
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 0x106d459
push esi
lea eax, [ebp - 0x66c]
push eax
call fcn.0107c063
test eax, eax
jl 0x106d459
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 0x106d459
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.0106cc76
test eax, eax
je 0x106d32e
jmp 0x106d176
mov eax, dword [ebp - 0x680]
inc eax
push eax
push dword [ebp - 0x688]
call fcn.0106cf97
mov esi, eax
test esi, esi
je 0x106d4b5
push dword [ebx]
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [ebx], esi
jmp 0x106d32e
cmp dword [ebx], 0
jne 0x106d340
xor eax, eax
jmp 0x106d352