Function at 0x10026800
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.1008c5b0
mov eax, dword [0x101120a8]
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 0x10026839
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 0x10026871
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.1008bffe
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 0x100268a1
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.1008bffe
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x100268cb
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.1008bffe
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x100268da
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 0x10026916
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.1008bffe
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 0x10026a07
movups xmm1, xmmword [0x100f1e70]
nop word [eax + eax]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x10026a07
xor eax, eax
test edx, edx
je 0x100269bc
cmp edx, 0x40
jb 0x100269af
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 0x10026970
cmp eax, edx
jae 0x100269bc
not byte [esp + eax + 0x20]
inc eax
cmp eax, edx
jb 0x100269b3
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 [0x100f1e70]
test eax, eax
jne 0x10026950
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp byte [ebp + 0x10], 0
je 0x10026a25
push dword [esp + 0x14]
call sym.XNewLookSch.dll_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.1008bffe
mov esp, ebp
pop ebp
ret