Function at 0x100ca930
Capabilities:
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024edab
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100ca96a
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
push 0xb
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.desktop.ini
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.1001a600
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov ebx, dword [ebp + 0xc]
add esp, 4
test al, al
je 0x100caa6d
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0x104
lea eax, [ebp - 0x244]
push eax
push 0x10255fec
push str.IconFile
push str..ShellClassInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100caa6d
xor eax, eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100caa16
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.1001a600
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
cmp ecx, dword [ebx + 0x10]
cmovb ecx, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x100caa49
mov edx, dword [ebx]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push ecx
cmovae eax, dword [ebp - 0x3c]
push edx
push eax
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_wchar_t_const___wchar_t_const___unsigned_int_
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.1001a5a0
test esi, esi
je 0x100caadf
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp dword [ebx + 0x14], 8
jb 0x100caa80
mov ebx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push ebx
push str.IconFile
push str..ShellClassInfo
call esi
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0x102683fc
push str.IconIndex
push str..ShellClassInfo
call esi
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x24]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x24]
or eax, 2
cmp dword [ebp - 0x10], 8
push eax
cmovae ecx, dword [ebp - 0x24]
push ecx
call esi
jmp 0x100caaeb
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100caaf5
mov eax, dword [edi]
push eax
call ebx
test al, 4
jne 0x100cab0b
cmp dword [edi + 0x14], 8
jb 0x100cab04
mov edi, dword [edi]
or eax, 4
push eax
push edi
call esi
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret