Function at 0x1400834a8
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 [0x14017a048]
lea rsi, [0x14017a048]
lea r13, [0x1401583d8]
cmp rcx, rsi
je 0x140083507
test byte [rcx + 0x1c], 1
je 0x140083507
cmp byte [rcx + 0x19], 4
jb 0x140083507
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov r8, r13
call fcn.140004b70
mov rcx, qword [0x14017a048]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rdi, rdi
jne 0x140083531
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.1400876c8
mov rcx, qword [0x14017a048]
test ebp, ebp
jne 0x140083554
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.1400876c8
mov rcx, qword [0x14017a048]
test r14, r14
jne 0x140083578
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.1400876c8
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14008359d
test byte [rcx + 0x1c], 1
je 0x14008359d
cmp byte [rcx + 0x19], 4
jb 0x14008359d
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r9, rdi
mov r8, r13
call fcn.140005c30
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 0x140083639
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 [0x14017a048]
lea rbp, [0x14017a048]
cmp rcx, rbp
je 0x14008370b
test byte [rcx + 0x1c], 1
je 0x1400836e9
cmp byte [rcx + 0x19], 2
jb 0x1400836e9
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005ca0
jmp 0x1400836e2
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 0x1400836ae
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 [0x14017a048]
lea rbp, [0x14017a048]
cmp rcx, rbp
je 0x1400836d3
test byte [rcx + 0x1c], 1
je 0x1400836d3
cmp byte [rcx + 0x19], 2
jb 0x1400836d3
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, eax
mov r8, r13
call fcn.140004b9c
jmp 0x1400836d3
cmp ebp, dword [rsp + 0x70]
je 0x1400836cc
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.1400876c8
lea rbp, [0x14017a048]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, rbp
je 0x14008370b
test byte [rcx + 0x1c], 1
je 0x14008370b
cmp byte [rcx + 0x19], 4
jb 0x14008370b
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r13
call fcn.140004b70
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