Function at 0x14008b2a8
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 [0x140183048]
lea rsi, [0x140183048]
lea r13, [0x140160bf8]
cmp rcx, rsi
je 0x14008b307
test byte [rcx + 0x1c], 1
je 0x14008b307
cmp byte [rcx + 0x19], 4
jb 0x14008b307
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov r8, r13
call fcn.140004e50
mov rcx, qword [0x140183048]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rdi, rdi
jne 0x14008b331
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008f4c8
mov rcx, qword [0x140183048]
test ebp, ebp
jne 0x14008b354
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008f4c8
mov rcx, qword [0x140183048]
test r14, r14
jne 0x14008b378
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008f4c8
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x14008b39d
test byte [rcx + 0x1c], 1
je 0x14008b39d
cmp byte [rcx + 0x19], 4
jb 0x14008b39d
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r9, rdi
mov r8, r13
call fcn.140005f10
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 0x14008b439
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 [0x140183048]
lea rbp, [0x140183048]
cmp rcx, rbp
je 0x14008b50b
test byte [rcx + 0x1c], 1
je 0x14008b4e9
cmp byte [rcx + 0x19], 2
jb 0x14008b4e9
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005f80
jmp 0x14008b4e2
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 0x14008b4ae
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 [0x140183048]
lea rbp, [0x140183048]
cmp rcx, rbp
je 0x14008b4d3
test byte [rcx + 0x1c], 1
je 0x14008b4d3
cmp byte [rcx + 0x19], 2
jb 0x14008b4d3
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, eax
mov r8, r13
call fcn.140004e7c
jmp 0x14008b4d3
cmp ebp, dword [rsp + 0x70]
je 0x14008b4cc
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.14008f4c8
lea rbp, [0x140183048]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x14008b50b
test byte [rcx + 0x1c], 1
je 0x14008b50b
cmp byte [rcx + 0x19], 4
jb 0x14008b50b
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r13
call fcn.140004e50
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