Function at 0x14000d920
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f68]
mov eax, 0x3068
call fcn.140055c00
sub rsp, rax
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov r13, rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x68], rdx
mov r12, qword [rbp + 0x2fd8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x70], r12
mov rdi, qword [rdx + 0x10]
mov eax, 4
mov ebx, eax
cmp rdi, rax
cmovb rbx, rdi
mov rcx, rdx
mov r14, qword [rdx + 0x18]
cmp r14, 0x10
jb 0x14000d99d
mov rcx, qword [rdx]
mov rsi, rbx
cmp rbx, rax
cmova rsi, rax
mov r8, rsi
lea rdx, [0x14005ee08]
call sub.VCRUNTIME140.dll_memcmp
mov r15d, 7
test eax, eax
jne 0x14000d9c6
cmp rbx, 4
je 0x14000da22
mov rcx, r13
cmp r14, 0x10
jb 0x14000d9d3
mov rcx, qword [r13]
mov r8, rsi
lea rdx, [0x14005edf0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000d9ec
cmp rbx, 4
je 0x14000da22
mov rbx, r15
cmp rdi, r15
cmovb rbx, rdi
mov rcx, r13
cmp r14, 0x10
jb 0x14000da03
mov rcx, qword [r13]
mov r8, rbx
cmp rbx, r15
cmova r8, r15
lea rdx, str.sendack
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000da26
cmp rbx, r15
jne 0x14000da26
xor edx, edx
jmp 0x14000da28
mov dl, 1
xor ecx, ecx
call fcn.14000cf30
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14000dd29
xor ebx, ebx
movzx r12d, byte [rbp + 0x2fd0]
test r12b, r12b
je 0x14000db74
mov r14, qword [r13 + 0x10]
movabs rax, 0x7fffffffffffffff
mov rcx, rax
sub rcx, r14
cmp rcx, 1
jb 0x14000ea77
mov r15, r13
cmp qword [r13 + 0x18], 0x10
jb 0x14000da7d
mov r15, qword [r13]
mov qword [rsp + 0x78], rbx
lea rsi, [r14 + 1]
mov ebx, recv
lea rdi, [rsp + 0x78]
cmp rsi, rbx
jbe 0x14000db0b
mov rbx, rsi
or rbx, 0xf
cmp rbx, rax
jbe 0x14000dacd
mov rbx, rax
movabs rax, 0x8000000000000027
mov rcx, rax
call fcn.140055554
test rax, rax
je 0x14000dc90
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000db06
mov eax, reloc.WS2_32.dll_shutdown
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000daf5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000ea71
jmp 0x14000daae
test rcx, rcx
je 0x14000db04
call fcn.140055554
mov rdi, rax
jmp 0x14000db06
xor edi, edi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rbx
mov byte [rdi], 0x58
lea rcx, [rdi + 1]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rsi], 0
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.140009f30
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14000db72
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000db6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dc90
call fcn.140055590
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x14000dba2
mov rcx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x14000db90
mov rcx, qword [r13]
mov r12, qword [rsp + 0x38]
mov rdx, r12
call fcn.14001d8c0
jmp 0x14000dca3
test r12b, r12b
je 0x14000dc9e
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rsi
cmp rax, 1
jb 0x14000ea77
mov r12, qword [rsp + 0x38]
mov r15, r12
cmp qword [r12 + 0x18], 8
jb 0x14000dbd9
mov r15, qword [r12]
mov qword [rsp + 0x78], rbx
lea r14, [rsi + 1]
mov ebx, 7
lea rdi, [rsp + 0x78]
cmp r14, rbx
jbe 0x14000dc24
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x14000dc02
mov rbx, rcx
jmp 0x14000dc0e
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x78]
call fcn.14000a3e0
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rbx
mov eax, 0x58
mov word [rdi], ax
lea rcx, [rdi + 2]
lea r8, [rsi + rsi]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
mov word [rdi + r14*2], bx
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140009fc0
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14000dca3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dc97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000dc97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
jmp 0x14000dca3
mov r12, qword [rsp + 0x38]
mov rax, 0xffffffffffffffff
cmp qword [r12 + 0x18], 8
jb 0x14000dcc2
mov rdx, qword [r12]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000dcb6
jmp 0x14000dcd0
inc rax
cmp word [r12 + rax*2], 0
jne 0x14000dcc2
mov rdx, r12
add eax, eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000dd62
lea rdx, str.ERROR_writing_command_to_namedPipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rcx, r13
call fcn.140009cc0
nop
mov rcx, r12
call fcn.14000a2b0
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.140055ba0
add rsp, 0x3068
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x44], 0xffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000dda4
lea rdx, str.ERROR_reading_output_namedPipe
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
jmp 0x14000dd18
mov dl, 1
mov ecx, dword [rsp + 0x44]
call fcn.14000cf30
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000dd29
mov dword [rsp + 0x34], 0xffffffff
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000ddf2
lea rdx, str.ERROR_reading_output_code:
jmp 0x14000dcf8
mov edx, 3
mov r10d, edx
cmp qword [r12 + 0x10], rdx
cmovb r10, qword [r12 + 0x10]
mov r9, r12
cmp qword [r12 + 0x18], 8
jb 0x14000de14
mov r9, qword [r12]
mov rcx, r10
cmp r10, rdx
cmova rcx, rdx
lea rax, [0x14005f838]
test rcx, rcx
je 0x14000e025
movzx edx, word [r9]
mov r8d, 0x63
cmp dx, r8w
jb 0x14000de67
sub r9, rax
cmp dx, r8w
ja 0x14000de67
cmp rcx, 1
je 0x14000e025
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14000de45
xor r15b, r15b
nop word [rax + rax]
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + 0x3d]
cmp eax, 1
jbe 0x14000e046
cmp ecx, 0xffffffc2
je 0x14000e04f
nop dword [rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp + 0x410]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x14000e00a
mov ecx, dword [rsp + 0x30]
cmp rcx, 0x401
jae 0x14000ea85
mov byte [rbp + rcx + 0x410], 0
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], si
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x410]
call fcn.14001d8c0
lea rcx, [0x1400d1640]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14000ea7d
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x40000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov ebx, eax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.140009290
lea rdx, [0x140009840]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea rcx, [0x1400d1640]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14000dfc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dfc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e7cc
call fcn.140055590
cmp dword [rsp + 0x30], 0x400
jne 0x14000e7d3
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14000e7e3
cmp dword [rsp + 0x40], 0
je 0x14000e7e3
cmp dword [rsp + 0x30], 0x400
jne 0x14000e7d3
test edi, edi
je 0x14000e7d7
jmp 0x14000de90
cmp r10, 3
jne 0x14000de67
mov rax, qword [rsp + 0x48]
cmp byte [rax + 8], sil
je 0x14000de67
mov r15b, 1
jmp 0x14000de70
cmp ecx, 0xffffffc2
jne 0x14000e2f3
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e87f
cmp qword [rsp + 0x38], 0
jbe 0x14000e859
lea rcx, [0x1400d1640]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14000ea69
mov edi, esi
test r15b, r15b
je 0x14000e0bd
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov edi, eax
mov rcx, qword [rsp + 0x38]
mov r8d, 0x2728
cmp rcx, r8
cmovb r8d, ecx
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x820]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e2a4
test r15b, r15b
je 0x14000e1a1
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov r8d, dword [rsp + 0x30]
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], 0
lea rdx, [rbp + 0x820]
lea rcx, [rsp + 0x78]
call fcn.14000a5d0
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
mov rcx, rbx
call fcn.1400090d0
lea rdx, [0x14000cd70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14000e291
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e28c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e28c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, dword [rsp + 0x30]
cmp rax, 0x2729
jae 0x14000ea8b
mov byte [rbp + rax + 0x820], 0
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], si
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x820]
call fcn.14001d8c0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x40000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov ebx, eax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.140009290
lea rdx, [0x140009840]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14000e291
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e28c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e852
call fcn.140055590
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rdx
mov qword [rsp + 0x38], rcx
jmp 0x14000e2ad
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test edx, edx
je 0x14000e2bf
test rcx, rcx
je 0x14000e2bf
cmp edx, 0xffffffff
jne 0x14000e0c2
test r15b, r15b
je 0x14000e2e2
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea rcx, [0x1400d1640]
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x14000e72c
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
xor edx, edx
mov r8d, 0x401
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
nop dword [rax + rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
lea rax, [rbp]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000e350
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000e399
lea rax, [rbx + rcx]
mov qword [rbp - 0x58], rax
lea rdi, [rbp - 0x68]
cmp rdx, 0x10
cmovae rdi, qword [rbp - 0x68]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14000e3b1
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140009630
cmp dword [rsp + 0x30], 0x400
jne 0x14000e3ca
test esi, esi
mov esi, 0
jne 0x14000e320
jmp 0x14000e3ce
test esi, esi
jne 0x14000e405
lea rdx, str.ERROR_reading_confirm_question:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor esi, esi
cmp dword [rsp + 0x34], 0xffffffc4
jne 0x14000e4e2
mov dword [rsp + 0x40], esi
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000e43f
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
mov r8, rbx
mov rcx, qword [rsp + 0x48]
call fcn.14000c080
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000e6f1
lea rdx, str.ERROR_writing_confirm_response_to_namedPipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14000e890
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e88b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e88b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x30], recv
mov qword [rbp - 0x38], 6
mov eax, dword [str.FAILED]
mov dword [rbp - 0x48], eax
movzx eax, word [0x14005f29c]
mov word [rbp - 0x44], ax
mov byte [rbp - 0x42], sil
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000e5e0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x28]
call rbx
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14000e5a5
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14000e577
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8f4
call fcn.140055590
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], recv
mov byte [rbp - 0x48], 0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14000e5e0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e5db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8f4
call fcn.140055590
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov edi, 7
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], si
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rcx, qword [rbp - 0x48]
lea rdx, [rsp + 0x78]
call fcn.14001d8c0
lea rcx, [rsp + 0x78]
mov r8, qword [rsp + 0x78]
mov r9, qword [rbp - 0x70]
cmp r9, 8
cmovae rcx, r8
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000e630
add eax, eax
lea rdx, [rsp + 0x78]
cmp r9, 8
cmovae rdx, r8
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000e902
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14000e6a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e6a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e972
call fcn.140055590
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], si
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14000e6f1
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e6eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e9bd
call fcn.140055590
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14000e72c
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8fb
call fcn.140055590
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000de70
lea rdx, str.ERROR_reading_output_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14000e8d7
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x14000e8d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000e8cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test edi, edi
jne 0x14000e7e3
lea rdx, str.ERROR_reading_output:
jmp 0x14000e759
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x34]
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14000e832
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x14000e82d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e7c5
mov rcx, r8
call fcn.140055590
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], recv
mov byte [r13], 0
mov rcx, r12
call fcn.14000a2b0
mov eax, ebx
jmp 0x14000dd3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.Invalid_size_of_partial_output:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
jmp 0x14000dd18
lea rdx, str.Error_reading_size_of_partial_output:
jmp 0x14000dcf8
call fcn.140055590
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14000e8d7
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x14000e8d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e8ed
mov rcx, r8
call fcn.140055590
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], recv
mov byte [r13], 0
jmp 0x14000dd32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.ERROR_writing_confirm_response_to_namedPipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14000e97e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e979
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e979
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rdi
mov word [rsp + 0x78], si
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14000e9c9
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e9c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e9c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], recv
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14000ea17
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14000e8d7
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x14000e8d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000e8cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
call fcn.14000a220
int3
call fcn.14000a320
nop
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
call fcn.1400558f8
int3
call fcn.1400558f8
int3