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

Disassembly:
mov eax, 0x10118
call fcn.0041ec80
mov eax, dword [0x42827c]
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.004130d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402daa
test al, 1
je 0x402db1
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x402db1
push 0x40
push str.SetFileAttributes
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x42fde4], eax
je 0x402d7b
push 0x104
push esi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x29d
xor eax, eax
jmp 0x402fce
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], edi
jne 0x402fba
push 0x104
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x402e5c
push 0x40
push 0x424dd0
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [0x42fde4], eax
je 0x402e26
push 0x104
push esi
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0x2ae
xor eax, eax
jmp 0x402fce
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 0x402efd
push 0x40
push str.GetPrivateProfileSection
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], bp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42fde4], eax
push 0x104
lea eax, [esp + 0x128]
push eax
push 0x42fe68
call fcn.0040d045
push 0x104
push str....._src_sftlcmn_sftl_filesys.c
push 0x430070
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0x18
mov word [0x430276], bp
mov dword [0x430278], 0x2b8
xor eax, eax
jmp 0x402fce
cmp word [esp + 0x124], bp
je 0x402f17
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x402f07
cmp word [ebx], bp
jne 0x402f07
mov eax, 0x424e50
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x402f20
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402f34
mov edx, dword [0x424e58]
mov eax, esi
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402f50
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x402f62
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 0x402f80
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 0x402daa
call fcn.0040cdd0
mov eax, 1
jmp 0x402fce
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x402daa
mov eax, edi
mov ecx, dword [esp + 0x10124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x10118
ret