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

Disassembly:
push 0x18
mov eax, 0x50b9e8
call fcn.004cea03
mov ebx, ecx
mov esi, dword [ebp + 0x10]
lea edi, [ebx + 0xc]
mov ecx, dword [edi]
test ecx, ecx
je 0x491f0f
push dword [ebx + 0x18]
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0xc]
mov ecx, edi
call fcn.0049b280
test al, al
je 0x491f24
mov eax, 0xe0000008
jmp 0x49215c
test esi, esi
je 0x491f43
cmp esi, dword [ebp + 0x14]
jne 0x491f43
mov ecx, dword [edi]
test ecx, ecx
je 0x491f3c
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor eax, eax
jmp 0x49215c
lea ecx, [ebx + 0x1c]
xor dl, dl
push 0
call fcn.00475740
mov esi, eax
pop ecx
test esi, esi
je 0x491f6f
mov ecx, dword [edi]
test ecx, ecx
je 0x49215a
mov edx, dword [ecx]
push 0
push esi
push 0
call dword [edx + 0x28]
jmp 0x49215a
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
call fcn.00492358
mov dword [ebp - 0x24], eax
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x491fc0
mov ecx, edi
call fcn.0049b280
test al, al
je 0x491f9f
mov esi, 0xe0000008
jmp 0x492144
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x492144
mov eax, dword [ecx]
push 0
push esi
push 0
call dword [eax + 0x28]
jmp 0x492144
mov ecx, dword [edi]
test esi, esi
je 0x491fcd
test ecx, ecx
je 0x491fd8
push esi
jmp 0x491fd3
test ecx, ecx
je 0x491fd8
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
and dword [ebp + 0x14], 0
push 0xc800
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0048a60a
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push dword [ebx + 4]
call fcn.00492882
and dword [ebp - 0x14], 0
mov esi, eax
test esi, esi
jne 0x4920d4
cmp dword [ebp - 0x10], eax
jbe 0x49209e
mov edx, 0xc800
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
cmovbe eax, ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
push dword [eax]
push dword [ebp + 0x14]
push dword [ebx + 4]
call fcn.004927e6
mov esi, eax
test esi, esi
jne 0x4920d4
cmp dword [ebp - 0x14], eax
je 0x49209e
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492164
mov ecx, dword [edi]
test ecx, ecx
je 0x49207a
mov eax, dword [ecx]
push dword [ebp - 0x1c]
call dword [eax + 0x1c]
lea eax, [ebx + 0x38]
mov ecx, edi
push eax
call fcn.0049b297
mov ecx, edi
call fcn.0049b280
test al, al
je 0x491fed
mov esi, 0xe0000008
jmp 0x492133
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x24]
jbe 0x492175
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x492175
cmp byte [ebx + 0x88], 0
je 0x49216e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
jmp 0x492107
cmp esi, 0x2ee2
je 0x4920f4
cmp esi, 0x2efe
je 0x4920f4
cmp esi, 0x2eff
je 0x4920f4
cmp esi, 0x2f83
jne 0x49211b
cmp byte [ebx + 0x88], 0
je 0x49211b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp + 8]
mov ecx, ebx
call fcn.00492747
mov esi, eax
test esi, esi
je 0x491fed
cmp esi, 0xe0000008
je 0x492133
mov ecx, dword [edi]
test ecx, ecx
je 0x492133
mov eax, dword [ecx]
push 0
push esi
push 0
call dword [eax + 0x28]
mov byte [ebp - 4], 0
push dword [ebp + 0x14]
call fcn.004ce497
and dword [ebp + 0x14], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49215a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov eax, esi
call fcn.004ce9cc
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x492123
mov esi, 0xe000000f
jmp 0x492123
test esi, esi
je 0x492185
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x24], esi
push dword [ebx + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4921b6
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x492164
push dword [ebx + 0x1c]
call esi
mov ecx, dword [edi]
test ecx, ecx
je 0x4921c5
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor esi, esi
jmp 0x492133