Function at 0x454860
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bae2a
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4e7d04]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00402e80
movzx eax, al
test eax, eax
je 0x4548a1
xor eax, eax
jmp 0x454ad6
mov ecx, dword [ebp + 8]
call fcn.00402e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4548bb
xor eax, eax
jmp 0x454ad6
lea ecx, [ebp - 0x10]
call fcn.00404750
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00482260
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x424]
push edx
call fcn.00482260
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x424]
push ecx
call fcn.00482e26
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.004041e0
mov word [ebp - 0x428], ax
movzx edx, word [ebp - 0x428]
push edx
call fcn.00485855
add esp, 4
mov word [ebp - 0x428], ax
movzx eax, word [ebp - 0x424]
movzx ecx, word [ebp - 0x428]
cmp eax, ecx
jne 0x454965
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4549bb
push 0
mov ecx, dword [ebp + 8]
call fcn.004092f0
movzx eax, ax
push eax
push 0x4c5918
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004051d0
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4549bb
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00403ac0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040abe0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00404680
lea ecx, [ebp - 0x10]
call fcn.00402e20
push eax
mov ecx, dword [ebp + 8]
call fcn.00402e20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x454a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.move__s_to__s__failed__error_d
call fcn.00449630
add esp, 0x10
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404680
mov eax, dword [ebp - 0x430]
jmp 0x454ad6
mov ecx, dword [ebp + 8]
call fcn.00402e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454a9a
lea ecx, [ebp - 0x10]
call fcn.00402e20
push eax
call fcn.004545b0
add esp, 4
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404680
mov eax, dword [ebp - 0x434]
jmp 0x454ad6
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004027b0
mov dword [ebp - 0x438], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404680
mov eax, dword [ebp - 0x438]
jmp 0x454ad6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004820d9
mov esp, ebp
pop ebp
ret