Function at 0x981e8
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00013f54
mov eax, dword [ebp - 8]
call fcn.00013f54
xor eax, eax
push ebp
push 0x98551
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x98568
call fcn.00090534
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00018898
test al, al
je 0x9825a
push 0x80
mov eax, dword [ebp - 8]
call fcn.00013f64
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, 0x20000
call fcn.00018398
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x9850b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00013f64
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0x1c], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00013f64
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x9830f
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0x28], eax
push 0x98580
push dword [ebp - 4]
push 0x98594
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00013e60
mov eax, dword [ebp - 0x44]
call fcn.00090534
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x28]
call fcn.00090778
mov eax, dword [ebp - 0x48]
call fcn.00090534
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x985a8
call fcn.000906f0
call fcn.00013674
jmp 0x9851c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetFileTime
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00013f64
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x9839d
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0x28], eax
push 0x98580
push dword [ebp - 4]
push 0x98594
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00013e60
mov eax, dword [ebp - 0x54]
call fcn.00090534
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x28]
call fcn.00090778
mov eax, dword [ebp - 0x58]
call fcn.00090534
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
call fcn.00013674
jmp 0x9851c
mov dword [ebp - 0x24], 0x20000
push 0
lea eax, [ebp - 0x24]
push eax
push 0x20000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
jne 0x98419
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0x28], eax
push 0x985c8
push dword [ebp - 4]
push 0x98594
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00013e60
mov eax, dword [ebp - 0x5c]
call fcn.00090534
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x28]
call fcn.00090778
mov eax, dword [ebp - 0x60]
call fcn.00090534
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
call fcn.00013674
jmp 0x9851c
cmp dword [ebp - 0x24], 0
jbe 0x984b5
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile_1
test eax, eax
jne 0x98497
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0x28], eax
push 0x985dc
push dword [ebp - 8]
push 0x98594
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00013e60
mov eax, dword [ebp - 0x64]
call fcn.00090534
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x28]
call fcn.00090778
mov eax, dword [ebp - 0x68]
call fcn.00090534
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
call fcn.00013674
jmp 0x9851c
cmp dword [0x9ebc0], 0
je 0x984ab
xor edx, edx
mov eax, dword [ebp - 0x24]
call dword [0x9ebc0]
cmp dword [ebp - 0x24], 0
ja 0x983a4
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.00013f64
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_SetFileTime
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x98512
mov eax, dword [ebp - 0x18]
call fcn.00012724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x98558
lea eax, [ebp - 0x68]
mov edx, 6
call fcn.00013b44
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00013b44
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013b44
ret