Function at 0x4608b0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf740
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
call fcn.00417fe0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004623b0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004058b0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.004619b0
mov ecx, eax
call fcn.004617c0
test eax, eax
jle 0x460949
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405d40
jmp 0x460955
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406eb0
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00460c40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x460bfb
push 0
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
call fcn.004a2874
add esp, 8
test eax, eax
jne 0x460bf9
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x30]
call fcn.004057a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.00401f50
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00417fe0
mov byte [ebp - 4], 3
push 0x105
lea ecx, [ebp - 0x34]
call fcn.004055f0
push eax
push 0
push 0x4c8778
lea ecx, [ebp - 0x30]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x38], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.004055c0
cmp dword [ebp - 0x38], 0
jne 0x460a04
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x4c877c
lea edx, [ebp - 0x34]
push edx
call fcn.00405770
add esp, 0xc
jmp 0x460a13
lea ecx, [ebp - 0x34]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.004683f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
call fcn.0049d893
add esp, 8
test eax, eax
je 0x460af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x4e77f8
call fcn.00489600
add esp, 0xc
push 0x4c87b4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00460c40
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00417fc0
cmp dword [ebp - 0x1c], 0
je 0x460ad5
push 0x4c87b8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x5c], eax
push 5
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x40]
call fcn.00417fc0
jmp 0x460af2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00417fc0
jmp 0x460c02
jmp 0x460bdf
mov edx, dword [ebp - 0x34]
push edx
push str.MoveFileEx_Rename_file_succeed__path:_ws
push 0x4e77f8
call fcn.00489600
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x34]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00460c40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x460bdf
push 0x4c87e8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00460c40
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00417fc0
cmp dword [ebp - 0x1c], 0
je 0x460bc5
push 0x4c87ec
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x68], eax
push 5
lea ecx, [ebp - 0x2c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x68]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x48]
call fcn.00417fc0
jmp 0x460bdf
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00417fc0
jmp 0x460c02
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00417fc0
jmp 0x460bfb
jmp 0x460c02
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00417fc0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4