Function at 0x140001820
Capabilities:
Check http status code
Connect pipe
Create pipe
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x328
movaps xmmword [rsp + 0x310], xmm6
lea rax, fcn.140001540
movq xmm6, rax
mov esi, edx
lea rdx, [rsp + 0x71]
mov qword [rsp + 0x370], rcx
mov rcx, qword [str..pipe_vddswitcherd]
movq xmm1, rdx
mov edx, 3
mov dword [rsp + 0x380], r8d
mov r8d, 6
mov dword [rsp + 0x388], r9d
punpcklqdq xmm6, xmm1
mov r9d, 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400021e0
mov rax, qword [rsp + 0x370]
mov ecx, 0x18
mov byte [rsp + 0x71], 1
lea rdi, [rsp + 0x160]
mov qword [rsp + 0x78], 0
mov rbx, qword [rax]
call sym.operator_new_unsigned_long_long_
xor r8d, r8d
mov rdx, rdi
mov qword [rax + 0x10], rbx
mov qword [rsp + 0x160], rax
movups xmmword [rax], xmm6
lea rax, [rsp + 0x78]
mov rcx, rax
mov qword [rsp + 0x58], rax
call method.std::thread._M_start_thread_std::unique_ptr_std::thread::_State__std::default_delete_std::thread::_State_____void______
mov rcx, qword [rsp + 0x160]
test rcx, rcx
je 0x140001920
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call method.std::thread.detach__
mov rax, qword [rsp + 0x370]
mov r13, qword [rax]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x140001cb0
mov rbp, qword [0x140101c90]
mov r8d, 0x12
lea rdx, str.stream_resolution:
mov rcx, rbp
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, esi
mov rcx, rbp
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r8d, 1
lea rdx, [0x1400fe048]
mov rcx, rax
mov r13, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, dword [rsp + 0x380]
mov rcx, r13
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r8d, 1
lea rdx, [0x1400fe04a]
mov rcx, rax
mov r13, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, dword [rsp + 0x388]
mov rcx, r13
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r13, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r14, qword [r13 + rax + 0xf0]
test r14, r14
je 0x140002352
cmp byte [r14 + 0x38], 0
je 0x140001c78
movsx edx, byte [r14 + 0x43]
mov rcx, r13
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov qword [rsp + 0x40], 0
pxor xmm0, xmm0
xor ebx, ebx
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x160], 0x1a8
movaps xmmword [rsp + 0x80], xmm0
jmp 0x140001a2b
add ebx, 1
xor r9d, r9d
mov r8, rdi
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x140001ce0
mov eax, dword [rsp + 0x204]
and eax, 9
cmp eax, 1
jne 0x140001a28
movabs rax, 0x4144565c636573
movabs rdx, 0x7261505c746f6f52
xor rax, qword [rsp + 0x210]
xor rdx, qword [rsp + 0x208]
or rax, rdx
jne 0x140001a28
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], 0
mov edx, 0x20
lea r8, [rsp + 0x164]
mov qword [rsp + 0x50], rax
mov r15, rax
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
mov rcx, r15
call sym.strlen
mov rdx, r15
mov rcx, rbp
mov r8, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov r8d, 0xd
lea rdx, str._resolutions:
mov rcx, rbp
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rax, qword [rbp]
mov rax, qword [rax - 0x18]
mov r13, qword [rax + rbp + 0xf0]
test r13, r13
je 0x14000235c
cmp byte [r13 + 0x38], 0
je 0x1400022c0
movsx edx, byte [r13 + 0x43]
mov rcx, rbp
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
lea rax, [rsp + 0x130]
lea r13, [rsp + 0xc0]
mov qword [rsp + 0x68], rax
lea rax, [method.std::ctype_char_.do_widen_char__const]
mov qword [rsp + 0x60], rax
jmp 0x140001b57
movsx edx, byte [r15 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov rax, qword [rsp + 0x90]
add dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov r8, r13
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x140001a28
mov rax, qword [rsp + 0x88]
cmp rax, qword [rsp + 0x40]
je 0x1400022f8
mov edx, dword [rsp + 0x138]
add rax, 0xc
mov dword [rax - 0xc], edx
mov edx, dword [rsp + 0x130]
mov dword [rax - 8], edx
mov edx, dword [rsp + 0x12c]
mov dword [rax - 4], edx
mov qword [rsp + 0x88], rax
mov r8d, 4
lea rdx, str.
mov rcx, rbp
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, dword [rsp + 0x12c]
mov rcx, rbp
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r8d, 1
lea rdx, [0x1400fe048]
mov rcx, rax
mov r14, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, dword [rsp + 0x130]
mov rcx, r14
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r8d, 1
lea rdx, [0x1400fe04a]
mov rcx, rax
mov r14, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov edx, dword [rsp + 0x138]
mov rcx, r14
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
mov r14, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r15, qword [r14 + rax + 0xf0]
test r15, r15
je 0x14000232e
cmp byte [r15 + 0x38], 0
jne 0x140001b30
mov rcx, r15
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r15]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, qword [rsp + 0x60]
je 0x140001b35
mov rcx, r15
call rax
movsx edx, al
jmp 0x140001b35
mov rcx, r14
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r14]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x1400019e2
mov rcx, r14
call rax
movsx edx, al
jmp 0x1400019e2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x22e004
mov rcx, r13
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
xor r9d, r9d
xor r8d, r8d
mov edx, 0x22a00c
mov rcx, r13
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
jmp 0x140001943
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
cmp rax, rdx
je 0x140001db0
mov ecx, dword [rsp + 0x380]
mov r8d, dword [rsp + 0x388]
jmp 0x140001d1d
add rax, 0xc
cmp rdx, rax
je 0x140001db0
cmp dword [rax + 8], esi
jne 0x140001d10
cmp dword [rax + 4], ecx
jne 0x140001d10
cmp dword [rax], r8d
jne 0x140001d10
xor eax, eax
mov ecx, 0x13
movd xmm0, esi
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov r9d, 9
movd xmm2, dword [rsp + 0x380]
mov rdi, rdx
rep stosq qword [rdi], rax
mov eax, dword [rsp + 0x388]
mov ecx, 0x9c
punpckldq xmm0, xmm2
mov dword [rdi], 0
mov word [rsp + 0xe4], cx
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xe8], 0x580000
mov dword [rsp + 0x138], eax
mov qword [rsp + 0x20], 0
movq qword [rsp + 0x12c], xmm0
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
jmp 0x140001e04
mov r14, qword [0x140101c70]
mov r8d, 0x2b
lea rdx, str.No_match_resolution_in_the_primary_display.
mov rcx, r14
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rax, qword [r14]
mov rax, qword [rax - 0x18]
mov r13, qword [rax + r14 + 0xf0]
test r13, r13
je 0x14000234d
cmp byte [r13 + 0x38], 0
je 0x1400021a8
movsx edx, byte [r13 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov rbx, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdi, str.Error_reading_from_pipe.
jmp 0x140001ea0
cmp dword [rsp + 0x74], 4
jne 0x140001f38
cmp dword [rsp + 0xc0], 0xc8
je 0x140002150
mov r8d, 0x16
lea rdx, str.Received_from_client:
mov rcx, rbp
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rdx, r13
mov rcx, rbp
call method.std::ostream_std::ostream._M_insert_void_const__void_const_
mov r13, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r14, qword [r13 + rax + 0xf0]
test r14, r14
je 0x140002333
cmp byte [r14 + 0x38], 0
je 0x140001fa0
movsx edx, byte [r14 + 0x43]
mov rcx, r13
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp byte [rsp + 0x71], 0
je 0x1400020a5
xor edx, edx
mov rcx, r12
call rbx
test eax, eax
je 0x140002048
lea r13, [rsp + 0xc0]
lea r9, [rsp + 0x74]
mov r8d, 4
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rdx, r13
call rsi
test eax, eax
jne 0x140001e20
mov r14, qword [0x140101c70]
mov r8d, 0x18
mov rdx, rdi
mov rcx, r14
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rax, qword [r14]
mov rax, qword [rax - 0x18]
mov r13, qword [rax + r14 + 0xf0]
test r13, r13
je 0x140002338
cmp byte [r13 + 0x38], 0
je 0x140001fd8
movsx edx, byte [r13 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
jmp 0x140001e8f
mov r14, qword [0x140101c70]
mov r8d, 0x2a
lea rdx, str.Request_is_malformed:_insufficient_length.
mov rcx, r14
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rdx, r13
mov rcx, r14
call method.std::ostream_std::ostream._M_insert_void_const__void_const_
mov r14, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r15, qword [r14 + rax + 0xf0]
test r15, r15
je 0x140002329
cmp byte [r15 + 0x38], 0
je 0x140002010
movsx edx, byte [r15 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
jmp 0x140001e3c
mov rcx, r14
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r14]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001e87
mov rcx, r14
call rax
movsx edx, al
jmp 0x140001e87
mov rcx, r13
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r13]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001f26
mov rcx, r13
call rax
movsx edx, al
jmp 0x140001f26
mov rcx, r15
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r15]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001f8a
mov rcx, r15
call rax
movsx edx, al
jmp 0x140001f8a
mov r14, qword [0x140101c70]
mov r8d, 0x1b
lea rdx, str.Error_connecting_to_client.
mov rcx, r14
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rax, qword [r14]
mov rax, qword [rax - 0x18]
mov r13, qword [rax + r14 + 0xf0]
test r13, r13
je 0x140002361
cmp byte [r13 + 0x38], 0
je 0x140002250
movsx edx, byte [r13 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x370]
xor edx, edx
mov byte [rsp + 0x71], 0
mov word [rsp + 0x72], dx
mov r13, qword [rax]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400020f1
mov r9d, 2
lea r8, [rsp + 0x72]
mov edx, 0x22a008
mov rcx, r13
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
xor r9d, r9d
xor r8d, r8d
mov edx, 0x22a00c
mov rcx, r13
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
cmp qword [rsp + 0x78], 0
jne 0x140002240
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002114
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
call sym.operator_delete_void__unsigned_long_long_
cmp qword [rsp + 0x78], 0
jne 0x140002348
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movaps xmm6, xmmword [rsp + 0x310]
add rsp, 0x328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x370]
mov r14, qword [rax]
xor eax, eax
mov word [rsp + 0x72], ax
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002197
mov r9d, 2
lea r8, [rsp + 0x72]
mov edx, 0x22a008
mov rcx, r14
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
xor r9d, r9d
xor r8d, r8d
mov edx, 0x22a00c
mov rcx, r14
call method.parsec_vdd.VddIoControl_void__parsec_vdd::VddCtlCode__void_const__unsigned_long_long___clone_.part.0___clone_.isra.0_
mov byte [rsp + 0x71], 0
jmp 0x140001e3c
mov rcx, r13
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r13]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001df4
mov rcx, r13
call rax
movsx edx, al
jmp 0x140001df4
mov r14, qword [0x140101c70]
mov r8d, 0x1a
lea rdx, str.Error_creating_named_pipe.
mov rcx, r14
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov rax, qword [r14]
mov rax, qword [rax - 0x18]
mov r12, qword [rax + r14 + 0xf0]
test r12, r12
je 0x140002357
cmp byte [r12 + 0x38], 0
je 0x140002288
movsx edx, byte [r12 + 0x43]
mov rcx, r14
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
xor ecx, ecx
call sym.exit
nop dword [rax]
mov rcx, qword [rsp + 0x58]
call method.std::thread.join__
jmp 0x1400020fd
mov rcx, r13
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r13]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x14000208c
mov rcx, r13
call rax
movsx edx, al
jmp 0x14000208c
mov rcx, r12
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r12]
mov edx, 0xa
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140002222
mov rcx, r12
call rax
movsx edx, al
jmp 0x140002222
mov rcx, r13
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r13]
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001afd
mov rcx, r13
call rax
movsx edx, al
jmp 0x140001afd
lea rax, [rsp + 0x138]
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x12c]
call method.void_std::vector_std::tuple_unsigned_long__unsigned_long__unsigned_long___std::allocator_std::tuple_unsigned_long__unsigned_long__unsigned_long_____._M_realloc_insert_unsigned_long__unsigned_long__unsigned_long____gnu_cxx::__normal_iterator_std:
jmp 0x140001bae
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
mov rcx, rax
cmp qword [rsp + 0x78], 0
je 0x1400023a9
call method.std.terminate__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
call method.std.__throw_bad_cast__
mov rcx, qword [rsp + 0x160]
mov r12, rax
test rcx, rcx
je 0x14000237c
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, r12
call dbg._Unwind_Resume
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x90]
mov rbx, rax
sub rdx, rcx
test rcx, rcx
je 0x1400023a4
call sym.operator_delete_void__unsigned_long_long_
mov rcx, rbx
jmp 0x140002340
call dbg._Unwind_Resume
nop
nop
jmp qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]