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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x818], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
mov eax, dword [ebp - 8]
call fcn.00403fb8
mov ebx, 0x413784
mov esi, 0x413780
mov edi, 0x413788
xor eax, eax
push ebp
push 0x408378
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x811]
mov edx, 0x801
call fcn.004048dc
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x818]
mov ecx, 0x408390
mov edx, dword [ebp - 4]
call fcn.00403e1c
mov eax, dword [ebp - 0x818]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [ebx], eax
mov eax, dword [0x4138a4]
call fcn.00407eb8
mov dword [0x4138a0], eax
lea edx, [ebp - 0x81c]
mov eax, dword [0x4138a0]
add eax, 0x11
call fcn.00407e70
mov edx, dword [ebp - 0x81c]
mov eax, 0x4138a8
call fcn.00403bb4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x4138a8]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [esi], eax
push 2
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea eax, [ebp - 0x811]
push eax
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ReadFile_1
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x811]
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile_1
cmp dword [ebp - 0x10], 0
jne 0x408047
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.00407eb8
mov dword [0x4138a0], eax
lea edx, [ebp - 0x820]
mov eax, dword [0x4138a0]
add eax, 0x11
call fcn.00407e70
mov edx, dword [ebp - 0x820]
mov eax, 0x4138a8
call fcn.00403bb4
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 8]
call fcn.00407db0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x4138a0]
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 - 0x10]
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 [0x4138a8]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [esi], eax
push 2
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea eax, [ebp - 0x811]
push eax
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ReadFile_1
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x811]
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile_1
cmp dword [ebp - 0x10], 0
jne 0x408132
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00407eb8
mov dword [0x4138a0], eax
lea edx, [ebp - 0x824]
mov eax, dword [0x4138a0]
add eax, 0x11
call fcn.00407e70
mov edx, dword [ebp - 0x824]
mov eax, 0x4138a8
call fcn.00403bb4
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
call fcn.00407db0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x4138a0]
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 - 0x10]
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 [0x4138a8]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [esi], eax
push 2
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_SetFilePointer_1
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea eax, [ebp - 0x811]
push eax
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ReadFile_1
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x811]
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile_1
cmp dword [ebp - 0x10], 0
jne 0x40821d
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [0x4138a4]
call fcn.00407eb8
mov dword [0x4138a0], eax
lea edx, [ebp - 0x828]
mov eax, dword [0x4138a0]
add eax, 0x11
call fcn.00407e70
mov edx, dword [ebp - 0x828]
mov eax, 0x4138a8
call fcn.00403bb4
mov eax, dword [0x4138a4]
call fcn.00407db0
mov dword [0x4138ac], eax
mov dword [0x4138b0], edx
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [0x4138ac]
mov dword [edi + 8], eax
mov eax, dword [0x4138b0]
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], 1
lea eax, [edi + 0x11]
xor ecx, ecx
mov edx, 0x105
call fcn.00402bf8
push 0
lea eax, [ebp - 0x10]
push eax
push 0x118
push edi
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.00403fc8
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_DeleteFileA
push 0
push ebx
lea eax, [ebp - 0x82c]
mov ecx, 0x408390
mov edx, dword [ebp - 4]
call fcn.00403e1c
mov eax, dword [ebp - 0x82c]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x830]
mov ecx, 0x408390
mov edx, dword [ebp - 4]
call fcn.00403e1c
mov eax, dword [ebp - 0x830]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40837f
lea eax, [ebp - 0x830]
mov edx, 7
call fcn.00403b84
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b84
ret