Function at 0x454807
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x74
mov eax, 0x5c28b6
call fcn.004b8fda
mov ebx, ecx
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x18]
and dword [ebp - 0x80], 0
mov ecx, edi
push str.GameIconNull
call fcn.0043ec1f
push 0x625cd8
test eax, eax
jne 0x454840
mov ecx, esi
call fcn.00420790
jmp 0x454a61
mov ecx, edi
call fcn.0043ec1f
test eax, eax
je 0x45486f
cmp dword [edi + 0x14], 8
jb 0x454855
mov eax, dword [edi]
jmp 0x454857
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45486f
push edi
mov ecx, esi
call fcn.00422ad0
jmp 0x454a61
push ebx
lea ecx, [ebp - 0x58]
call fcn.00422ad0
and dword [ebp - 4], 0
call fcn.0043bc24
push 0xa
mov edx, eax
lea edi, [ebp - 0x40]
pop ecx
xor eax, eax
push edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push 0x626f54
push eax
call fcn.0044b4c4
add esp, 0xc
cmp word [ebp - 0x40], 0
jne 0x4548aa
xor eax, eax
jmp 0x4548b4
lea eax, [ebp - 0x40]
push eax
call fcn.0059c41c
pop ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00422d00
mov edi, str..ico
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.00422d00
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4548fd
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00423070
jmp 0x454a55
push ebx
lea ecx, [ebp - 0x70]
call fcn.00422ad0
mov edi, str.icon.ico
mov byte [ebp - 4], 1
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.00422d00
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
cmp eax, 0xffffffff
je 0x4549ca
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x74], edi
lea ecx, [edi + 0xa]
push ecx
call fcn.004b8b32
and dword [ebp - 0x7c], 0
mov ebx, eax
pop ecx
push 0
lea eax, [ebp - 0x7c]
push eax
push edi
mov edi, dword [ebp - 0x78]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x895440
push 0xf4240
call fcn.0043c813
push eax
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
push 0x5c8b44
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
call fcn.0043f085
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x18]
push 8
push eax
lea eax, [ebx + edi]
push eax
call fcn.005986a0
add esp, 0x20
add edi, 8
mov dword [ebp - 0x74], edi
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x454a3e
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454a3e
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push 0
push eax
push dword [ebp - 0x74]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x58]
jmp 0x454a41
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.00423070
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.004208a0
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004208a0
mov eax, esi
call fcn.004b8f84
ret 4