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

Disassembly:
mov eax, 0x10118
call fcn.00416c80
mov eax, dword [0x42f278]
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.00416890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403eba
test al, 1
je 0x403ec1
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403ec1
push 0x40
push str.SetFileAttributes
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
add esp, 0xc
mov word [0x4372f0], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x4372f0], eax
je 0x403e8b
push 0x104
push esi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
add esp, 0xc
mov word [0x437706], bp
mov dword [0x4372f4], 0x2ce
xor eax, eax
jmp 0x4040de
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], edi
jne 0x4040ca
push 0x104
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x403f6c
push 0x40
push 0x42bd90
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
add esp, 0xc
mov word [0x4372f0], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x4372f0], eax
je 0x403f36
push 0x104
push esi
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
add esp, 0xc
mov word [0x437706], bp
mov dword [0x4372f4], 0x2df
xor eax, eax
jmp 0x4040de
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 0x40400d
push 0x40
push str.GetPrivateProfileSection
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
add esp, 0xc
mov word [0x4372f0], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4372f0], eax
push 0x104
lea eax, [esp + 0x128]
push eax
push 0x4372f8
call fcn.00410502
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x437500
mov word [0x4374fe], bp
call fcn.00410502
add esp, 0x18
mov word [0x437706], bp
mov dword [0x4372f4], 0x2e9
xor eax, eax
jmp 0x4040de
cmp word [esp + 0x124], bp
je 0x404027
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x404017
cmp word [ebx], bp
jne 0x404017
mov eax, 0x42be10
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x404030
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404044
mov edx, dword [0x42be18]
mov eax, esi
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404060
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x404072
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 0x404090
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 0x403eba
call fcn.0040fd10
mov eax, 1
jmp 0x4040de
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x403eba
mov eax, edi
mov ecx, dword [esp + 0x10124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0x10118
ret