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

Disassembly:
push 0x7c
mov eax, 0x4c4b9c
call fcn.0043e71b
mov eax, dword [ebp + 8]
mov esi, ecx
lea edi, [esi + 0x1c]
xor ebx, ebx
push str.GameIconNull
mov ecx, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], ebx
call fcn.0040d330
test eax, eax
push 0x4e3194
jne 0x42d4f9
mov ecx, dword [ebp - 0x7c]
call fcn.004015d0
jmp 0x42d6fd
mov ecx, edi
call fcn.0040d330
test eax, eax
je 0x42d52b
cmp dword [edi + 0x18], 8
jb 0x42d50f
mov eax, dword [edi + 4]
jmp 0x42d512
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d52b
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.00403330
jmp 0x42d6fd
push esi
lea ecx, [ebp - 0x5c]
call fcn.00403330
mov dword [ebp - 4], ebx
call fcn.0041e8b0
mov edx, eax
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x40], bx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push 0x4ca3e0
push eax
call fcn.0043ec44
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403470
push str..ico
lea ecx, [ebp - 0x5c]
call fcn.00403470
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d585
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d5a1
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
push eax
call fcn.00403330
jmp 0x42d6f2
push esi
lea ecx, [ebp - 0x78]
call fcn.00403330
push str.icon.ico
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00403470
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x42d5c7
lea eax, [ebp - 0x74]
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
mov dword [ebp - 0x80], ebx
je 0x42d661
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call fcn.00433c36
pop ecx
push ebx
lea ecx, [ebp - 0x84]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x895440
push 0xf4240
call fcn.0041d519
mov ecx, eax
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push 0x4cf61c
push eax
call fcn.004408a3
push 8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x80]
add eax, esi
push eax
call fcn.0043d7c0
add esp, 0x20
add esi, 8
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d66d
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x80], ebx
je 0x42d6db
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d685
lea eax, [ebp - 0x58]
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d6db
push ebx
lea eax, [ebp - 0x88]
push eax
push esi
push dword [ebp - 0x80]
mov dword [ebp - 0x88], ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x42d6cf
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x5c]
jmp 0x42d6de
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
push eax
call fcn.00403330
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004017a0
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004017a0
mov eax, dword [ebp - 0x7c]
call fcn.0043e79e
ret 4