Function at 0x140086978
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x1400869d4
test byte [rcx + 0x1c], 1
je 0x1400869d4
cmp byte [rcx + 0x19], 4
jb 0x1400869d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x25
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rsi, rsi
jne 0x1400869fe
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140088f60
mov rcx, qword [0x14016a048]
test edi, edi
jne 0x140086a21
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140088f60
mov rcx, qword [0x14016a048]
test r14, r14
jne 0x140086a45
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140088f60
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140086a6e
test byte [rcx + 0x1c], 1
je 0x140086a6e
cmp byte [rcx + 0x19], 4
jb 0x140086a6e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x26
mov r9, rsi
call fcn.140014f10
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140086b09
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140086abb
mov ebx, eax
jmp 0x140086ac4
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140086bd5
test byte [rcx + 0x1c], 1
je 0x140086baf
cmp byte [rcx + 0x19], 2
jb 0x140086baf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
jmp 0x140086ba8
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140086b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140086b40
mov ebx, eax
jmp 0x140086b49
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140086b99
test byte [rcx + 0x1c], 1
je 0x140086b99
cmp byte [rcx + 0x19], 2
jb 0x140086b99
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x28
mov r9d, ebx
call fcn.14000c114
jmp 0x140086b99
cmp edi, dword [rsp + 0x70]
je 0x140086b99
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140088f60
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140086bd5
test byte [rcx + 0x1c], 1
je 0x140086bd5
cmp byte [rcx + 0x19], 4
jb 0x140086bd5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d8e8]
mov edx, 0x29
call fcn.14000c0e8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop rdi
ret