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

Disassembly:
push 0x18
mov eax, 0x519ae5
call fcn.004db4c3
mov ebx, ecx
mov esi, dword [ebp + 0x10]
lea edi, [ebx + 0xc]
mov ecx, dword [edi]
test ecx, ecx
je 0x49dfa1
push dword [ebx + 0x18]
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0xc]
mov ecx, edi
call fcn.004a8880
test al, al
je 0x49dfb6
mov eax, 0xe0000008
jmp 0x49e1e7
test esi, esi
je 0x49dfd5
cmp esi, dword [ebp + 0x14]
jne 0x49dfd5
mov ecx, dword [edi]
test ecx, ecx
je 0x49dfce
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
xor eax, eax
jmp 0x49e1e7
lea ecx, [ebx + 0x1c]
xor dl, dl
push 0
call fcn.0047aba0
mov esi, eax
pop ecx
test esi, esi
je 0x49e001
mov ecx, dword [edi]
test ecx, ecx
je 0x49e1e5
mov edx, dword [ecx]
push 0
push esi
push 0
call dword [edx + 0x24]
jmp 0x49e1e5
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
call fcn.0049e474
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x24], 0x533e68
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x49e058
mov ecx, edi
call fcn.004a8880
test al, al
je 0x49e037
mov esi, 0xe0000008
jmp 0x49e1c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x49e1c8
mov eax, dword [ecx]
push 0
push esi
push 0
call dword [eax + 0x24]
jmp 0x49e1c8
mov ecx, dword [edi]
test esi, esi
je 0x49e065
test ecx, ecx
je 0x49e070
push esi
jmp 0x49e06b
test ecx, ecx
je 0x49e070
push 0
mov eax, dword [ecx]
call dword [eax + 0x18]
and dword [ebp - 0x10], 0
mov eax, 0xc800
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00494ecb
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push dword [ebx + 4]
call fcn.0049e9f4
and dword [ebp - 0x14], 0
mov esi, eax
test esi, esi
jne 0x49e158
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49e122
mov ecx, 0xc800
cmp eax, ecx
cmova eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
mov ecx, ebx
push dword [ebx + 4]
call fcn.0049e94d
mov esi, eax
test esi, esi
jne 0x49e158
cmp dword [ebp - 0x14], eax
je 0x49e122
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49e1ef
mov ecx, dword [edi]
test ecx, ecx
je 0x49e0fe
mov eax, dword [ecx]
push dword [ebp - 0x1c]
call dword [eax + 0x18]
lea eax, [ebx + 0x38]
mov ecx, edi
push eax
call fcn.004a8897
mov ecx, edi
call fcn.004a8880
test al, al
je 0x49e086
mov esi, 0xe0000008
jmp 0x49e1b7
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 0x14]
jbe 0x49e200
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x49e200
cmp byte [ebx + 0x88], 0
je 0x49e1f9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
jmp 0x49e18b
cmp esi, 0x2ee2
je 0x49e178
cmp esi, 0x2efe
je 0x49e178
cmp esi, 0x2eff
je 0x49e178
cmp esi, 0x2f83
jne 0x49e19f
cmp byte [ebx + 0x88], 0
je 0x49e19f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0049e8ac
mov esi, eax
test esi, esi
je 0x49e086
cmp esi, 0xe0000008
je 0x49e1b7
mov ecx, dword [edi]
test ecx, ecx
je 0x49e1b7
mov eax, dword [ecx]
push 0
push esi
push 0
call dword [eax + 0x24]
mov byte [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.004db00c
and dword [ebp - 0x10], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], 0x533e68
test eax, eax
je 0x49e1e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov eax, esi
call fcn.004db48c
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49e1a7
mov esi, 0xe000000f
jmp 0x49e1a7
test esi, esi
je 0x49e213
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x20], 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 0x49e244
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49e1ef
push dword [ebx + 0x1c]
call esi
mov ecx, dword [edi]
test ecx, ecx
je 0x49e253
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
xor esi, esi
jmp 0x49e1b7