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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov byte [esp + 0x13], bl
je 0x409b52
lea eax, [esi + 0x43a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409b52
push edi
mov ebp, 0x4dc260
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x409b18
push 0x18
jmp 0x409b38
push ebx
push ebx
push dword [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x409b46
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
mov ecx, esi
call fcn.0040744c
xor eax, eax
jmp 0x409cc9
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409bb8
cmp dword [esi + 0x1c], ebx
je 0x409b5b
push 0xe
jmp 0x409b38
cmp dword [esi + 0x24], ebx
jne 0x409b68
xor edi, edi
inc edi
jmp 0x409cbf
mov ecx, esi
call fcn.00409a62
test eax, eax
jne 0x409b60
mov edi, 0x4dc158
push edi
push 0x104
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, 0x4dc260
push ebp
push ebx
push 0x4c740c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [esi + 0x78]
push ebx
push dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esp + 0x14], ebx
je 0x409c2e
mov edi, 0x800
cmp dword [esp + 0x14], edi
jae 0x409bf0
mov edi, dword [esp + 0x14]
push ebx
push edi
push dword [esp + 0x24]
lea ecx, [esi + 0xe0]
push 0x4dc368
call fcn.0040a25a
push ebx
lea eax, [esp + 0x24]
push eax
push edi
push 0x4dc368
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [esp + 0x14], edi
add dword [esp + 0x1c], edi
cmp dword [esp + 0x14], ebx
jne 0x409be1
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00409669
cmp byte [esp + 0x13], bl
je 0x409c8b
lea edi, [esi + 0x43a8]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x409c71
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x409c6a
push 0x18
mov ecx, esi
call fcn.0040744c
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x1c]
mov ecx, esi
push dword [esi + 0x18]
push 0x4be184
call fcn.004099a5
test eax, eax
jne 0x409c9a
xor edi, edi
jmp 0x409cbf
push ebx
push dword [esi + 0x18]
mov ecx, esi
push dword [esp + 0x30]
call fcn.004099a5
xor edi, edi
inc edi
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.00408202
push ebx
mov ecx, esi
call fcn.0040744c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4