Function at 0x40b67c
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 0x454a9c
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454aa0
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454aa8
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x422ee0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b71f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x40b71f
cmp dword [ebp - 8], 2
je 0x40b71f
push 0x40001
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ba77
push 0x454ab0
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454ab4
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454abc
push 0x423050
call fcn.0041a84c
add esp, 8
cmp dword [ebp + 8], 0
je 0x40b829
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a850
add esp, 8
push 0x454ac4
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
push 0x454ac8
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
push 0x454ad0
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 0x40b829
push 0
push 0x423050
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40b815
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 0x40ba77
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40ba77
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 0x40b95b
push 0x64
push 0x422ee0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454ad8
push 0x422ee0
call fcn.0041a84c
add esp, 8
push 0x454adc
push 0x422ee0
call fcn.0041a84c
add esp, 8
push str..dl_
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 0x40b8fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x40b8fc
cmp dword [ebp - 8], 2
je 0x40b8fc
cmp dword [ebp - 8], 0xb7
je 0x40b8fc
push 0x40002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ba77
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 0x40b94a
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ba77
mov eax, dword [0x4230b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b967
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 0x454aec
push 0x423050
call fcn.0041a84c
add esp, 8
push str.hlvdd
push 0x423050
call fcn.0041a84c
add esp, 8
push str..dll
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 0x40b9f3
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ba77
push 0
lea eax, [ebp - 4]
push eax
call fcn.004156e2
push eax
push 0x4ae268
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ba40
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 0x40ba77
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ba70
push 0x40005
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ba77
xor eax, eax
jmp 0x40ba77
pop edi
pop esi
pop ebx
leave
ret