Function at 0x42f557
Capabilities:
Copy file
Delete file
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2710
call fcn.0043f330
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x26e8], eax
mov eax, dword [edx*4 + 0x45bfb8]
push esi
push edi
mov dword [ebp - 0x26dc], edx
mov dword [ebp - 0x26e4], ecx
mov dword [ebp - 0x26ec], eax
test eax, eax
je 0x42fc0d
mov ebx, dword [edx*4 + 0x45c000]
xor eax, eax
mov dword [ebp - 0x26d8], eax
mov dword [ebp - 0x26cc], eax
mov dword [ebp - 0x26c0], eax
lea eax, [ebp - 0x26c0]
push eax
lea eax, [ebp - 0x26cc]
push eax
call fcn.0042f2d6
mov edi, dword [0x45c048]
mov eax, dword [ebp - 0x26c0]
add eax, dword [ebp - 0x26ec]
mov esi, edi
imul esi, esi, 0x18
imul eax, dword [esi + 0x44d918]
push eax
push dword [ebp - 0x26cc]
call fcn.00433e54
mov ecx, dword [esi + 0x44d918]
mov edx, eax
mov eax, dword [ebp - 0x26c0]
mov esi, ecx
imul esi, eax
add esp, 0x10
add esi, edx
cmp dword [ebp - 0x26ec], 0
mov dword [ebp - 0x26e0], edx
jbe 0x42f693
mov edi, dword [ebp - 0x26ec]
mov dword [ebp - 0x26cc], edi
push 0x42fd6c
push ecx
push eax
push edx
push ebx
call fcn.004373ac
add esp, 0x14
test eax, eax
jne 0x42f66c
mov eax, dword [0x45c048]
inc dword [ebp - 0x26c0]
imul eax, eax, 0x18
push dword [eax + 0x44d918]
push ebx
push esi
call fcn.00432b20
mov edi, dword [0x45c048]
mov eax, edi
imul eax, eax, 0x18
add esp, 0xc
add esi, dword [eax + 0x44d918]
jmp 0x42f672
mov edi, dword [0x45c048]
mov edx, dword [ebp - 0x26e0]
mov eax, edi
imul eax, eax, 0x18
mov ecx, dword [eax + 0x44d918]
mov eax, dword [ebp - 0x26c0]
add ebx, ecx
dec dword [ebp - 0x26cc]
jne 0x42f626
imul edi, edi, 0x18
push 0x42fd6c
push dword [edi + 0x44d918]
push eax
push edx
call fcn.00437080
mov ebx, dword [ebp - 0x26dc]
mov edi, dword [ebp - 0x26e0]
mov eax, dword [ebx*4 + 0x45c000]
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x26f4], edi
mov dword [ebp - 0x2704], eax
cmp ebx, 0x10
jge 0x42f6f8
cmp byte [0x45bfa9], 0
je 0x42f6f8
push ebx
push dword [ebp - 0x26e4]
lea eax, [ebp - 0x534]
push str._s_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x42f70c
push dword [ebp - 0x26e4]
lea eax, [ebp - 0x534]
push eax
call fcn.004336a0
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004336a0
lea eax, [ebp - 0x114]
push str..pak
push eax
call fcn.004336b0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004336a0
lea eax, [ebp - 0x42c]
push str..___
push eax
call fcn.004336b0
add esp, 0x20
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x26f0], eax
xor eax, eax
push eax
push 2
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x26e8]
mov dword [ebp - 0x26cc], eax
mov ecx, dword [ecx + 0x2a0]
xor eax, eax
mov dword [ebp - 0x26c4], eax
mov dword [ebp - 0x26c8], eax
mov dword [ecx + 0x5b4], eax
call fcn.00412d3b
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x2a0]
and dword [ecx + 0x5b0], 0
call fcn.00412d3b
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x2a0]
mov dword [ecx + 0x5ac], 0x64
call fcn.00412d3b
and dword [ebp - 0x2700], 0
cmp ebx, 0x10
jne 0x42f830
push ecx
lea edx, [ebp - 0x26d4]
lea ecx, [ebp - 0x26bc]
mov dword [ebp - 0x26d4], 0x2340217e
mov dword [ebp - 0x26d0], 0x3c245e25
call fcn.00404833
pop ecx
mov ecx, dword [ebp - 0x26c0]
and dword [ebp - 0x26fc], 0
test ecx, ecx
je 0x42f9be
push 0x64
pop eax
mov dword [ebp - 0x2708], eax
xor edx, edx
div ecx
cmp eax, dword [ebp - 0x2700]
je 0x42f872
mov dword [ebp - 0x2700], eax
push eax
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x2a0]
call fcn.00421157
mov eax, dword [0x45c048]
imul eax, eax, 0x18
push 0x42fd6c
push dword [eax + 0x44d918]
push dword [ebp - 0x26ec]
push dword [ebp - 0x2704]
push esi
call fcn.004373ac
add esp, 0x14
test eax, eax
jne 0x42fc1c
push eax
push eax
push dword [esi]
push dword [ebp - 0x26f0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x45c048], 1
mov ecx, dword [ebp - 0x26d8]
mov dword [esi], ecx
jne 0x42f8c8
mov esi, dword [esi + 0x1c]
jmp 0x42f8ea
mov eax, dword [0x45c048]
imul eax, eax, 0x18
cmp dword [eax + 0x44d92c], 0
jg 0x42f8e1
mov eax, dword [eax + 0x44d924]
jmp 0x42f8e7
mov eax, dword [eax + 0x44d928]
mov esi, dword [esi + eax]
add ecx, esi
mov dword [ebp - 0x26d8], ecx
test esi, esi
je 0x42f974
mov ebx, dword [ebp - 0x26f0]
push 0
lea eax, [ebp - 0x26c4]
push eax
mov eax, 0x2000
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [ebp - 0x263c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x26c4]
sub esi, eax
lea edi, [ebp - 0x263c]
test eax, eax
je 0x42f96a
mov ebx, dword [ebp - 0x26cc]
push 0
lea ecx, [ebp - 0x26c8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x26c4]
sub eax, dword [ebp - 0x26c8]
add edi, dword [ebp - 0x26c8]
mov dword [ebp - 0x26c4], eax
test eax, eax
jne 0x42f936
mov ebx, dword [ebp - 0x26f0]
test esi, esi
jne 0x42f8fc
mov ebx, dword [ebp - 0x26dc]
mov esi, dword [ebp - 0x26f4]
mov eax, dword [0x45c048]
mov edx, dword [ebp - 0x26fc]
imul eax, eax, 0x18
add esi, dword [eax + 0x44d918]
mov eax, dword [ebp - 0x2708]
mov ecx, dword [ebp - 0x26c0]
inc edx
add eax, 0x64
mov dword [ebp - 0x26f4], esi
mov dword [ebp - 0x26fc], edx
mov dword [ebp - 0x2708], eax
cmp edx, ecx
jb 0x42f84e
mov edi, dword [ebp - 0x26e0]
push dword [ebp - 0x26cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x26f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x10
jne 0x42fa36
push ecx
lea edx, [ebp - 0x26d4]
lea ecx, [ebp - 0x26bc]
mov dword [ebp - 0x26d4], 0x2340217e
mov dword [ebp - 0x26d0], 0x3c245e25
call fcn.00404833
mov eax, dword [0x45c048]
imul eax, eax, 0x18
pop ecx
mov esi, dword [eax + 0x44d918]
imul esi, dword [ebp - 0x26c0]
and esi, 0xfffffff8
jle 0x42fa36
dec esi
shr esi, 3
inc esi
push edi
mov edx, edi
lea ecx, [ebp - 0x26bc]
call fcn.00404b7d
add edi, 8
pop ecx
dec esi
jne 0x42fa21
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004336a0
lea eax, [ebp - 0x21c]
push str..idx
push eax
call fcn.004336b0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004336a0
lea eax, [ebp - 0x324]
push str..___
push eax
call fcn.004336b0
add esp, 0x20
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ebx, ebx
push ebx
push 2
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
lea eax, [ebp - 0x26c4]
push eax
push 4
lea eax, [ebp - 0x26c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x45c048]
imul ecx, ecx, 0x18
mov esi, dword [ecx + 0x44d918]
imul esi, dword [ebp - 0x26c0]
test esi, esi
je 0x42fb03
mov ebx, dword [ebp - 0x26e0]
push 0
lea eax, [ebp - 0x26c4]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 0x26c4]
sub esi, dword [ebp - 0x26c4]
jne 0x42fae3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x114]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x114]
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
call ebx
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x21c]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
call esi
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
call ebx
and eax, 0xfffffffc
push eax
lea eax, [ebp - 0x114]
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
call ebx
and eax, 0xfffffffc
push eax
lea eax, [ebp - 0x21c]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x42c]
push eax
call edi
lea eax, [ebp - 0x324]
push eax
call edi
mov edx, dword [ebp - 0x26dc]
mov esi, dword [edx*4 + 0x45bfb8]
test esi, esi
je 0x42fc0d
mov eax, dword [0x45c048]
mov ebx, dword [ebp - 0x2704]
imul eax, eax, 0x18
mov eax, dword [eax + 0x44d91c]
add eax, ebx
push eax
push dword [ebp - 0x26e4]
lea eax, [ebp - 0x63c]
push 0x452e94
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x63c]
push eax
call edi
mov eax, dword [0x45c048]
imul eax, eax, 0x18
add ebx, dword [eax + 0x44d918]
dec esi
jne 0x42fbcf
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret
mov eax, dword [ebp - 0x26d8]
mov dword [esi], eax
mov eax, dword [0x45c048]
imul eax, eax, 0x18
mov eax, dword [eax + 0x44d91c]
add eax, esi
push eax
push dword [ebp - 0x26e4]
lea eax, [ebp - 0x63c]
push 0x452e94
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push eax
mov dword [ebp - 0x26f8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x45c048]
imul ecx, ecx, 0x18
mov edi, eax
mov ecx, dword [ecx + 0x44d924]
add dword [ebp - 0x26d8], edi
mov dword [esi + ecx], edi
test edi, edi
je 0x42fd5b
push 0
lea eax, [ebp - 0x26c4]
push eax
mov ecx, 0x2000
mov eax, ecx
cmp edi, ecx
cmovb eax, edi
push eax
lea eax, [ebp - 0x263c]
push eax
push dword [ebp - 0x26f8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x26c4]
sub edi, esi
mov dword [ebp - 0x26d0], edi
lea edi, [ebp - 0x263c]
cmp ebx, 0x10
jne 0x42fd09
cmp esi, 8
jl 0x42fd03
mov eax, esi
shr eax, 3
mov ebx, eax
push edi
mov edx, edi
lea ecx, [ebp - 0x26bc]
call fcn.00404b7d
add edi, 8
pop ecx
dec ebx
jne 0x42fce8
mov ebx, dword [ebp - 0x26dc]
lea edi, [ebp - 0x263c]
test esi, esi
je 0x42fd47
mov ebx, dword [ebp - 0x26cc]
push 0
lea eax, [ebp - 0x26c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x26c4]
sub esi, dword [ebp - 0x26c8]
add edi, dword [ebp - 0x26c8]
mov dword [ebp - 0x26c4], esi
test esi, esi
jne 0x42fd13
mov ebx, dword [ebp - 0x26dc]
mov edi, dword [ebp - 0x26d0]
test edi, edi
jne 0x42fc9a
mov esi, dword [ebp - 0x26f4]
push dword [ebp - 0x26f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f97a