Function at 0x4495c0
Capabilities:
Copy file
Get disk size
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x850
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x85c]
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_wcstombs]
push 0x400
lea eax, [esp + 0x45c]
mov ebx, edx
push ebp
push eax
mov esi, ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
call edi
add esp, 0xc
push 0x400
lea ecx, [esp + 0x5c]
push ebx
push ecx
call edi
add esp, 0xc
mov eax, ebp
call fcn.00448fa0
test edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jg 0x4496a5
jl 0x449630
cmp eax, 0x10000000
ja 0x4496a5
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x28]
add dword [esi + 0x810], edx
mov edi, eax
mov eax, dword [esp + 0x2c]
adc dword [esi + 0x814], eax
mov ecx, esi
call fcn.00449af0
test edi, edi
jne 0x44969e
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x22
call eax
call fcn.004205a0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x45c]
mov ebx, eax
mov esi, dword [ebx]
push edx
push 0xe3
add esi, 8
call fcn.00448c50
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Open__s_to__s_to_fail.
push ebx
call eax
add esp, 0x14
mov eax, edi
jmp 0x449a28
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebp
call edi
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
jne 0x449715
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x22
call eax
call fcn.004205a0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x45c]
push edx
push 0xf5
mov edi, eax
mov esi, dword [edi]
add esi, 8
call fcn.00448c50
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Open__s_to__s_to_fail.
push edi
call eax
add esp, 0x14
xor eax, eax
jmp 0x449a28
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x44975b
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x22
call eax
call fcn.004205a0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x45c]
push edx
push 0x105
jmp 0x4496f1
xor ebx, ebx
push 0x400000
mov dword [esp + 0x24], ebx
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x400000
mov edi, eax
push edi
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4498ce
cmp dword [esp + 0x10], 0
jbe 0x4498ce
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
test eax, eax
jne 0x44984b
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp ebx, ecx
lea edx, [eax + eax]
jl 0x449884
jg 0x4497f6
mov ecx, dword [esp + 0x40]
cmp ecx, edx
jb 0x449884
xor ecx, ecx
add dword [esi + 0x810], eax
push ecx
lea edx, [esp + 0x38]
adc dword [esi + 0x814], ecx
add dword [esp + 0x1c], eax
push edx
push eax
mov eax, dword [esp + 0x30]
adc dword [esp + 0x28], ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44988e
mov ecx, esi
call fcn.00449af0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400000
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x449797
jmp 0x4498ce
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x17
call eax
call fcn.004205a0
mov ebp, eax
mov ebx, dword [ebp]
push 0x114
add ebx, 8
call fcn.00448c50
mov ecx, dword [ebx]
add esp, 4
push eax
push str._s:_User_cancel_operations.
push ebp
call ecx
add esp, 0xc
jmp 0x4498ca
mov dword [esp + 0x20], 1
jmp 0x4498ce
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x22
call eax
call fcn.004205a0
lea ecx, [esp + 0x58]
mov ebp, eax
mov ebx, dword [ebp]
push ecx
push 0x126
add ebx, 8
call fcn.00448c50
mov edx, dword [ebx]
add esp, 4
push eax
push str._s:_Write_file__s_failed.
push ebp
call edx
add esp, 0x10
mov ebp, dword [esp + 0x14]
push edi
call sub.MFC80U.DLL_Ordinal_764
mov ecx, dword [esi + 0x800]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
add esp, 4
call edx
test eax, eax
jne 0x4499ab
cmp dword [esp + 0x20], eax
jne 0x4499b2
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x2c], eax
jl 0x4499ed
mov edi, dword [esp + 0x28]
jg 0x449914
cmp edi, dword [esp + 0x18]
jbe 0x4499ed
sub edi, dword [esp + 0x18]
push edi
call sub.MFC80U.DLL_Ordinal_762
mov edx, dword [esp + 0x18]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
mov ebp, eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449995
cmp dword [esp + 0x10], 0
jbe 0x449995
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x449995
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0x22
call eax
call fcn.004205a0
lea ecx, [esp + 0x58]
mov ebx, eax
mov edi, dword [ebx]
push ecx
push 0x13a
add edi, 8
call fcn.00448c50
mov edx, dword [edi]
add esp, 4
push eax
push str._s:_Write_file__s_failed.
push ebx
call edx
add esp, 0x10
mov ecx, esi
call fcn.00449af0
push ebp
call sub.MFC80U.DLL_Ordinal_764
mov ebp, dword [esp + 0x18]
add esp, 4
jmp 0x4499ed
cmp dword [esp + 0x20], 0
je 0x4499ed
mov ecx, dword [esi + 0x800]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 0x23
call edx
call fcn.004205a0
mov ebx, eax
mov edi, dword [ebx]
lea eax, [esp + 0x58]
push eax
push 0x146
add edi, 8
call fcn.00448c50
mov ecx, dword [edi]
add esp, 4
push eax
push str._s:_Insufficient_destvol_space.
push ebx
call ecx
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov edx, dword [esp + 0x24]
push edx
call edi
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0x800]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046d6fd
add esp, 0x850
ret 4