Function at 0x1017e600
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 0x10258e58
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x102f9c40], ebx
call ebp
mov edi, dword [esp + 0x84]
mov dword [0x102f9c48], eax
cmp edi, ebx
je 0x1017ea31
cmp word [edi], bx
je 0x1017ea31
mov esi, dword [esp + 0x88]
cmp esi, ebx
je 0x1017ea31
cmp word [esi], bx
je 0x1017ea31
cmp dword [0x102f9c4c], ebx
jne 0x1017e682
mov dword [0x102f9c40], 2
mov dword [0x102f9c44], 0x7a5
jmp 0x1017ea45
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
or ebp, 0xffffffff
call fcn.1018a2f0
push edi
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
mov dword [esp + 0x2c], eax
jne 0x1017e906
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x1017e6d4
test al, 0x10
jne 0x1017e91c
mov eax, dword [esp + 0x98]
push ebx
push 0x80
push 3
push ebx
push eax
push connect
push edi
call fcn.1018b1f0
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x1017e932
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [0x102f9c40], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102f9c48], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
push ebx
push esi
call edi
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x34], eax
call edi
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1017e7b4
lea edx, [esp + 0x98]
push ebx
push edx
lea eax, [esp + 0x5c]
push 0x20
push eax
push esi
mov dword [esp + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1017e7b4
cmp dword [esp + 0x98], 0x20
jne 0x1017e7b4
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ebx
push ecx
push edx
push esi
call edi
cmp dword [esp + 0x18], ebx
je 0x1017e88d
lea eax, [esp + 0x54]
push eax
call fcn.1017c4e0
add esp, 4
test eax, eax
je 0x1017e8b1
mov ecx, dword [esp + 0x88]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call fcn.1018b1f0
mov ebp, eax
or edi, 0xffffffff
add esp, 0x1c
cmp ebp, edi
je 0x1017e967
mov eax, dword [esp + 0x28]
xor edx, edx
cmp eax, edi
push ebp
sete dl
push esi
push ebx
mov dword [esp + 0x2c], edx
call fcn.10182350
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x84], eax
je 0x1017e87f
test byte [esp + 0x8c], 4
je 0x1017e84f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call fcn.1018a9e0
add esp, 0xc
test byte [esp + 0x8c], 1
je 0x1017e86f
lea edx, [esp + 0x30]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esp + 0x90], ebx
je 0x1017e87f
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, edi
jmp 0x1017e986
mov dword [0x102f9c40], 0xf
mov dword [0x102f9c44], 0xe3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102f9c48], eax
jmp 0x1017e7e1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102f9c40], 0x14
mov dword [0x102f9c44], 0xe47
call edi
mov dword [0x102f9c48], eax
mov dword [0x102f9c40], 0x22
mov dword [0x102f9c44], 0x7e6
call edi
lea ecx, [esp + 0x48]
mov dword [0x102f9c48], eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.1018a390
or edi, 0xffffffff
jmp 0x1017e993
mov dword [0x102f9c40], 0x1d
mov dword [0x102f9c44], 0x7bc
jmp 0x1017e946
mov dword [0x102f9c40], 0x1e
mov dword [0x102f9c44], 0x7c6
jmp 0x1017e946
mov dword [0x102f9c40], 3
mov dword [0x102f9c44], 0x7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x48]
mov dword [0x102f9c48], eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.1018a390
jmp 0x1017ea06
mov dword [0x102f9c40], 4
mov dword [0x102f9c44], 0x7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102f9c48], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x7c], edi
call fcn.1018a390
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp ebp, edi
je 0x1017e9a3
push ebp
call esi
cmp dword [esp + 0x84], ebx
je 0x1017e9e9
test byte [esp + 0x8c], 2
je 0x1017e9c9
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x88]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1017ea17
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x88]
push ecx
push eax
push edx
call fcn.1018ac60
add esp, 0xc
jmp 0x1017ea06
cmp dword [esp + 0x20], ebx
je 0x1017ea06
cmp dword [esp + 0x94], ebx
jne 0x1017ea06
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1017ea17
push eax
call fcn.1023d925
add esp, 4
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov dword [0x102f9c40], 1
mov dword [0x102f9c44], 0x79f
call ebp
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword [0x102f9c48], eax
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret