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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beb58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405a00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00460480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x460449
push 0
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
call fcn.004a2874
add esp, 8
test eax, eax
jne 0x460447
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004057a0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1c]
push edx
call fcn.00401f50
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00417fe0
mov byte [ebp - 4], 2
push 0x105
lea ecx, [ebp - 0x20]
call fcn.004055f0
push eax
push 0
push 0x4c8728
lea ecx, [ebp - 0x1c]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.004055c0
cmp dword [ebp - 0x24], 0
jne 0x460268
mov eax, dword [ebp - 0x18]
push eax
push 0x4c872c
lea ecx, [ebp - 0x20]
push ecx
call fcn.00405770
add esp, 0xc
jmp 0x460277
lea ecx, [ebp - 0x20]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x20]
call fcn.004683f0
push eax
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
call fcn.0049d893
add esp, 8
test eax, eax
je 0x46035b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c873c
push 0x4e77f8
call fcn.00489600
add esp, 0xc
push str.0000.
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00460480
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00417fc0
cmp dword [ebp - 0x14], 0
je 0x460339
push 0x4c8768
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x48], eax
push 5
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00417fc0
jmp 0x460356
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
jmp 0x460450
jmp 0x46042d
push 4
push 0
lea ecx, [ebp - 0x20]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00460480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46042d
push 0x4c876c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00460480
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00417fc0
cmp dword [ebp - 0x14], 0
je 0x460413
push 0x4c8770
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x54], eax
push 5
lea ecx, [ebp - 0x18]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
call fcn.00417fc0
jmp 0x46042d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
jmp 0x460450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
jmp 0x460449
jmp 0x460450
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00417fc0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4