Function at 0x40122d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.0041a6e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4013df
cmp ebx, 0xe
ja 0x4013df
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4013df
test al, 0x10
je 0x4013df
push esi
push str._sdesktop.ini
push 0x103
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00401006
add esp, 0x14
cmp eax, 1
jl 0x40153d
push edi
xor edi, edi
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
je 0x4013ef
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4013ed
test al, 0x10
jne 0x4013ed
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x1294]
push 0
push eax
call fcn.004047b0
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x1294], edi
push 0
push eax
mov dword [ebp - 0x1290], 0x10
call fcn.004047b0
add esp, 0x18
mov dword [ebp - 0x1268], 0x104
xor edi, edi
lea eax, [ebp - 0x20c]
inc edi
mov dword [ebp - 0x126c], eax
lea eax, [ebp - 0x1294]
push edi
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetFolderCustomSettings]
test eax, eax
js 0x4013ef
cmp word [ebp - 0x20c], 0
je 0x4013ef
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ad73
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4013ae
push edi
lea eax, [ebp - 0xa1c]
push 0x400
push eax
call fcn.0040ae34
lea eax, [ebp - 0xa1c]
push eax
push edi
push str._wcslwr_s
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x121c]
push 0x800
push eax
call fcn.00401037
add esp, 0x28
lea eax, [ebp - 0x121c]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerFolderColorize.cpp
mov ecx, 0x9a
push eax
jmp 0x40154c
push 9
lea eax, [ebp - 0x208]
xor edi, edi
push str.windows_
push eax
inc edi
call fcn.0040ae9d
add esp, 0xc
test eax, eax
jne 0x4013ef
push 0x10
push str.Folcolor_abort:
push str.Folcolor_detects_this_as_possibly_a_special_folder__I.E.__Downloads____Documents____Music___etc.__and_is_not_supported_since_restoring_them_is_complex._n_nIf_you_really_want_to_set_the_color_icon_for_this_folder__manually_edit_or_just_delete_the_existing__desktop.ini___hidden__system__file_first._nAnd_then_if_you_want_to_restore_a_special_system_folder_icon_later__it_CAN_be_done_through_manual_restore_steps__Web_search_on_how_._n
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret
xor edi, edi
cmp ebx, 0xe
jne 0x4013fd
mov ecx, esi
call fcn.00401068
jmp 0x40146e
test edi, edi
je 0x401478
mov ecx, esi
call fcn.00401068
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401478
test al, 0x10
jne 0x401478
mov eax, dword [0x4248c0]
add eax, ebx
push eax
push 0x425460
push str._sFolcolor.exe__d
push 0x103
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401006
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.IconResource
push str..ShellClassInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
call fcn.00401552
jmp 0x4013de
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.004047b0
push 0x425460
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x1258], edi
push 0x4216e4
mov dword [ebp - 0x1230], eax
mov eax, 0x104
push 0x103
push eax
mov dword [ebp - 0x122c], eax
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x1254], 0x10
call fcn.00401006
mov eax, dword [0x4248c0]
add esp, 0x20
add eax, ebx
mov dword [ebp - 0x1228], eax
lea eax, [ebp - 0x1258]
push 2
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetFolderCustomSettings]
test eax, eax
jns 0x4013de
movzx esi, ax
lea edx, [ebp - 0xa1c]
mov ecx, esi
call fcn.00402f2a
push eax
push esi
push str.SHGetSetFolderCustomSettings
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x121c]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0x121c]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerFolderColorize.cpp
mov ecx, 0xdd
push eax
jmp 0x40154c
push str.Path_size_limit_error_
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerFolderColorize.cpp
mov ecx, 0x81
call fcn.00402f79
int3