Function at 0x1400838e8
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 ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
lea r13, [0x140159548]
cmp rcx, rsi
je 0x140083947
test byte [rcx + 0x1c], 1
je 0x140083947
cmp byte [rcx + 0x19], 4
jb 0x140083947
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov r8, r13
call fcn.140004c10
mov rcx, qword [0x14017b048]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rdi, rdi
jne 0x140083971
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140087b08
mov rcx, qword [0x14017b048]
test ebp, ebp
jne 0x140083994
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140087b08
mov rcx, qword [0x14017b048]
test r14, r14
jne 0x1400839b8
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140087b08
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x1400839dd
test byte [rcx + 0x1c], 1
je 0x1400839dd
cmp byte [rcx + 0x19], 4
jb 0x1400839dd
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r9, rdi
mov r8, r13
call fcn.140005cd0
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140083a79
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rbp, [0x14017b048]
cmp rcx, rbp
je 0x140083b4b
test byte [rcx + 0x1c], 1
je 0x140083b29
cmp byte [rcx + 0x19], 2
jb 0x140083b29
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005d40
jmp 0x140083b22
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140083aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rbp, [0x14017b048]
cmp rcx, rbp
je 0x140083b13
test byte [rcx + 0x1c], 1
je 0x140083b13
cmp byte [rcx + 0x19], 2
jb 0x140083b13
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, eax
mov r8, r13
call fcn.140004c3c
jmp 0x140083b13
cmp ebp, dword [rsp + 0x70]
je 0x140083b0c
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140087b08
lea rbp, [0x14017b048]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rbp
je 0x140083b4b
test byte [rcx + 0x1c], 1
je 0x140083b4b
cmp byte [rcx + 0x19], 4
jb 0x140083b4b
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r13
call fcn.140004c10
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