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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51db1d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x570374]
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.004067b0
movzx eax, al
test eax, eax
je 0x404cc1
xor eax, eax
jmp 0x404f1d
mov ecx, dword [ebp + 8]
call fcn.00405660
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404cdb
xor eax, eax
jmp 0x404f1d
lea ecx, [ebp - 0x424]
call fcn.00405310
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.004a8eb0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.004a8eb0
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.004c792c
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.00405620
mov word [ebp - 0x428], ax
movzx edx, word [ebp - 0x428]
push edx
call fcn.004c7280
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 0x404d91
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x404de7
push 0
mov ecx, dword [ebp + 8]
call fcn.00406220
movzx edx, ax
push edx
push 0x52dac0
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00406f40
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404de7
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.00405290
mov byte [ebp - 4], 1
lea edx, [ebp - 0x424]
push edx
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004065a0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00405480
lea ecx, [ebp - 0x424]
call fcn.00405660
push eax
mov ecx, dword [ebp + 8]
call fcn.00405660
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x404e8b
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.0043c160
add esp, 0x10
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.00405480
mov eax, dword [ebp - 0x430]
jmp 0x404f1d
mov ecx, dword [ebp + 8]
call fcn.00405660
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ed8
lea ecx, [ebp - 0x424]
call fcn.00405660
push eax
call fcn.004049d0
add esp, 4
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.00405480
mov eax, dword [ebp - 0x434]
jmp 0x404f1d
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004055e0
mov dword [ebp - 0x438], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.00405480
mov eax, dword [ebp - 0x438]
jmp 0x404f1d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047c5a8
mov esp, ebp
pop ebp
ret