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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101d0b88
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x10260608], ebx
call ebp
mov edi, dword [esp + 0x88]
mov dword [0x10260610], eax
cmp edi, ebx
je 0x10131cab
cmp word [edi], bx
je 0x10131cab
mov esi, dword [esp + 0x8c]
cmp esi, ebx
je 0x10131cab
cmp word [esi], bx
je 0x10131cab
cmp dword [0x10260614], ebx
jne 0x10131902
mov dword [0x10260608], 2
mov dword [0x1026060c], 0x756
jmp 0x10131cbf
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
or ebp, 0xffffffff
call fcn.1013d570
push edi
mov dword [esp + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
mov dword [esp + 0x30], eax
jne 0x10131b7a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x10131954
test al, 0x10
jne 0x10131b90
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocStringLen
push edi
call fcn.1013e440
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x10131ba6
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [0x10260608], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10260610], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call edi
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x38], eax
call edi
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10131a25
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x60]
push 0x20
push edx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10131a25
cmp dword [esp + 0x14], 0x20
jne 0x10131a25
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push ebx
push eax
push ecx
push esi
call edi
cmp dword [esp + 0x1c], ebx
je 0x10131afe
lea edx, [esp + 0x58]
push edx
call fcn.1012f8f0
add esp, 4
test eax, eax
je 0x10131b22
mov eax, dword [esp + 0x8c]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call fcn.1013e440
mov ebp, eax
or edi, 0xffffffff
add esp, 0x1c
cmp ebp, edi
je 0x10131bde
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, edi
push ebp
sete cl
push esi
push ebx
mov dword [esp + 0x30], ecx
call fcn.101355c0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x88], eax
je 0x10131af0
test byte [esp + 0x90], 4
je 0x10131ac0
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call fcn.1013dc30
add esp, 0xc
test byte [esp + 0x90], 1
je 0x10131ae0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esp + 0x94], ebx
je 0x10131af0
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, edi
jmp 0x10131bfd
mov dword [0x10260608], 0xf
mov dword [0x1026060c], 0xdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10260610], eax
jmp 0x10131a52
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10260608], 0x14
mov dword [0x1026060c], 0xdf8
call edi
mov dword [0x10260610], eax
mov dword [0x10260608], 0x22
mov dword [0x1026060c], 0x797
call edi
lea ecx, [esp + 0x4c]
mov dword [0x10260610], eax
mov dword [esp + 0x80], 0xffffffff
call fcn.1013d610
or edi, 0xffffffff
jmp 0x10131c0d
mov dword [0x10260608], 0x1d
mov dword [0x1026060c], 0x76d
jmp 0x10131bba
mov dword [0x10260608], 0x1e
mov dword [0x1026060c], 0x777
jmp 0x10131bba
mov dword [0x10260608], 3
mov dword [0x1026060c], 0x788
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4c]
mov dword [0x10260610], eax
mov dword [esp + 0x80], 0xffffffff
call fcn.1013d610
jmp 0x10131c80
mov dword [0x10260608], 4
mov dword [0x1026060c], 0x7a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10260610], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x80], edi
call fcn.1013d610
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp ebp, edi
je 0x10131c1d
push ebp
call esi
cmp dword [esp + 0x88], ebx
je 0x10131c63
test byte [esp + 0x90], 2
je 0x10131c43
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10131c91
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x8c]
push ecx
push eax
push edx
call fcn.1013deb0
add esp, 0xc
jmp 0x10131c80
cmp dword [esp + 0x24], ebx
je 0x10131c80
cmp dword [esp + 0x98], ebx
jne 0x10131c80
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10131c91
push eax
call fcn.1005fc33
add esp, 4
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov dword [0x10260608], 1
mov dword [0x1026060c], 0x750
call ebp
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword [0x10260610], eax
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret