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

Disassembly:
push 0x7c
mov eax, 0x4c4be0
call fcn.0043e75b
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.0040d2f7
test eax, eax
push 0x4e31d4
jne 0x42d3b0
mov ecx, dword [ebp - 0x7c]
call fcn.004015a0
jmp 0x42d5b4
mov ecx, edi
call fcn.0040d2f7
test eax, eax
je 0x42d3e2
cmp dword [edi + 0x18], 8
jb 0x42d3c6
mov eax, dword [edi + 4]
jmp 0x42d3c9
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d3e2
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.00403330
jmp 0x42d5b4
push esi
lea ecx, [ebp - 0x5c]
call fcn.00403330
mov dword [ebp - 4], ebx
call fcn.0041e525
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.0043ec84
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 0x42d43c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d458
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
push eax
call fcn.00403330
jmp 0x42d5a9
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 0x42d47e
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 0x42d518
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call fcn.00433c4c
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.0041d48d
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 0x4cf654
push eax
call fcn.004408e3
push 8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x80]
add eax, esi
push eax
call fcn.0043d800
add esp, 0x20
add esi, 8
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d524
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x80], ebx
je 0x42d592
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d53c
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 0x42d592
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 0x42d586
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x5c]
jmp 0x42d595
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
push eax
call fcn.00403330
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00401770
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401770
mov eax, dword [ebp - 0x7c]
call fcn.0043e7de
ret 4