Function at 0x42d550
Capabilities:
Copy file
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov edi, ecx
mov byte [ebp - 1], 0
je 0x42d61f
lea eax, [edi + 0x43e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42d61f
lea ecx, [edi + 0x40]
call fcn.00434040
test eax, eax
je 0x42d7d5
push esi
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x42d5d7
push 0x18
mov ecx, edi
call fcn.0042b890
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x434c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42d611
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
mov ecx, edi
call fcn.0042b890
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call ebx
jmp 0x42d6a7
mov eax, dword [edi + 0x42f0]
test eax, eax
je 0x42d63d
push 0xe
mov ecx, edi
call fcn.0042b890
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x42f8]
test eax, eax
je 0x42d7cc
mov ecx, edi
call fcn.0042d4e0
test eax, eax
jne 0x42d7cc
push 0x4edc2c
push 0x104
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4edb28
push 0
push 0x4bdff8
push 0x4edc2c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov esi, eax
mov ebx, dword [edi + 0x434c]
push 0
mov ecx, edi
mov dword [ebp - 0xc], 0
call fcn.0046ab28
mov ecx, edi
call fcn.0046ab4f
test ebx, ebx
je 0x42d712
cmp ebx, 0x800
mov esi, ebx
jb 0x42d6d7
mov esi, 0x800
mov edx, dword [ebp - 0xc]
push 0
push esi
push edx
push 0x4ed328
lea ecx, [edi + 0x40]
call fcn.00433d10
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push 0x4ed328
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
sub ebx, esi
add ecx, esi
test ebx, ebx
mov dword [ebp - 0xc], ecx
jne 0x42d6c8
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0042d3d0
mov al, byte [ebp - 1]
test al, al
je 0x42d793
lea esi, [edi + 0x43e8]
push esi
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42d762
push eax
push esi
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42d757
push 0x18
mov ecx, edi
call fcn.0042b890
push 0x4edb28
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [edi + 0x42f0]
mov eax, dword [edi + 0x42ec]
push edx
push eax
push 0x4bdffc
mov ecx, edi
call fcn.0042d3f0
test eax, eax
jne 0x42d7a7
push eax
mov ecx, edi
call fcn.0042b890
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x42ec]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
mov ecx, edi
call fcn.0042d3f0
push 1
mov ecx, edi
call fcn.0046ab28
mov ecx, edi
call fcn.0046ab4f
mov eax, dword [edi + 0x1c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, edi
call fcn.0042c5a0
push 0
mov ecx, edi
call fcn.0042b890
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4