Function at 0x405a20
Capabilities:
Check if file exists
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea640
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, edx
cmp dword [ebx + 0x10], 0
mov edi, ecx
mov dword [ebp - 0x4c], esi
je 0x405d63
cmp dword [edi + 0x14], 8
jb 0x405a69
mov eax, dword [edi]
jmp 0x405a6b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d63
cmp dword [edi + 0x14], 8
jb 0x405a84
mov eax, dword [edi]
jmp 0x405a86
mov eax, edi
push 0x506840
push eax
call fcn.004b2a7f
mov esi, eax
add esp, 8
test esi, esi
jne 0x405ad8
mov ecx, dword [ebp - 0x4c]
push 8
push 0x50686c
call fcn.00404960
cmp dword [edi + 0x14], 8
jb 0x405ab1
mov edi, dword [edi]
push edi
push str.UnCmpAssetFile
push str.PublicCommonCommonFun.cpp
mov edx, 0x13d
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
add esp, 0xc
jmp 0x405d71
push esi
push 2
lea eax, [ebp - 0x50]
push 1
push eax
call fcn.004b2e67
push esi
call fcn.004b2ef1
mov ax, word [ebp - 0x50]
add esp, 0x14
cmp al, 0x37
jne 0x405c77
cmp ah, 0x7a
jne 0x405c8a
xor esi, esi
push 0x5062dc
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00403a10
add esp, 0xc
push str._back_
lea ecx, [ebp - 0x48]
push ebx
push ecx
mov dword [ebp - 4], 0
call fcn.00403a10
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x405b41
lea eax, [ebp - 0x48]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x405b63
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x405b5a
lea eax, [ebp - 0x48]
push eax
call fcn.00405440
add esp, 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405b6f
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x405b9b
mov ecx, dword [ebp - 0x48]
mov eax, 8
cmp dword [ebp - 0x34], eax
jae 0x405b86
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x405b91
lea eax, [ebp - 0x2c]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
xor bl, bl
cmp esi, eax
jne 0x405cdb
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
jae 0x405bbc
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x5c]
push edx
push eax
mov ecx, edi
call fcn.004042e0
mov esi, dword [ebp - 0x4c]
mov ecx, esi
mov edx, eax
call fcn.00462390
mov bl, al
add esp, 8
test bl, bl
jne 0x405d45
push 0xa
push 0x506904
mov ecx, esi
call fcn.00404960
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405bfb
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.004042e0
push eax
push 0x50691c
mov edx, 0x164
push str.PublicCommonCommonFun.cpp
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x405c35
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c60
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x405c4b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x405c56
lea eax, [ebp - 0x48]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov al, bl
jmp 0x405d73
cmp al, 0x50
jne 0x405c8a
cmp ah, 0x4b
jne 0x405c8a
mov esi, 1
jmp 0x405b06
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, 0x5069f8
call fcn.00404090
mov eax, dword [0x5430d8]
test eax, eax
je 0x405d71
cmp dword [eax + 8], 2
mov edi, eax
jl 0x405d71
push str.PublicCommonCommonFun.cpp
push 2
push ecx
mov edx, esp
mov dword [ebp - 0x4c], esp
push edx
mov ecx, str._rN_e
mov esi, 0x148
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
jmp 0x405d71
cmp esi, 1
jne 0x405c25
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x405cf4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004042e0
push eax
xor edx, edx
xor ecx, ecx
call fcn.00449bd0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x405d4a
mov ecx, dword [ebp - 0x4c]
push 0xb
push 0x50695c
call fcn.00404960
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x405d2d
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.004042e0
push eax
push 0x506a28
mov edx, 0x16d
jmp 0x405c0e
mov esi, 8
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x405d55
lea eax, [ebp - 0x48]
push eax
call fcn.00405440
add esp, 4
jmp 0x405c60
push 0xf
push 0x50699c
mov ecx, esi
call fcn.00404960
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret