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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5205dd
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x572374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004067e0
movzx eax, al
test eax, eax
je 0x404cf1
xor eax, eax
jmp 0x404f4d
mov ecx, dword [ebp + 8]
call fcn.00405690
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404d0b
xor eax, eax
jmp 0x404f4d
lea ecx, [ebp - 0x424]
call fcn.00405340
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.004a9b50
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.004a9b50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x420]
push ecx
call fcn.004c8d14
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.00405650
mov word [ebp - 0x428], ax
movzx edx, word [ebp - 0x428]
push edx
call fcn.004c8660
add esp, 4
mov word [ebp - 0x428], ax
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x420]
movzx eax, word [ebp - 0x428]
cmp edx, eax
jne 0x404dc1
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x404e17
push 0
mov ecx, dword [ebp + 8]
call fcn.00406250
movzx edx, ax
push edx
push 0x530ac0
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00406f70
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404e17
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004052c0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x424]
push edx
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004065d0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004054b0
lea ecx, [ebp - 0x424]
call fcn.00405690
push eax
mov ecx, dword [ebp + 8]
call fcn.00405690
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x404ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.move__s_to__s__failed__error_d
call fcn.0043c2b0
add esp, 0x10
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.004054b0
mov eax, dword [ebp - 0x430]
jmp 0x404f4d
mov ecx, dword [ebp + 8]
call fcn.00405690
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404f08
lea ecx, [ebp - 0x424]
call fcn.00405690
push eax
call fcn.00404a00
add esp, 4
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.004054b0
mov eax, dword [ebp - 0x434]
jmp 0x404f4d
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00405610
mov dword [ebp - 0x438], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.004054b0
mov eax, dword [ebp - 0x438]
jmp 0x404f4d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d268
mov esp, ebp
pop ebp
ret