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

Disassembly:
sub esp, 0x348
mov eax, dword [0x43c17c]
push ebx
push ebp
push esi
push edi
push 0x69
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.0042845d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.0040e6b0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x150]
push ecx
push edx
call esi
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x254]
push eax
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x4c]
push 0x43bcc8
push edx
call esi
mov eax, dword [esp + 0x360]
xor edi, edi
cmp eax, edi
je 0x40d62e
lea eax, [esp + 0x150]
push 0x43b3f8
push eax
jmp 0x40d63b
lea ecx, [esp + 0x150]
push 0x43bbe4
push ecx
call esi
lea edx, [esp + 0x254]
push 0x43b218
push edx
call esi
lea eax, [esp + 0x150]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40d6ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x43c17c]
mov esi, eax
lea eax, [esp + 0x150]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], edx
push eax
push ecx
lea edx, [esp + 0x18]
push 0x43bca4
push edx
call fcn.004239b7
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
push esi
push eax
push 0x43bc94
push ecx
call fcn.004239b7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x36c]
add esp, 0x10
push 0x10
push edx
push eax
call fcn.004266d5
lea ecx, [esp + 0x10]
jmp 0x40d7df
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push 1
lea ecx, [esp + 0x268]
push 0x80000000
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40d75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x43c17c]
mov esi, eax
lea eax, [esp + 0x254]
lea ecx, [esp + 0x10]
push eax
push 0x43bc78
push ecx
mov dword [esp + 0x1c], edx
call fcn.004239b7
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push esi
push edx
push 0x43bc94
push eax
call fcn.004239b7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x364]
push edx
call fcn.004266d5
lea ecx, [esp + 0x10]
jmp 0x40d7df
push edi
push 0x80
push 3
push edi
push 2
lea eax, [esp + 0x164]
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d803
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x43c17c]
lea edx, [esp + 0x254]
mov esi, eax
push edx
lea eax, [esp + 0x14]
push 0x43bc78
push eax
mov dword [esp + 0x1c], ecx
call fcn.004239b7
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push esi
push ecx
push 0x43bc94
push edx
call fcn.004239b7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0x10
push eax
push ecx
mov ecx, dword [esp + 0x368]
call fcn.004266d5
lea ecx, [esp + 0x10]
call fcn.004281b5
lea ecx, [esp + 0x18]
call fcn.004281b5
lea ecx, [esp + 0x14]
call fcn.004281b5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xeaf0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.00415dea
add esp, 4
mov esi, eax
xor eax, eax
lea edx, [esp + 0x1c]
mov ecx, 0x3abc
mov edi, esi
push eax
push edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xeaf0
push esi
push ebp
call edi
test eax, eax
je 0x40d8a1
mov eax, dword [esp + 0x1c]
push 0xeaf0
push eax
call fcn.0040e200
add esp, 8
lea ecx, [esp + 0x24]
push 0
push 0x43bc70
push ecx
call fcn.00415d98
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x20]
push 0
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x1c], 0xeaf0
jb 0x40d8a1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0xeaf0
push esi
push ebp
call edi
test eax, eax
jne 0x40d849
push 0x64
lea edx, [esp + 0x28]
push 0x43bc70
push edx
call fcn.00415d98
push esi
call fcn.00415caf
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push ebx
call esi
push ebp
call esi
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call fcn.004281b5
lea ecx, [esp + 0x14]
call fcn.004281b5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x348
ret