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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535e90
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x74], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x18]
push 0xc
push str.GameIconNull
push dword [edi + 0x10]
mov ecx, edi
mov dword [ebp - 0x84], 0
push 0
call fcn.004169a0
test eax, eax
jne 0x42b607
push 0x63d8a0
mov ecx, esi
call fcn.004024f0
jmp 0x42b8e7
push 0
push 0x63d8a0
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004169a0
test eax, eax
je 0x42b658
cmp dword [edi + 0x14], 8
jb 0x42b628
mov eax, dword [edi]
jmp 0x42b62a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b658
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004028b0
jmp 0x42b8e7
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x44], 7
push 0xffffffffffffffff
push eax
push edi
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.004028b0
mov dword [ebp - 4], 0
call fcn.004d0590
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
push 0x548870
push eax
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call fcn.00407eb0
add esp, 0xc
cmp word [ebp - 0x40], 0
jne 0x42b6b4
xor ecx, ecx
jmp 0x42b6cf
lea ecx, [ebp - 0x40]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b6c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404290
push 4
push str..ico
lea ecx, [ebp - 0x58]
call fcn.00404290
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 0x42b73d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x58]
push eax
call fcn.00404220
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x42b8e7
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402750
jmp 0x42b8e7
xor eax, eax
mov dword [ebp - 0x5c], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004028b0
push 8
push str.icon.ico
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00404290
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0x80
push 4
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 0
cmp eax, 0xffffffff
je 0x42b82c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x78], eax
lea ecx, [eax + 0xa]
push ecx
call fcn.0046831d
add esp, 4
mov dword [ebp - 0x7c], 0
mov edi, eax
lea eax, [ebp - 0x7c]
push 0
push eax
push dword [ebp - 0x78]
push edi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x895440
push 0xf4240
call fcn.004d0b1f
push eax
xor ecx, ecx
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x17], ecx
push 0x588a88
push eax
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
call fcn.0040a590
mov ecx, dword [ebp - 0x78]
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + ecx + 4], eax
add ecx, 8
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x42b8b9
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 dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x42b8b9
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push ecx
push dword [ebp - 0x78]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x74]
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]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x58]
jmp 0x42b8cf
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.00404220
lea ecx, [ebp - 0x70]
call fcn.004024b0
lea ecx, [ebp - 0x58]
call fcn.004024b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret 4