Function at 0x403060
Capabilities:
Check if file exists
Get file attributes
Move file
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x10118
call fcn.00415280
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x10114], eax
push ebx
push ebp
push esi
push edi
push 0x10000
lea ebx, [esp + 0x128]
xor ebp, ebp
mov eax, ebx
push ebp
push eax
mov esi, ecx
mov edi, 1
call fcn.00414e60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40313a
test al, 1
je 0x403141
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403141
push 0x40
push str.SetFileAttributes
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
add esp, 0xc
mov word [0x435370], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x4352ec], eax
je 0x40310b
push 0x104
push esi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x2ce
xor eax, eax
jmp 0x40335e
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], edi
jne 0x40334a
push 0x104
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x4031ec
push 0x40
push 0x429d88
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
add esp, 0xc
mov word [0x435370], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x4352ec], eax
je 0x4031b6
push 0x104
push esi
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x2df
xor eax, eax
jmp 0x40335e
push str.wininit.ini
push 0x7fff
lea edx, [esp + 0x12c]
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0x7ffd
jne 0x40328d
push 0x40
push str.GetPrivateProfileSection
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
add esp, 0xc
mov word [0x435370], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4352ec], eax
push 0x104
lea eax, [esp + 0x128]
push eax
push 0x435370
call fcn.0040ead2
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x435578
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0x18
mov word [0x43577e], bp
mov dword [0x435780], 0x2e9
xor eax, eax
jmp 0x40335e
cmp word [esp + 0x124], bp
je 0x4032a7
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x403297
cmp word [ebx], bp
jne 0x403297
mov eax, 0x429e08
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x4032b0
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4032c4
mov edx, dword [0x429e10]
mov eax, esi
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4032e0
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4032f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esp, [esp]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x403310
push str.wininit.ini
lea ecx, [esp + 0x128]
push ecx
push str.rename
mov word [ebx], bp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
test eax, eax
je 0x40313a
call fcn.0040e2e0
mov eax, 1
jmp 0x40335e
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40313a
mov eax, edi
mov ecx, dword [esp + 0x10124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x10118
ret