Function at 0x4025e0
Capabilities:
Copy file
Delete file
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1845c
call fcn.004053f0
push ebx
push ebp
mov eax, dword [str.CSysInfo.BIN]
mov ebp, ecx
mov ecx, dword [0x407044]
mov dword [esp + 0x24], eax
mov al, byte [0x40704c]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov byte [esp + 0x30], al
mov eax, dword [0x407038]
mov word [esp + 0x31], cx
mov byte [esp + 0x33], cl
mov ecx, dword [0x40703c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x40702c]
push esi
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], ecx
xor eax, eax
mov ecx, 0x2000
lea edi, [esp + 0x846c]
mov edx, dword [0x407048]
rep stosd dword es:[edi], eax
mov ecx, 0x2000
lea edi, [esp + 0x1046c]
rep stosd dword es:[edi], eax
mov ecx, 0x2000
lea edi, [esp + 0x46c]
rep stosd dword es:[edi], eax
lea ebx, [ebp + 4]
or ecx, 0xffffffff
mov edi, ebx
mov dword [esp + 0x34], edx
mov edx, dword [str.CSysBak.BIN]
mov dword [esp + 0x48], eax
repne scasb al, byte es:[edi]
mov dword [esp + 0x3c], edx
mov edx, dword [str.CSysCan.BIN]
mov dword [esp + 0x4c], edx
mov edx, dword [0x407030]
not ecx
sub edi, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x24], ebp
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00402d00
lea ecx, [esp + 0x2b]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
lea eax, [esp + 0x174]
push eax
mov ecx, ebp
call fcn.00402d90
mov esi, eax
test esi, esi
je 0x402a2c
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x407230
call fcn.00404bc0
test eax, eax
je 0x402a2c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x168]
push 0x200
push edx
push 1
push esi
push eax
mov ecx, 0x407230
call fcn.00404a20
test eax, eax
je 0x402a2c
mov cl, byte [esp + 0x175]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x18], cl
push edx
mov ecx, 0x407230
call fcn.00404ca0
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
call fcn.00404640
test eax, eax
je 0x402a2c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, ebp
call fcn.004042f0
test eax, eax
je 0x402a2c
lea eax, [esp + 0x64]
lea ecx, [esp + 0x846c]
push eax
push ecx
mov ecx, ebp
call fcn.00403340
test eax, eax
je 0x402a2c
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x846c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004045b0
test eax, eax
je 0x402a2c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00404640
test eax, eax
je 0x40288d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, ebp
call fcn.004042f0
test eax, eax
je 0x402a2c
lea eax, [esp + 0x64]
lea ecx, [esp + 0x1046c]
push eax
push ecx
mov ecx, ebp
call fcn.00403340
test eax, eax
je 0x402a2c
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1046c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004045b0
test eax, eax
je 0x402a2c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x407230
call fcn.00404bc0
test eax, eax
je 0x402a2c
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x407230
call fcn.00404970
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
push edx
mov ecx, ebp
call fcn.00404670
mov dword [0x407228], eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, 0x407230
call fcn.00404ca0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64]
xor ebp, ebp
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.004042f0
test eax, eax
je 0x402a2c
lea eax, [esp + 0x64]
lea ecx, [esp + 0x46c]
push eax
push ecx
mov ecx, esi
call fcn.00403340
test eax, eax
je 0x402a2c
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x46c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004045b0
test eax, eax
je 0x402a2c
mov eax, dword [esp + 0x46c]
test eax, eax
jbe 0x4029de
lea edi, [esp + 0x478]
mov dword [esp + 0x20], eax
mov esi, dword [edi]
mov ebx, dword [edi - 4]
xor ecx, ecx
test esi, esi
jbe 0x4029c4
lea eax, [ecx + ebx]
xor edx, edx
div dword [0x407228]
test edx, edx
jne 0x4029bf
inc dword [esp + 0x10]
inc ecx
cmp ecx, esi
jb 0x4029ac
mov eax, dword [esp + 0x20]
add edi, 8
dec eax
mov dword [esp + 0x20], eax
jne 0x4029a1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402a39
mov esi, dword [esp + 0x24]
inc ebp
lea edx, [esp + 0x64]
push ebp
push edx
lea eax, [esp + 0x370]
push str._s_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x378]
lea edx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x18
lea eax, [esp + 0x64]
lea ecx, [esp + 0x368]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp ebp, 0xa
jne 0x40294e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1845c
ret
test ebp, ebp
je 0x402a6c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x64]
push ebp
push edx
lea eax, [esp + 0x370]
push str._s_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x368]
push ecx
call esi
dec ebp
jne 0x402a43
mov edx, dword [esp + 0x474]
mov eax, dword [esp + 0x1046c]
mov ecx, dword [esp + 0x846c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x46c]
lea esi, [esp + 0x8474]
inc edx
inc eax
inc ecx
mov dword [esp + 0x1046c], eax
mov dword [esp + 0x846c], ecx
add ecx, eax
add ecx, edx
mov eax, 0x4325c53f
shl ecx, 3
mov dword [esp + 0x46c], edx
mul ecx
mov ecx, dword [esp + 0x46c]
or eax, 0xffffffff
mov ebx, edx
push 0
mov dword [esp + ecx*8 + 0x470], eax
mov edx, dword [esp + 0x470]
push 0x80
push 3
mov dword [esp + edx*8 + 0x47c], eax
mov ecx, dword [esp + 0x10478]
push 0
push 3
mov dword [esp + ecx*8 + 0x10480], eax
mov edx, dword [esp + 0x10480]
push 0xc0000000
mov dword [esp + edx*8 + 0x10488], eax
mov ecx, dword [esp + 0x8484]
shr ebx, 7
mov dword [esp + ecx*8 + 0x8484], eax
mov edx, dword [esp + 0x8484]
mov dword [esp + edx*8 + 0x8488], eax
mov eax, dword [esp + 0x8484]
mov edx, dword [esp + 0x484]
lea ecx, [eax*8]
mov eax, ecx
lea edi, [esp + edx*8 + 0x48c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x484]
mov ecx, dword [esp + 0x8484]
add eax, ecx
mov ecx, dword [esp + 0x10484]
shl ecx, 3
mov edx, ecx
lea esi, [esp + 0x1048c]
lea edi, [esp + eax*8 + 0x48c]
mov dword [esp + 0x484], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10484]
mov esi, dword [esp + 0x484]
lea ecx, [esp + 0x7c]
add esi, eax
push ecx
mov dword [esp + 0x488], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402a2c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebp
mov esi, eax
call edi
lea edx, [esp + 0x5c]
push 0
push edx
lea eax, [esp + 0x170]
push 0x200
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push ebp
call edi
xor edx, edx
test esi, esi
jbe 0x402cda
inc ebx
lea ecx, [esp + 0x474]
mov dword [esp + 0x20], ebx
lea ebx, [esi + 0x1ff]
mov dword [esp + 0x10], ecx
shr ebx, 9
jmp 0x402c22
mov edx, dword [esp + 0x18]
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x16c], 0x65766f4c
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x20]
cmp eax, edx
mov ecx, 0x7a
jbe 0x402c6f
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x358], 0xaa5555aa
jmp 0x402c81
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
mov dword [esp + 0x358], eax
mov eax, dword [esp + 0x10]
inc edx
add eax, 0x1e8
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dx, word [esp + ecx + 0x168]
add ecx, 2
add eax, edx
cmp ecx, 0x1f8
jb 0x402c97
not eax
inc eax
push 0
mov dword [esp + 0x364], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x170]
push 0x200
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec ebx
jne 0x402c1e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1845c
ret