Function at 0x5701dd70
Capabilities:
Clear file content
Delete file
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5701e186
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor ebx, ebx
xor eax, eax
push ebp
push 0x5701e102
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701dde3
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, esi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x5701de14
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x34]
mov edx, esi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x34]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x5701e0f1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701de51
push 0
mov eax, dword [ebp - 0x18]
or eax, 0x8000000
push eax
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
jmp 0x5701de87
push 0
mov eax, dword [ebp - 0x18]
or eax, 0x8000000
push eax
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x38]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x5701e0e2
push 0
lea eax, [ebp - 0x30]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5701dff8
cmp dword [ebp - 0x30], 8
jne 0x5701dff8
push 0
lea eax, [ebp - 0x30]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5701dff8
cmp dword [ebp - 0x30], 4
jne 0x5701dff8
lea eax, [ebp - 4]
push eax
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x5701def6
cmp dword [ebp - 0x10], 0x100000
jbe 0x5701df08
jmp 0x5701def8
jle 0x5701df08
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701dfac
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5701df95
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push 0
push edi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x5701df75
mov eax, dword [ebp - 0x24]
push eax
push 0xc
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, edi
mov eax, esi
call fcn.5701d528
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5701df8a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5701dfd5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call sub.kernel32.dll_GetLastError
mov ebx, eax
jmp 0x5701dfd5
push 0
push 0xc
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, edi
mov eax, esi
call fcn.5701d528
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x5701dfe3
cmp dword [ebp - 0x10], 0
jbe 0x5701dfed
jmp 0x5701dfe5
jle 0x5701dfed
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
je 0x5701dff1
xor eax, eax
jmp 0x5701dff3
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x5701dfff
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp byte [ebp - 0x19], 0
je 0x5701e01c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.57019560
push edi
call sub.kernel32.dll_SetEndOfFile
cmp byte [ebp - 0x19], 0
je 0x5701e03c
cmp dword [ebp + 0xc], 0
jne 0x5701e02c
cmp dword [ebp + 8], 0
je 0x5701e03c
lea eax, [ebp + 8]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_SetFileTime
push edi
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x19], 0
je 0x5701e0a6
cmp dword [ebp - 0x18], 0
je 0x5701e0e9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701e0e9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701e082
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
jmp 0x5701e0e9
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x3c]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x5701e0e9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5701e0c2
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x5701e0e9
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x40]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x5701e0e9
call sub.kernel32.dll_GetLastError
mov ebx, eax
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x5701e0f8
call sub.kernel32.dll_GetLastError
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5701e15f
cmp byte [ebp - 0x19], 0
jne 0x5701e16b
push ebx
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5701e18d
lea eax, [ebp - 0x44]
mov edx, 5
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
ret