Function at 0x10107c20
Capabilities:
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5c9c
mov eax, dword fs:[0]
push eax
mov eax, 0x1478
call fcn.101beed0
mov eax, dword [0x1023c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10107c62
xor eax, eax
jmp 0x101082b6
lea ebx, [esi + 0x294]
mov ecx, 0x101d59cc
mov dword [ebp - 0x1480], ebx
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10107c9b
test dx, dx
je 0x10107c97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10107c9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x10107c75
xor eax, eax
jmp 0x10107ca0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10107cae
mov eax, 1
jmp 0x101082b6
lea eax, [esi + 0x8c]
mov ecx, eax
mov dword [ebp - 0x1484], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10107cc0
sub ecx, edx
sar ecx, 1
jne 0x10107ce7
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10107cd6
sub ecx, edx
sar ecx, 1
je 0x10107ca4
lea eax, [ebp - 0x448]
mov dword [ebp - 0x44c], sym.HncOfficeFramework.dll_const_CHncSHPidl::vftable
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [ebp - 0x440]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
mov word [ebp - 0x43c], ax
mov byte [ebp - 0x43a], al
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax]
push eax
lea ecx, [ebp - 0xc60]
call fcn.10001d90
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.HncFoundation.dll_HncGetWinVersion]
call ebx
cmp eax, 9
jb 0x10107d9f
lea eax, [ebp - 0x856]
push str..search_ms
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10107e22
call ebx
cmp eax, 0xa
jb 0x10107e2c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.HncFoundation.dll__HncSHIsLibraryInfoFile_4]
test eax, eax
je 0x10107dc5
mov esi, 1
jmp 0x10108262
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.HncFoundation.dll__HncSHIsHomeGroupPath_4]
test eax, eax
je 0x10107e2c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1474]
call fcn.10001d90
lea ecx, [ebp - 0x106a]
mov eax, str..library_ms
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10107e19
test dx, dx
je 0x10107e15
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10107e19
add eax, 4
add ecx, 4
test dx, dx
jne 0x10107df3
xor eax, eax
jmp 0x10107e1e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10107e2c
mov esi, 1
jmp 0x10108262
cmp dword [esi + 0x4c8], 0
je 0x101080a8
test dword [ebp + 0xc], 0x10000
je 0x101080f4
mov ecx, esi
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncShellListCtrlVL::IsInRecentFolder_void_
test eax, eax
jne 0x101080b3
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
push edi
call dword [sym.imp.HncVfs.dll_int___cdecl_HncVfsShell::GetResolveLink_struct_IHncVfsShellPidl_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____]
add esp, 8
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
cmp dword [ebp - 0x428], 0
je 0x10107ff1
test eax, eax
jne 0x10108001
mov dword [ebp - 0x1478], eax
lea ecx, [ebp - 0x1478]
mov dword [ebp - 0x147c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x50]
lea ecx, [ebp - 0x147c]
push ecx
push dword [ebp - 0x1478]
lea ecx, [esi + 0x6c]
push 0
call sym.HncOfficeFramework.dll_public:_long_int___thiscall_CHncSHPidl::ResolveLink_struct_HWND_____struct__ITEMIDLIST___struct__ITEMIDLIST___
mov ecx, dword [esi + 0x70]
mov ebx, eax
test ecx, ecx
je 0x10107ef7
push dword [ebp - 0x1478]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
push dword [ebp - 0x147c]
lea ecx, [ebp - 0x44c]
call sym.HncOfficeFramework.dll_public:_unsigned_long_int___thiscall_CHncSHPidl::GetAttributesOf_struct__ITEMIDLIST__
mov edi, eax
cmp ebx, 0x800705b4
je 0x10107f85
test ebx, ebx
je 0x10107f85
mov ecx, dword [ebp - 0x147c]
test ecx, ecx
jne 0x10107f8f
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ecx
cmovae eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x147c]
push ecx
push eax
lea ecx, [esi + 0x6c]
call sym.HncOfficeFramework.dll_public:_long_int___thiscall_CHncSHPidl::SHPathToPidlEx_unsigned_short_int_const___struct__ITEMIDLIST____struct_IShellFolder__
push dword [ebp - 0x147c]
lea ecx, [ebp - 0x44c]
call sym.HncOfficeFramework.dll_public:_unsigned_long_int___thiscall_CHncSHPidl::GetAttributesOf_struct__ITEMIDLIST__
mov edi, eax
test edi, 0x20000000
je 0x10107f85
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10107f85
and edi, 0xdfffffff
mov ecx, dword [ebp - 0x147c]
test ecx, ecx
je 0x10107fa7
mov edx, dword [esi + 0x70]
test edx, edx
je 0x10107f9d
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x14]
mov dword [ebp - 0x147c], 0
test edi, 0x20000000
jne 0x10108093
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0xc60]
push eax
call fcn.1002c680
lea ecx, [ebp - 0x438]
call fcn.100023a0
jmp 0x101080f4
cmp dword [esi + 0x4e4], 0
jge 0x1010807e
lea eax, [ebp - 0x1478]
mov dword [ebp - 0x1478], 0
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x2b4
lea eax, [ebp - 0xf14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xf14]
push 0x4009
push 0x2b4
push eax
push 0
push dword [ebp - 0x1478]
call dword [sym.imp.HncFoundation.dll__HncSHGetFileInfo_20]
mov edx, dword [ebp - 0x1478]
mov eax, dword [ebp - 0xf10]
mov dword [esi + 0x4e4], eax
test edx, edx
je 0x1010807e
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x1010807e
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x18]
cmp dword [esi + 0x4e4], eax
jne 0x10107fb3
lea ecx, [ebp - 0x438]
call fcn.100023a0
mov esi, 1
jmp 0x10108262
mov ecx, esi
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHncShellListCtrlVL::IsInRecentFolder_void_
test eax, eax
je 0x101080f4
push 0x100
lea eax, [ebp - 0x856]
push str..lnk
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x101080e1
push 0x101cfd00
lea ecx, [ebp - 0xc60]
call fcn.1002c6c0
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc60]
call fcn.1002c650
mov ecx, str..folder
lea eax, [ebp - 0x856]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10108126
test dx, dx
je 0x10108122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10108126
add eax, 4
add ecx, 4
test dx, dx
jne 0x10108100
xor eax, eax
jmp 0x1010812b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10108137
lea esi, [eax + 1]
jmp 0x10108262
mov edi, dword [ebp - 0x1480]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10108142
mov ebx, dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
sub ecx, edx
sar ecx, 1
je 0x101081d7
push 0x101d62d8
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1010817f
push edi
lea eax, [ebp - 0xa56]
push eax
call ebx
test eax, eax
jne 0x101081d7
jmp 0x10108260
lea ecx, [ebp - 0xc5c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10108190
sub ecx, edx
lea edx, [ebp - 0xc56]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x101081b0
sub edx, esi
sar edx, 1
push edi
lea eax, [edx + ecx]
lea ecx, [ebp - 0x656]
lea eax, [ecx + eax*2]
push eax
call ebx
test eax, eax
je 0x10108260
mov ecx, dword [ebp - 0x1484]
lea edx, [ebp - 0x420]
call fcn.10119e20
mov esi, eax
test esi, esi
je 0x10108260
nop
lea ecx, [ebp - 0xc5c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10108200
sub ecx, edx
lea edx, [ebp - 0xc56]
sar ecx, 1
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10108220
sub edx, edi
lea eax, [ebp - 0x420]
sar edx, 1
push eax
lea eax, [edx + ecx]
lea ecx, [ebp - 0x656]
lea eax, [ecx + eax*2]
push eax
call ebx
test eax, eax
jne 0x10107e22
lea edx, [ebp - 0x420]
mov ecx, esi
call fcn.10119e20
mov esi, eax
test esi, esi
jne 0x101081f0
xor esi, esi
mov dword [ebp - 0xc60], 0x101cfcac
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x44c], sym.HncOfficeFramework.dll_const_CHncSHPidl::vftable
test edx, edx
je 0x10108294
mov eax, dword [ebp - 0x448]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x448]
test ecx, ecx
je 0x101082a4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x444]
test edx, edx
je 0x101082b4
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8