Function at 0x106d127
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 0x106d357
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 0x106d487
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
push 0x106d530
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d1a3
or dword [ebx + 8], 1
jmp 0x106d46d
push 0x106d520
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d1be
or dword [ebx + 8], 0x10
jmp 0x106d46d
push 0x106d518
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d1d9
or dword [ebx + 8], 8
jmp 0x106d46d
push 0x106d50c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x106d36f
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.0106cc7e
test eax, eax
je 0x106d4ca
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 0x106d2b7
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.0106cc7e
test eax, eax
jne 0x106d290
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0106d06c
test eax, eax
je 0x106d4ca
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 0x106d305
push 0x10689a0
push eax
call edi
test eax, eax
jne 0x106d2ec
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
mov dword [ebp - 0x690], 1
push dword [ebp - 0x688]
call fcn.0106cf9f
mov dword [ebp - 0x684], eax
jmp 0x106d305
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 0x106d32d
push dword [ebp - 0x684]
push dword [ebp - 0x68c]
call fcn.0107c770
push dword [ebp - 0x684]
mov dword [ebx], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 0x690], 0
je 0x106d46d
xor eax, eax
cmp dword [ebx], eax
jne 0x106d34c
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 0x106d4fc
push eax
call edi
test eax, eax
jne 0x106d384
or dword [ebx + 8], 4
jmp 0x106d46d
push 0x10689a0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x106d499
push 0x106d4e8
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d3b8
mov dword [ebx + 4], 1
jmp 0x106d46d
push 0x106d4d4
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x106d408
inc dword [ebp - 0x680]
push dword [ebp - 0x680]
lea eax, [ebp - 0x6b4]
push dword [ebp - 0x688]
push eax
call fcn.0106ce57
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 0x106d46d
cmp dword [ebx], 0
jne 0x106d46d
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 0x106d465
push esi
lea eax, [ebp - 0x66c]
push eax
call fcn.0107c1c3
test eax, eax
jl 0x106d465
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 0x106d465
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.0106cc7e
test eax, eax
je 0x106d33a
jmp 0x106d182
mov eax, dword [ebp - 0x680]
inc eax
push eax
push dword [ebp - 0x688]
call fcn.0106cf9f
mov esi, eax
test esi, esi
je 0x106d4c1
push dword [ebx]
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [ebx], esi
jmp 0x106d33a
cmp dword [ebx], 0
jne 0x106d34c
xor eax, eax
jmp 0x106d35e