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

Disassembly:
push 0x7c
mov eax, 0x4c202c
call fcn.0043c09b
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.0040cf49
test eax, eax
push 0x4dfbb4
jne 0x42ae41
mov ecx, dword [ebp - 0x7c]
call fcn.004015c0
jmp 0x42b045
mov ecx, edi
call fcn.0040cf49
test eax, eax
je 0x42ae73
cmp dword [edi + 0x18], 8
jb 0x42ae57
mov eax, dword [edi + 4]
jmp 0x42ae5a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ae73
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.004035b0
jmp 0x42b045
push esi
lea ecx, [ebp - 0x5c]
call fcn.004035b0
mov dword [ebp - 4], ebx
call fcn.0041c553
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 0x4c6d18
push eax
call fcn.0043c4d1
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004036c0
push str..ico
lea ecx, [ebp - 0x5c]
call fcn.004036c0
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42aecd
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42aee9
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
push eax
call fcn.004035b0
jmp 0x42b03a
push esi
lea ecx, [ebp - 0x78]
call fcn.004035b0
push str.icon.ico
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004036c0
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x42af0f
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 0x42afa9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call fcn.0043158e
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.0041afcd
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 0x4cc00c
push eax
call fcn.0043e223
push 8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x80]
add eax, esi
push eax
call fcn.0043b140
add esp, 0x20
add esi, 8
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42afb5
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x80], ebx
je 0x42b023
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42afcd
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 0x42b023
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 0x42b017
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x5c]
jmp 0x42b026
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
push eax
call fcn.004035b0
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004017c0
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004017c0
mov eax, dword [ebp - 0x7c]
call fcn.0043c11e
ret 4