Function at 0x426820
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
add esi, 0x10
xorps xmm0, xmm0
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
movq qword [ebp - 0x48], xmm0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], ebx
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], esi
cmp dword [esi], ebx
jne 0x426872
push str.In_valid_argument_to_write_data__empty_document_data.
push 4
call fcn.0041f8e0
add esp, 8
mov ebx, 0x307
jmp 0x426c46
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x42687f
mov eax, dword [edi]
jmp 0x426881
mov eax, edi
push eax
call fcn.00401100
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x42689f
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], ebx
jne 0x4268bd
push str.In_valid_argument_to_write_data__null_document.
push 4
call fcn.0041f8e0
add esp, 8
mov ebx, 0x307
jmp 0x426c46
cmp dword [edi + 0x14], 0x10
jb 0x4268c7
mov eax, dword [edi]
jmp 0x4268c9
mov eax, edi
push eax
push dword [esi]
push str.Writing_CacheDoc_Data_At_Path___d____s_.
push 5
call fcn.0041f8e0
mov eax, dword [ebp + 0x10]
add esp, 0x10
cmp dword [eax + 0x30], ebx
lea esi, [eax + 0x30]
je 0x4268f0
cmp dword [eax + 0x34], 0xffffffff
jne 0x426ae3
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call fcn.004257f0
mov ebx, eax
test ebx, ebx
je 0x426925
push str.Failed_to_initialize_SLC_SD_ATTR.
push 4
call fcn.0041f8e0
add esp, 8
jmp 0x426c46
push 0
push str.__slc_features__
push dword [ebp + 0x10]
call fcn.00420480
add esp, 8
test al, al
mov eax, 0x80
mov ecx, 2
cmovne ecx, eax
push ecx
push 4
lea eax, [ebp - 0x34]
push eax
push 7
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4269f1
push str.Failed_to_open_file_in_write_mode__will_try_updating_File_attributes_and_try_to_open_again
push 4
call fcn.0041f8e0
push str.__slc_features__
push dword [ebp + 0x10]
call fcn.00420480
add esp, 0x10
test al, al
mov eax, 0x80
mov ecx, 2
cmovne ecx, eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4269fb
push str.Successfully_Updated_File_Attributes
push 5
call fcn.0041f8e0
add esp, 8
push 0
push str.__slc_features__
push dword [ebp + 0x10]
call fcn.00420480
add esp, 8
test al, al
mov eax, 0x80
mov ecx, 2
cmovne ecx, eax
push ecx
push 4
lea eax, [ebp - 0x34]
push eax
push 7
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x426a0a
cmp dword [edi + 0x14], 0x10
jb 0x426a2a
mov ecx, dword [edi]
jmp 0x426a2c
push str.Failed_to_Updated_File_Attributes
push 4
call fcn.0041f8e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_file_in_write_mode__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x302
jmp 0x426c46
mov ecx, edi
push ecx
push eax
push str.writeCacheDocDataAtPath:_CreateFile__lu_in_WRITE_mode:__s.
push 5
call fcn.0041f8e0
add esp, 0x10
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x426a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_the_file_handle_in_write_mode__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x302
jmp 0x426c46
test eax, eax
je 0x426ad5
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockFileEx]
cmp eax, 1
je 0x426ab6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_the_file_size_in_write_mode__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x302
jmp 0x426c46
cmp dword [edi + 0x14], 0x10
jb 0x426ac0
mov eax, dword [edi]
jmp 0x426ac2
mov eax, edi
push eax
push dword [ebp - 0xc]
push str.writeCacheDocDataAtPath:_Acquired_EXCLUSIVE_lock___lu__on_write_mode_file:_s.
push 5
call fcn.0041f8e0
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x34], ecx
push str.__slc_features__
push eax
call fcn.00420480
add esp, 8
test al, al
mov ecx, 0x80
mov eax, 2
cmovne eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x426b2f
call esi
push eax
mov ecx, edi
call fcn.00408160
push eax
push str.Update_File_Attributes___s__Failed_Error_code_:_d.
push 5
call fcn.0041f8e0
add esp, 0x10
mov eax, dword [ebp + 0x10]
push 0
push 0
push 0
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x426b61
call esi
push eax
push str.Failed_SetFilePointer__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x303
jmp 0x426c46
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x426b6c
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
push dword [ecx]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x426ba5
call esi
push eax
push str.Failed_write_data__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x303
jmp 0x426c46
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
je 0x426bcf
call esi
push eax
push str.Failed_to_set_the_eof_marker__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
mov ebx, 0x303
jmp 0x426c46
mov eax, dword [ebp - 0x10]
push 1
mov esi, dword [eax]
mov eax, dword [ebp + 0x10]
push 0
push 0
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push dword [ebp - 0x14]
push esi
push str.In_put_data_size:__d___data_written:__d___eof_loc:__d_.
push 5
call fcn.0041f8e0
mov esi, dword [ebp + 0x10]
add esp, 0x14
push dword [esi + 0x30]
add esi, 0x30
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x426c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_set_FlushFileBuffers__error_code:_d.
push 4
call fcn.0041f8e0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x426c2b
mov edi, dword [edi]
push edi
push str.writeCacheDocDataAtPath:_closeSLCDocumentFileHandle_write_mode_file:_s.
push 4
call fcn.0041f8e0
add esp, 0xc
test esi, esi
je 0x426c46
mov ecx, esi
call fcn.00426c90
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x426c56
push eax
call fcn.005864b7
add esp, 4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x426c6b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x426c79
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc