Function at 0x41b100
Capabilities:
Delete file
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41b77d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41b175
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x1c], eax
jmp 0x41b1ab
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x94]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x41b749
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41b0d8]
call sub.rtl160.bpl__System__DynArraySetLength_qqrv
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov edi, ebx
test edi, edi
jl 0x41b5a7
inc edi
mov dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x18], 0xd
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
cmp eax, dword [ebp - 0x14]
jg 0x41b248
lea eax, [ebp - 4]
mov edx, dword [esi]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
test eax, eax
je 0x41b21e
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
cmp ebx, 1
jl 0x41b259
mov eax, dword [ebp - 4]
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x41b241
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call sub.rtl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
jmp 0x41b259
dec ebx
test ebx, ebx
jne 0x41b225
jmp 0x41b259
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx + ecx*4]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.0040cd5c
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x44]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41b2a1
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [esi]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x41b2d5
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x9c]
mov edx, dword [esi]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x9c]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b594
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41b58e
imul eax, dword [ebp - 0x34], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41b585
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x41b57c
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x34]
jne 0x41b57c
mov dword [ebp - 0x7a], 0x4034b50
mov word [ebp - 0x76], 0x14
mov word [ebp - 0x74], 0x800
mov word [ebp - 0x72], 8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
or eax, 0xffffffff
call fcn.0041b070
not eax
mov dword [ebp - 0x6c], eax
imul eax, dword [ebp - 0x34], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0041af4c
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
je 0x41b3b0
sub eax, 4
mov eax, dword [eax]
mov word [ebp - 0x60], ax
mov word [ebp - 0x5e], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x6e]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_FileTimeToDosDateTime
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x2014b50
mov eax, dword [ebp - 0x48]
mov word [eax + 4], 0x14
mov eax, dword [ebp - 0x48]
push esi
push edi
lea edi, [eax + 6]
lea esi, [ebp - 0x76]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x48]
mov word [eax + 0x20], 0
mov eax, dword [ebp - 0x48]
mov word [eax + 0x22], 0
mov eax, dword [ebp - 0x48]
mov word [eax + 0x24], 0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41b462
mov eax, dword [esi]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x26], eax
jmp 0x41b48b
lea eax, [ebp - 0xa0]
mov edx, dword [esi]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xa0]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x26], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00416d98
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x2a], edx
push 0
lea eax, [ebp - 0x28]
push eax
push 0x1e
lea eax, [ebp - 0x7a]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x41b514
cmp dword [ebp - 0x28], 0x1e
jne 0x41b514
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x41b4ee
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x41b516
xor eax, eax
test al, al
je 0x41b53e
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x41b533
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x5c]
sete al
jmp 0x41b540
xor eax, eax
test al, al
je 0x41b563
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x41b565
xor eax, eax
test al, al
je 0x41b574
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x68]
sete al
jmp 0x41b576
xor eax, eax
mov byte [ebp - 0xd], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LocalFree_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0xd], 0
je 0x41b5a7
inc dword [ebp - 0x14]
add esi, 4
dec edi
jne 0x41b1ee
cmp byte [ebp - 0xd], 0
je 0x41b5b3
cmp dword [ebp - 0x18], 0
jg 0x41b5b7
xor eax, eax
jmp 0x41b5b9
mov al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x41b6fa
mov dword [ebp - 0x90], 0x6054b50
mov word [ebp - 0x8c], 0
mov word [ebp - 0x8a], 0
movzx eax, word [ebp - 0x18]
mov word [ebp - 0x88], ax
mov word [ebp - 0x86], ax
xor eax, eax
mov dword [ebp - 0x84], eax
push 0
push 0
lea ecx, [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00416d98
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov word [ebp - 0x7c], 0
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x41b6c9
inc edi
mov dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0xd
mov edx, dword [ebp - 8]
lea ebx, [edx + eax*4]
mov eax, dword [ebx]
test eax, eax
je 0x41b645
sub eax, 4
mov eax, dword [eax]
add eax, 0x2e
add dword [ebp - 0x84], eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0x2e
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x41b698
cmp dword [ebp - 0x28], 0x2e
jne 0x41b698
mov esi, dword [ebx]
test esi, esi
je 0x41b678
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x28]
push eax
push esi
mov eax, dword [ebx]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x41b69a
xor eax, eax
test al, al
je 0x41b6b3
mov eax, dword [ebx]
test eax, eax
je 0x41b6a9
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
cmp edx, eax
sete al
jmp 0x41b6b5
xor eax, eax
test al, al
jne 0x41b6bf
mov byte [ebp - 0xd], 0
jmp 0x41b6c9
inc dword [ebp - 0x14]
dec edi
jne 0x41b630
cmp byte [ebp - 0xd], 0
je 0x41b6f1
push 0
lea eax, [ebp - 0x28]
push eax
push 0x16
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x41b6f1
cmp dword [ebp - 0x28], 0x16
je 0x41b6f5
xor eax, eax
jmp 0x41b6f7
mov al, 1
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0xd], 0
jne 0x41b749
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41b725
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x41b749
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xa4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b784
lea eax, [ebp - 0xa4]
mov edx, 5
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, dword [0x41b0d8]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret