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

Disassembly:
push 0x7c
mov eax, 0x4c4b5f
call fcn.0043e6eb
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.0040d2c7
test eax, eax
push 0x4e3094
jne 0x42d36c
mov ecx, dword [ebp - 0x7c]
call fcn.004015d0
jmp 0x42d570
mov ecx, edi
call fcn.0040d2c7
test eax, eax
je 0x42d39e
cmp dword [edi + 0x18], 8
jb 0x42d382
mov eax, dword [edi + 4]
jmp 0x42d385
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d39e
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.00403330
jmp 0x42d570
push esi
lea ecx, [ebp - 0x5c]
call fcn.00403330
mov dword [ebp - 4], ebx
call fcn.0041ea0b
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 0x4ca390
push eax
call fcn.0043ec14
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 0x42d3f8
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d414
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
push eax
call fcn.00403330
jmp 0x42d565
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 0x42d43a
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 0x42d4d4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call fcn.00433c04
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.0041d485
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 0x4cf51c
push eax
call fcn.00440873
push 8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x80]
add eax, esi
push eax
call fcn.0043d790
add esp, 0x20
add esi, 8
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d4e0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x80], ebx
je 0x42d54e
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42d4f8
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 0x42d54e
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 0x42d542
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x5c]
jmp 0x42d551
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.0043e76e
ret 4