Function at 0x14000b5d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x14001b030]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
lea r12, str._SynchronousPipe::Write_
mov qword [rsp + 0x58], r12
xor esi, esi
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x30], 0x78
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov rcx, qword [0x14001ce58]
test rcx, rcx
je 0x14000b745
mov rax, qword [rcx]
mov edx, 0x3e8
call qword [rax + 0x10]
test eax, eax
je 0x14000b745
mov r15d, 1
mov r8d, r15d
lea edx, [rsi + 2]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
lea rdx, [rsp + 0x68]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
mov rdx, r12
lea rcx, [rsp + 0x1b0]
call fcn.140002750
mov rcx, rax
lea rdx, str.Started
call fcn.140002750
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x2a8]
cmp qword [rsp + 0x2c0], 8
cmovae r8, qword [rsp + 0x2a8]
mov rcx, qword [0x14001ce58]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x2b8]
mov edx, 0x3e8
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
jmp 0x14000b74b
mov r15d, 1
test rbx, rbx
jne 0x14000b786
mov dword [rsp + 0x40], 0x57
lea rax, str.Checking_Parameters_
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xa0], xmm0
lea rdx, [0x1400182b0]
lea rcx, [rsp + 0xa0]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov r11d, 0xfa0
mov eax, dword [rsp + 0x34]
test eax, eax
cmovne r11d, eax
mov dword [rsp + 0x34], r11d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r13d, esi
mov r12d, esi
mov edi, r14d
nop
mov ecx, r12d
cmp rcx, r14
jae 0x14000b853
mov dword [rsp + 0x38], esi
mov r8d, edi
mov eax, dword [rsp + 0x34]
cmp eax, edi
cmovb r8d, eax
lea rdx, [rcx + rbx]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x14000b821
mov eax, dword [rsp + 0x38]
add r12d, eax
sub edi, eax
inc r13d
mov rbx, qword [rsp + 0x40]
jmp 0x14000b7d0
mov dword [rsp + 0x40], eax
lea rax, [0x140013740]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x1400182b0]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x3c], r15d
jmp 0x14000b863
lea rcx, [rsp + 0x70]
call fcn.140002450
nop
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14000cb70
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret