Function at 0x40b286
Capabilities:
Copy file
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x64
push 0x422ee0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454a38
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454a3c
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454a44
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x422ee0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b329
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x40b329
cmp dword [ebp - 8], 2
je 0x40b329
push 0x40001
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
push 0x454a4c
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454a50
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454a58
push 0x423050
call fcn.0041a84c
add esp, 8
cmp dword [ebp + 8], 0
je 0x40b433
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a850
add esp, 8
push 0x454a60
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
push 0x454a64
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
push 0x454a6c
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40b433
push 0
push 0x423050
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40b41f
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b677
push 0
push pe_nt_image_headers32
push 2
push 0x423140
push 0
push 0xc0000000
push 0x423050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4230b4], eax
cmp dword [0x4230b4], 0xffffffff
jne 0x40b55c
push 0x64
push 0x422ee0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454a74
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454a78
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454a80
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x422ee0
push 0x423050
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b4fd
cmp dword [ebp - 8], 5
je 0x40b4fd
cmp dword [ebp - 8], 2
je 0x40b4fd
cmp dword [ebp - 8], 0xb7
je 0x40b4fd
push 0x40002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
push 0
push pe_nt_image_headers32
push 2
push 0x423140
push 0
push 0xc0000000
push 0x423050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4230b4], eax
cmp dword [0x4230b4], 0xffffffff
jne 0x40b54b
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
mov eax, dword [0x4230b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b568
mov eax, dword [0x4230b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454a88
push 0x423050
call fcn.0041a84c
add esp, 8
push str.haspvdd
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454a94
push 0x423050
call fcn.0041a84c
add esp, 8
push 0
push pe_nt_image_headers32
push 2
push 0x423140
push 0
push 0xc0000000
push 0x423050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x422ed4], eax
cmp dword [0x422ed4], 0xffffffff
jne 0x40b5f4
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
push 0
lea eax, [ebp - 4]
push eax
push 0x1800
push 0x452710
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b640
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b670
push 0x40005
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40b677
xor eax, eax
jmp 0x40b677
pop edi
pop esi
pop ebx
leave
ret