Function at 0x403110
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411bd3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 0xc
jb 0x4034d8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0xc
cmovae eax, dword [ebp + 8]
push str.desktop.ini
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040ffb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push 0x7b
mov dword [ebp - 0x44], 0
push str._.ShellClassInfo__nCLSID645FF040_5081_101B_9F08_00AA002F954E_nLocalizedResourceName__SystemRoot_system32shell32.dll__8964
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.0040f0c0
push 0
push 2
push 4
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 3
cmovae eax, dword [ebp - 0x2c]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031e3
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
push str._.ShellClassInfo__nCLSID645FF040_5081_101B_9F08_00AA002F954E_nLocalizedResourceName__SystemRoot_system32shell32.dll__8964
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x98], 0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403220
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.0040f0c0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
push 0x4e20
cmovae esi, dword [ebp - 0x98]
call fcn.00410dda
push 0x2710
push esi
push eax
mov dword [edi + 0x180], eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov esi, dword [edi + 0x180]
add esp, 0x10
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x14], esi
cmp edx, 0x10
jb 0x4032b7
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4032ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4032ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
push dword [edi + 0x28]
mov dword [ebp - 0x88], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call esi
push dword [edi + 0x2c]
test eax, eax
push dword [ebp - 0x14]
setne al
mov byte [edi + 0x168], al
call esi
push dword [edi + 0x30]
test eax, eax
push dword [ebp - 0x14]
setne al
mov byte [edi + 0x168], al
call esi
push dword [ebp - 0x14]
test eax, eax
setne al
mov byte [edi + 0x168], al
call fcn.00410a31
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x98]
push eax
call fcn.0040e880
mov byte [ebp - 4], 4
lea esi, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
push 0x4e20
cmovae esi, dword [ebp - 0x98]
call fcn.00410dda
push 0x2710
push esi
push eax
mov dword [edi + 0x180], eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edx, dword [ebp - 0x84]
add esp, 0x10
mov esi, dword [edi + 0x180]
cmp edx, 0x10
jb 0x4033a3
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403399
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
push 2
push esi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0xf
push eax
mov byte [ebp - 0x98], 0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x54], 0
call dword [sym.imp.SHELL32.dll_SHGetSetFolderCustomSettings]
push esi
call fcn.00410a31
mov edx, dword [ebp - 0x30]
add esp, 4
cmp edx, 0x10
jb 0x403443
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034ab
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x403473
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034ab
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x4034bb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4034b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4034b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x18
call fcn.00401460
int3