Function at 0x486a80
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x773f2c
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x1b0]
call fcn.00612210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b0]
call fcn.00613090
test al, al
je 0x486b02
lea ecx, [ebp - 0x1b0]
call fcn.006127e0
test al, al
jne 0x486b02
push 1
lea ecx, [ebp - 0x1b0]
call fcn.00613f00
push esi
lea ecx, [ebp - 0x17c]
call fcn.00612210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x17c]
call fcn.00613090
test al, al
je 0x486b3d
lea ecx, [ebp - 0x17c]
call fcn.006127e0
test al, al
jne 0x486b3d
push 1
lea ecx, [ebp - 0x17c]
call fcn.00613f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x17c]
call fcn.006124a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.006124a0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
push 0
push 0x799e88
lea ecx, [ebp - 0x148]
call fcn.0042fb60
mov dword [ebp - 4], 4
lea eax, [ebp - 0x148]
push eax
call fcn.00485520
add esp, 4
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x130]
call fcn.0042fa30
mov byte [ebp - 4], 6
cmp dword [ebp - 0x134], 0x10
jb 0x486c13
push dword [ebp - 0x148]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
mov dword [edi], 0
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00723180
add esp, 0xc
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.ctestemp
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x486cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x486c9d
push dword [ebp - 0x130]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jmp 0x486dba
cmp dword [ebx + 0x14], 0x10
jb 0x486cc5
mov ebx, dword [ebx]
push 0x1000
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
test eax, eax
je 0x486c77
cmp dword [esi + 0x14], 0x10
jb 0x486cea
mov esi, dword [esi]
push 9
push esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x486d48
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x486d29
push dword [ebp - 0x130]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov al, 1
jmp 0x486dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x486c9d
push dword [ebp - 0x130]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jmp 0x486dba
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00722035
mov esp, ebp
pop ebp
ret