Function at 0x42e4c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1020
call fcn.004b3620
mov eax, dword [0x4f9008]
xor eax, esp
mov dword [esp + 0x101c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ecx + 4]
push esi
push edi
mov dword [esp + 0x14], ecx
jb 0x42e4f9
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e531
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42e561
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x42e58b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
pop edi
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x42e59a
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e5d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
pop edi
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x1000
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e6c7
movups xmm1, xmmword [0x4d8510]
nop word [eax + eax]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x42e6c7
xor eax, eax
test edx, edx
je 0x42e67c
cmp edx, 0x40
jb 0x42e66f
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x20]
pandn xmm0, xmm1
movups xmmword [esp + eax + 0x20], xmm0
movups xmm0, xmmword [esp + eax + 0x30]
pandn xmm0, xmm1
movups xmmword [esp + eax + 0x30], xmm0
movups xmm0, xmmword [esp + eax + 0x40]
pandn xmm0, xmm1
movups xmmword [esp + eax + 0x40], xmm0
movups xmm0, xmmword [esp + eax + 0x50]
pandn xmm0, xmm1
movups xmmword [esp + eax + 0x50], xmm0
add eax, 0x40
cmp eax, ecx
jb 0x42e630
cmp eax, edx
jae 0x42e67c
not byte [esp + eax + 0x20]
inc eax
cmp eax, edx
jb 0x42e673
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x1000
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movups xmm1, xmmword [0x4d8510]
test eax, eax
jne 0x42e610
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp byte [ebp + 0x10], 0
je 0x42e6e5
push dword [esp + 0x14]
call sym.XNewLook.exe_int___cdecl_LFile::strong_delete_file_full_class_LString_const__
add esp, 4
mov ecx, dword [esp + 0x1024]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret