Function at 0x42bec0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4710c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
lea eax, [ebp + 0x104]
push eax
call fcn.00458243
mov eax, dword [ebp + 0xdc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x58], ebx
je 0x42c1cd
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x42c1cd
push 0x476378
push eax
call fcn.0043f8ef
add esp, 8
cmp eax, ebx
je 0x42c1cd
mov eax, dword [ebp + 0xd0]
cmp eax, ebx
je 0x42c1cd
mov ecx, dword [ebp + 0xd4]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x20], edx
je 0x42c1cd
lea ecx, [esp + 0x34]
call fcn.004372eb
mov edx, dword [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.004373b0
test eax, eax
je 0x42c1c0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x14]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x14]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42bffa
mov eax, dword [0x4ad780]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push str.Can_not_open_file___s_.
push edx
mov byte [esp + 0x64], 2
call fcn.00451685
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.0045f42f
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.004584d6
jmp 0x42c25c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x42c02e
push eax
call fcn.00458a48
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00454f14
cmp dword [esp + 0x18], ebx
je 0x42c1b3
mov cl, byte [esp + 0x13]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x60], 3
call fcn.00430250
test eax, eax
je 0x42c19a
lea eax, [ebp + 0xcc]
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, ebp
call fcn.0042be10
test eax, eax
je 0x42c1f6
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x42c0a8
xor edx, edx
jmp 0x42c0bf
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ebx
mov dword [esp + 0x1c], edx
jle 0x42c19a
xor eax, eax
mov edi, edx
mov ecx, dword [ebp + 0xd0]
mov edx, dword [esp + 0x28]
mov edx, dword [eax + edx + 4]
mov cl, byte [eax + ecx]
add eax, 0x10c
dec edi
mov byte [edx + esi], cl
jne 0x42c0cf
cmp dword [esp + 0x1c], ebx
jle 0x42c19a
mov edx, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c16d
mov eax, dword [0x4ad780]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push str.Can_not_create_file___s_.
push edx
mov byte [esp + 0x64], 4
call fcn.00451685
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.0045f42f
cmp esi, ebx
je 0x42c155
push esi
call fcn.00458a71
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.004584d6
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x42c248
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ebx
push edx
push eax
push esi
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x42c19a
push esi
call fcn.00458a71
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x28]
push eax
call fcn.00458a71
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp esi, ebx
je 0x42c1c0
push esi
call fcn.00458a71
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], bl
call fcn.0043732a
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call fcn.004584d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov ecx, dword [0x4ad780]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push str.PS_USER_IMG_file___s__is_changed_please_select_it_again.
push eax
mov byte [esp + 0x64], 5
call fcn.00451685
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ebx
push ebx
push ecx
call fcn.0045f42f
cmp esi, ebx
je 0x42c235
push esi
call fcn.00458a71
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 3
call fcn.004584d6
mov edx, dword [esp + 0x28]
push edx
call fcn.00458a71
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], bl
call fcn.0043732a
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call fcn.004584d6
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret