Function at 0x14006f450
Capabilities:
Read file on windows
Read pipe

Disassembly:
push r15
mov eax, 0x10f8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400e08f0
sub rsp, rax
mov r14, qword [rcx + 0x20]
mov rax, qword [r14 + 0x220]
mov qword [rsp + 0x30], rax
mov rax, qword [0x14011e790]
mov rbx, rcx
mov ecx, 1
mov byte [rdx], 1
mov edx, 0x1ee8
call qword [rax]
mov rbp, rax
test rax, rax
je 0x14006fbb0
lea rcx, [rax + 0x1cb8]
mov edx, 0xffff
call sym.Curl_dyn_init
lea rax, [rbp + 0x1cd8]
mov qword [rbx + 0x1b8], rbp
cmp qword [rbx + 0x1238], 0
mov qword [rbp + 0x1ed8], rax
mov rax, qword [0x140101220]
mov dword [rbp + 0x1cac], 0
mov dword [rbp + 0x814], 1
mov dword [rbp + 0x1414], 1
mov dword [rbp + 0x808], 1
mov qword [rbp + 0x1408], rax
mov dword [rbp + 0x1884], 1
je 0x14006f585
mov rax, qword [rbx + 0x20]
mov r9, qword [rax + 0x1c8]
mov rax, r9
add rax, 1
cmp byte [rax - 1], 0
je 0x14006f540
nop word cs:[rax + rax]
js 0x14006fbc0
add rax, 1
cmp byte [rax - 1], 0
jne 0x14006f530
lea rsi, [rsp + 0xf0]
mov edx, 0x100
lea r8, str.USER__s
mov rcx, rsi
call sym.curl_msnprintf
mov rcx, qword [rbp + 0x1cb0]
mov rdx, rsi
call sym.curl_slist_append
test rax, rax
je 0x1400703bb
mov qword [rbp + 0x1cb0], rax
mov dword [rbp + 0x8a4], 1
mov r13, qword [rbx + 0x4f8]
lea r12, [0x140100d90]
test r13, r13
je 0x14006f66d
mov rdi, qword [r13]
mov edx, 0x3d
mov rcx, rdi
call sym.strchr
mov rsi, rax
test rax, rax
je 0x14006f5f0
lea r15, [rax + 1]
mov rax, r15
jmp 0x14006f5c6
js 0x14006f660
add rax, 1
cmp byte [rax - 1], 0
jne 0x14006f5c0
mov rax, rsi
sub rax, rdi
cmp rax, 8
ja case.0x14006f5e7.0
movsxd rax, dword [r12 + rax*4]
add rax, r12
jmp rax
mov r8, rdi
lea rdx, str.Syntax_error_in_telnet_option:__s
mov rcx, rbx
call sym.Curl_failf
mov r15d, 0x31
jmp 0x14006f7d6
mov r8d, 7
lea rdx, str.NEW_ENV
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006f7d0
mov rcx, qword [rbp + 0x1cb0]
mov rdx, r15
call sym.curl_slist_append
test rax, rax
je 0x1400702e8
mov qword [rbp + 0x1cb0], rax
mov dword [rbp + 0x8a4], 1
nop word cs:[rax + rax]
mov r13, qword [r13 + 8]
test r13, r13
jne 0x14006f59c
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov r12, rax
test rax, rax
je 0x140070398
mov rcx, qword [rsp + 0x30]
mov r8d, 0x21
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14006fe2c
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0x40], rax
mov rcx, rax
mov qword [rsp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x14006fe17
movzx eax, byte [rbx + 0xa34]
and eax, 2
cmp al, 1
sbb edi, edi
and edi, 0x384
add edi, 0x64
neg al
sbb eax, eax
mov dword [rsp + 0x3c], edi
add eax, 2
mov dword [rsp + 0x38], eax
xor r15d, r15d
lea r13, [rsp + 0xb0]
nop
xor r8d, r8d
mov r9d, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x14006fb10
cmp eax, 0x102
je 0x14006fa08
test eax, eax
je 0x14006f9a0
mov esi, dword [rbx + 0x2e8]
test esi, esi
je 0x14006f700
lea rsi, [rsp + 0x90]
mov rcx, rsi
call sym.Curl_now
lea rdx, [rsp + 0x80]
mov rcx, rsi
movdqu xmm3, xmmword [r14 + 0x200]
movaps xmmword [rsp + 0x80], xmm3
call sym.Curl_timediff
mov rdx, rax
mov eax, dword [rbx + 0x2e8]
cmp rdx, rax
jl 0x14006f700
nop word [rax + rax]
lea rdx, str.Time_out
mov rcx, rbx
mov r15d, 0x1c
call sym.Curl_failf
jmp 0x14006fb59
mov r8d, 8
lea rdx, str.XDISPLOC
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006f7d0
mov rcx, r15
call sym.strlen
cmp rax, 0x7f
jbe 0x14007035b
nop dword [rax + rax]
mov r15d, 0x30
mov rcx, qword [rbp + 0x1cb0]
call sym.curl_slist_free_all
mov qword [rbp + 0x1cb0], 0
mov eax, r15d
add rsp, 0x10f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 6
lea rdx, str.BINARY
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006f7d0
mov rcx, r15
call sym.atoi
cmp eax, 1
je 0x14006f660
mov dword [rbp + 0x808], 0
mov dword [rbp + 0x1408], 0
jmp 0x14006f660
mov r8d, 5
lea rdx, str.TTYPE
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006f7d0
mov rcx, r15
call sym.strlen
cmp rax, 0x1f
ja 0x14006f7d0
add rax, 1
lea rdx, [rbp + 0x1c08]
cmp eax, 8
jae 0x140070417
test al, 4
jne 0x140070a03
test eax, eax
je 0x14006f8b1
movzx ecx, byte [rsi + 1]
mov byte [rbp + 0x1c08], cl
test al, 2
jne 0x140070c05
mov dword [rbp + 0x868], 1
jmp 0x14006f660
mov r8d, 2
lea rdx, [0x140100ca7]
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006f7d0
lea rdx, [rsp + 0xf0]
mov r8d, 0xa
mov rcx, r15
call sym.strtoul
mov esi, eax
lea eax, [rax - 1]
cmp eax, 0xfffe
ja 0x14006f97f
mov rax, qword [rsp + 0xf0]
movsx ecx, byte [rax]
call sym.Curl_raw_tolower
cmp al, 0x78
jne 0x14006f97f
mov rax, qword [rsp + 0xf0]
xor edx, edx
mov r8d, 0xa
lea rcx, [rax + 1]
mov qword [rsp + 0xf0], rcx
call sym.strtoul
lea edx, [rax - 1]
cmp edx, 0xfffe
ja 0x14006f977
mov word [rbp + 0x1ca8], si
mov word [rbp + 0x1caa], ax
mov dword [rbp + 0x884], 1
jmp 0x14006f660
mov r8, rdi
lea rdx, str.Unknown_telnet_option__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x14006f7d0
test eax, eax
jne 0x14006f660
mov r8, qword [r13]
lea rdx, str.Syntax_error_in_telnet_option:__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x14006f602
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov rdx, r12
mov dword [rsp + 0xc0], 0
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x14006fdcb
mov esi, dword [rsp + 0xc0]
test sil, 1
jne 0x14006fd08
shr esi, 5
xor esi, 1
and esi, 1
mov r8d, dword [rbx + 0x2e8]
test r8d, r8d
jne 0x14006fbeb
test sil, sil
jne 0x14006f700
jmp 0x14006fb59
lea rsi, [rsp + 0xa4]
mov qword [rsp + 0x48], rbp
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x50], r13
mov rbp, rsi
mov r13d, r15d
mov rsi, qword [rsp + 0x40]
jmp 0x14006fa94
lea r15, [rsp + 0xf0]
mov r8d, 0x1000
mov edx, 1
mov r9, qword [rbx + 0x10b0]
mov rcx, r15
call qword [rbx + 0x10a8]
cmp rax, 0x10000000
je 0x14006fc38
cmp rax, 0x10000001
je 0x14006fbcb
test rax, rax
je 0x14006fbcb
mov dword [rsp + 0xa4], eax
mov r8d, eax
mov rdx, r15
mov rcx, rbx
call sym.send_telnet_data
mov r13d, eax
test eax, eax
jne 0x14006fdc3
test byte [rbx + 0xa34], 2
jne 0x14006fa30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14006fc38
mov r15d, dword [rsp + 0xa4]
test r15d, r15d
je 0x14006fbcb
lea r15, [rsp + 0xf0]
mov r9, rbp
mov r8d, 0x1000
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov rdx, r15
call rdi
test eax, eax
je 0x14006fc38
mov r8d, dword [rsp + 0xa4]
jmp 0x14006fa7e
lea rsi, [rsp + 0xf0]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa4]
mov r8d, 0x1000
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006fc98
mov edi, dword [rbx + 0x2e8]
mov r15d, 0x1a
test edi, edi
jne 0x14006fcb9
mov rcx, r12
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
test eax, eax
jne 0x14006fba0
test byte [rbx + 0xa37], 0x10
je 0x14006fba0
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x14006fb82
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x14006fba0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.WSACloseEvent_failed___d_
mov rcx, rbx
mov r8d, eax
call sym.Curl_infof
nop word [rax + rax]
mov rcx, rbx
call sym.Curl_xfer_setup_nop
jmp 0x14006f7ed
mov r15d, 0x1b
jmp 0x14006f7ed
mov r15d, 0x2b
jmp 0x14006f7ed
mov eax, dword [rbx + 0x2e8]
mov r15d, r13d
mov rbp, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
test eax, eax
je 0x14006f700
mov esi, 1
lea rdi, [rsp + 0x90]
mov rcx, rdi
call sym.Curl_now
lea rdx, [rsp + 0x80]
mov rcx, rdi
movdqu xmm1, xmmword [r14 + 0x200]
movaps xmmword [rsp + 0x80], xmm1
call sym.Curl_timediff
mov rdx, rax
mov eax, dword [rbx + 0x2e8]
cmp rdx, rax
jl 0x14006f9f4
jmp 0x14006f780
mov r15d, 0x1a
mov edx, dword [rbx + 0x2e8]
test edx, edx
je 0x14006fb59
lea rsi, [rsp + 0x90]
mov rcx, rsi
call sym.Curl_now
lea rdx, [rsp + 0x80]
mov rcx, rsi
movdqu xmm0, xmmword [r14 + 0x200]
movaps xmmword [rsp + 0x80], xmm0
call sym.Curl_timediff
mov rdx, rax
mov eax, dword [rbx + 0x2e8]
cmp rdx, rax
jge 0x14006f780
jmp 0x14006fb59
mov r8d, dword [rsp + 0xa4]
mov rdx, rsi
mov rcx, rbx
call sym.send_telnet_data
test eax, eax
mov r15d, eax
sete sil
jmp 0x14006f9e4
mov r15d, 0x1a
lea rsi, [rsp + 0x90]
mov rcx, rsi
call sym.Curl_now
lea rdx, [rsp + 0x80]
mov rcx, rsi
movdqu xmm2, xmmword [r14 + 0x200]
movaps xmmword [rsp + 0x80], xmm2
call sym.Curl_timediff
mov edx, dword [rbx + 0x2e8]
cmp rdx, rax
jle 0x14006f780
jmp 0x14006fb59
lea rax, [rsp + 0xf0]
lea r9, [rsp + 0xa8]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x48], rax
call sym.Curl_xfer_recv
mov r15d, eax
cmp eax, 0x51
je 0x14006f731
test eax, eax
jne 0x14006fe68
mov r10, qword [rsp + 0xa8]
test r10, r10
jle 0x14006fe68
mov rsi, qword [rbx + 0x1b8]
mov dword [rsp + 0x78], r15d
xor edi, edi
mov r11d, 0xffffffff
mov qword [rsp + 0x70], r13
lea rax, [rsi + 0x1ed8]
mov qword [rsp + 0x60], r12
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
mov r14, r10
mov qword [rsp + 0x68], rbp
mov rbp, rdi
movsxd rdi, r11d
nop dword [rax]
cmp dword [rsi + 0x1cac], 8
movzx r13d, byte [r12 + rbp]
mov r11d, ebp
ja case.default.0x14006fdc1
mov edx, dword [rsi + 0x1cac]
lea rax, [0x140100db4]
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
mov r15d, eax
jmp 0x14006fc3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x2734
je 0x14006f731
test byte [rbx + 0xa37], 0x10
je 0x14006fb45
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x14006fe03
mov ebp, dword [rax + 8]
test ebp, ebp
jle 0x14006fb45
lea rdx, str.WSAEnumNetworkEvents_failed___d_
mov rcx, rbx
call sym.Curl_infof
jmp 0x14006fb45
mov dword [rsp + 0x3c], 0x64
mov dword [rsp + 0x38], 1
jmp 0x14006f6f4
mov rcx, r12
xor r15d, r15d
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
jmp 0x14006f7ed
mov rax, qword [rsp + 0x48]
lea r9d, [rdi + 1]
mov edx, 1
mov rcx, rbx
sub r9d, r11d
movsxd r9, r9d
lea r8, [rax + r11]
call sym.Curl_client_write
test eax, eax
je 0x140070490
mov r15d, eax
mov r9d, dword [rbx + 0x2e8]
test r9d, r9d
je 0x14006fb59
jmp 0x14006fcbf
mov rdx, qword [rsi + 0x1ed8]
cmp r13b, 0xf0
je 0x140070519
mov rax, qword [rsp + 0x50]
cmp r13b, 0xff
je 0x1400704f7
cmp rdx, rax
jae 0x14006fed1
lea rcx, [rdx + 1]
mov qword [rsi + 0x1ed8], rcx
mov byte [rdx], 0xff
mov rdx, qword [rsi + 0x1ed8]
cmp rdx, rax
jae 0x14006fed1
lea rcx, [rdx + 1]
mov qword [rsi + 0x1ed8], rcx
mov byte [rdx], r13b
mov rdx, qword [rsi + 0x1ed8]
sub rdx, 2
mov qword [rsi + 0x1ee0], rdx
lea rdx, [rsi + 0x1cd8]
mov qword [rsi + 0x1ed8], rdx
test byte [rbx + 0xa37], 0x10
je 0x14006ff4a
movzx r15d, r13b
mov rcx, qword [rbx + 0x11e8]
lea edx, [r15 - 0xec]
cmp edx, 0x13
ja 0x140070935
test rcx, rcx
je 0x14006ff1c
mov r15d, dword [rcx + 8]
test r15d, r15d
jle 0x14006ff4a
movsxd rdx, edx
lea rcx, [0x140100ee0]
mov dword [rsp + 0x7c], r11d
lea r8, str.In_SUBOPTION_processing__RCVD
mov r9, qword [rcx + rdx*8]
lea rdx, str._s_IAC__s
mov rcx, rbx
call sym.Curl_infof
mov r11d, dword [rsp + 0x7c]
mov rcx, rbx
mov dword [rsp + 0x7c], r11d
call sym.suboption
mov r11d, dword [rsp + 0x7c]
lea edx, [r13 + 6]
cmp r13b, 0xfa
jb case.default.0x14006ff7b
lea rcx, [0x140100dd8]
movzx eax, dl
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp r13b, 0xff
je 0x140070578
cmp r13b, 0xd
jne 0x14006ff97
mov dword [rsi + 0x1cac], 6
test edi, edi
js 0x140070587
nop
lea rax, [rbp + 1]
cmp r14, rax
je 0x140070468
mov rbp, rax
jmp 0x14006fd98
cmp r13b, 0xff
je 0x1400704e8
mov rdx, qword [rsi + 0x1ed8]
mov rax, qword [rsp + 0x50]
cmp rdx, rax
jae case.default.0x14006fdc1
lea rcx, [rdx + 1]
mov qword [rsi + 0x1ed8], rcx
mov byte [rdx], r13b
jmp case.default.0x14006fdc1
mov dword [rsi + 0x1cac], 0
test r13b, r13b
jne 0x14006ff97
test edi, edi
jns 0x1400704b0
mov rdi, 0xffffffffffffffff
jmp case.default.0x14006fdc1
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x140070060
cmp r15d, 0x27
jg 0x14007087c
lea rdx, str.BINARY
mov rdx, qword [rdx + r13*8]
test rdx, rdx
je 0x1400706f1
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x14007003e
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140070060
mov qword [rsp + 0x20], rdx
lea r9, str.DONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x140100c7e]
call sym.Curl_infof
mov rdx, qword [rbx + 0x1b8]
mov dword [rsi], 1
mov ecx, dword [rdx + r13*4 + 8]
cmp ecx, 2
je 0x14007065c
cmp ecx, 3
je 0x1400707d7
cmp ecx, 1
jne 0x1400700a2
mov dword [rdx + r13*4 + 8], 0
mov r8d, r15d
mov edx, 0xfc
mov rcx, rbx
call sym.send_negotiation
mov dword [rsi + 0x1cac], 0
jmp case.default.0x14006fdc1
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x140070111
cmp r15d, 0x27
jg 0x1400705cd
lea rdx, str.BINARY
mov rdx, qword [rdx + r13*8]
test rdx, rdx
je 0x14007058f
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x1400700ef
mov ecx, dword [rcx + 8]
test ecx, ecx
jle 0x140070111
mov qword [rsp + 0x20], rdx
lea r9, str.WONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x140100c7e]
call sym.Curl_infof
mov rdx, qword [rbx + 0x1b8]
lea rcx, [r13 + 0x300]
mov dword [rsi], 1
mov r8d, dword [rdx + rcx*4 + 8]
cmp r8d, 2
je 0x14007062c
cmp r8d, 3
je 0x1400705e8
cmp r8d, 1
jne 0x1400700a2
mov dword [rdx + rcx*4 + 8], 0
mov r8d, r15d
mov edx, 0xfe
mov rcx, rbx
call sym.send_negotiation
jmp 0x1400700a2
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x1400701ca
cmp r15d, 0x27
jg 0x1400707c2
movsxd rdx, r15d
lea rcx, str.BINARY
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x140070782
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x1400701a8
mov r9d, dword [rcx + 8]
test r9d, r9d
jle 0x1400701ca
mov qword [rsp + 0x20], rdx
lea r9, str.WILL
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x140100c7e]
call sym.Curl_infof
mov rdx, qword [rbx + 0x1b8]
movzx eax, r13b
mov dword [rsi], 1
lea rax, [rdx + rax*4]
mov edx, dword [rax + 0xc08]
cmp edx, 2
je 0x1400706c1
cmp edx, 3
je 0x140070691
test edx, edx
jne 0x1400700a2
cmp dword [rax + 0x1408], 1
je 0x140070916
mov r8d, r15d
mov edx, 0xfe
mov rcx, rbx
call sym.send_negotiation
jmp 0x1400700a2
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x140070284
cmp r15d, 0x27
jg 0x14007076d
movsxd rdx, r15d
lea rcx, str.BINARY
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x14007072f
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x140070262
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140070284
mov qword [rsp + 0x20], rdx
lea r9, [0x140100c70]
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x140100c7e]
call sym.Curl_infof
mov rdx, qword [rbx + 0x1b8]
movzx eax, r13b
mov dword [rsi], 1
lea r13, [rdx + rax*4]
mov edx, dword [r13 + 8]
cmp edx, 2
je 0x14007084c
cmp edx, 3
je 0x14007081c
test edx, edx
jne 0x1400700a2
cmp dword [r13 + 0x808], 1
je 0x140070bc8
cmp dword [r13 + 0x1808], 1
je 0x140070ba0
mov r8d, r15d
mov edx, 0xfc
mov rcx, rbx
call sym.send_negotiation
jmp 0x1400700a2
mov r15d, 0x1b
jmp 0x14006f7d6
mov dword [rsi + 0x1cac], 5
jmp case.default.0x14006fdc1
mov dword [rsi + 0x1cac], 4
jmp case.default.0x14006fdc1
mov dword [rsi + 0x1cac], 3
jmp case.default.0x14006fdc1
mov dword [rsi + 0x1cac], 2
jmp case.default.0x14006fdc1
lea rax, [rsi + 0x1cd8]
mov dword [rsi + 0x1cac], 7
mov qword [rsi + 0x1ed8], rax
jmp case.default.0x14006fdc1
mov dword [rsi + 0x1cac], 0
jmp 0x14006ff97
add rax, 1
lea rdx, [rbp + 0x1c28]
cmp eax, 8
jae 0x1400703dd
test al, 4
jne 0x140070a1c
test eax, eax
je 0x140070389
movzx ecx, byte [rsi + 1]
mov byte [rbp + 0x1c28], cl
test al, 2
jne 0x140070bf3
mov dword [rbp + 0x894], 1
jmp 0x14006f660
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.WSACreateEvent_failed___d_
mov rcx, rbx
mov r15d, 2
mov r8d, eax
call sym.Curl_failf
jmp 0x14006f7ed
mov rcx, qword [rbp + 0x1cb0]
mov r15d, 0x1b
call sym.curl_slist_free_all
mov qword [rbp + 0x1cb0], 0
jmp 0x14006f7ed
mov rcx, qword [rsi + 1]
lea rdi, [rbp + 0x1c30]
mov rsi, r15
and rdi, 0xfffffffffffffff8
mov qword [rbp + 0x1c28], rcx
mov ecx, eax
mov r8, qword [r15 + rcx - 8]
mov qword [rdx + rcx - 8], r8
sub rdx, rdi
add eax, edx
sub rsi, rdx
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
jmp 0x140070389
mov rcx, qword [rsi + 1]
lea r9, [rbp + 0x1c10]
and r9, 0xfffffffffffffff8
mov qword [rbp + 0x1c08], rcx
mov ecx, eax
mov r8, qword [r15 + rcx - 8]
mov qword [rdx + rcx - 8], r8
sub rdx, r9
add eax, edx
sub r15, rdx
and eax, 0xfffffff8
cmp eax, 8
jb 0x14006f8b1
and eax, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [r15 + rcx]
mov qword [r9 + rcx], r8
cmp edx, eax
jb 0x140070452
jmp 0x14006f8b1
movsxd r11, edi
mov r14, qword [rsp + 0x58]
mov rdi, rbp
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov r15d, dword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
test r11d, r11d
jns 0x14006fe3d
mov r8d, dword [rbp]
test r8d, r8d
je 0x1400704a4
mov ecx, dword [rbp + 4]
test ecx, ecx
je 0x140070a35
mov esi, dword [rsp + 0xc0]
jmp 0x14006f9db
sub r11d, edi
lea r8, [r12 + rdi]
mov edx, 1
mov rcx, rbx
movsxd r9, r11d
call sym.Curl_client_write
test eax, eax
je 0x14006fff7
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r15d, eax
jmp 0x14006fc3e
mov dword [rsi + 0x1cac], 8
jmp case.default.0x14006fdc1
cmp rdx, rax
jae 0x14007050a
lea rax, [rdx + 1]
mov qword [rsi + 0x1ed8], rax
mov byte [rdx], 0xff
mov dword [rsi + 0x1cac], 7
jmp case.default.0x14006fdc1
mov rcx, qword [rsp + 0x50]
cmp rdx, rcx
jae 0x140070552
lea rax, [rdx + 1]
mov qword [rsi + 0x1ed8], rax
mov byte [rdx], 0xff
mov rdx, qword [rsi + 0x1ed8]
cmp rdx, rcx
jae 0x140070552
lea rax, [rdx + 1]
mov qword [rsi + 0x1ed8], rax
mov byte [rdx], 0xf0
mov rdx, qword [rsi + 0x1ed8]
sub rdx, 2
lea rax, [rsi + 0x1cd8]
mov rcx, rbx
mov qword [rsi + 0x1ee0], rdx
mov qword [rsi + 0x1ed8], rax
call sym.suboption
jmp 0x1400700a2
mov dword [rsi + 0x1cac], 1
jmp 0x14006ffef
movsxd rdi, r11d
jmp case.default.0x14006fdc1
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x1400705a6
mov eax, dword [rdx + 8]
test eax, eax
jle 0x140070111
mov dword [rsp + 0x20], r15d
lea r9, str.WONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, str._s__s__d
call sym.Curl_infof
jmp 0x140070111
cmp r15d, 0xff
jne 0x14007058f
lea rdx, str.EXOPL
mov r13d, 0xff
jmp 0x1400700dc
lea rax, [r13 + 0x400]
mov r8d, dword [rdx + rax*4 + 8]
test r8d, r8d
je 0x140070684
cmp r8d, 1
jne 0x1400700a2
mov dword [rdx + rcx*4 + 8], 2
mov r8d, r15d
mov rcx, rbx
mov dword [rdx + rax*4 + 8], 0
mov edx, 0xfd
call sym.send_negotiation
jmp 0x1400700a2
lea rax, [r13 + 0x400]
mov r8d, dword [rdx + rax*4 + 8]
test r8d, r8d
je 0x140070684
cmp r8d, 1
jne 0x1400700a2
mov dword [rdx + rcx*4 + 8], 0
mov dword [rdx + rax*4 + 8], 0
jmp 0x1400700a2
lea rcx, [r13 + 0x100]
mov r8d, dword [rdx + rcx*4 + 8]
test r8d, r8d
je 0x14007089b
cmp r8d, 1
jne 0x1400700a2
mov dword [rdx + r13*4 + 8], 0
mov dword [rdx + rcx*4 + 8], 0
jmp 0x1400700a2
mov edx, dword [rax + 0x1008]
test edx, edx
je 0x1400709bf
cmp edx, 1
jne 0x1400700a2
mov dword [rax + 0xc08], 1
mov dword [rax + 0x1008], 0
jmp 0x1400700a2
mov edx, dword [rax + 0x1008]
test edx, edx
je 0x1400709ce
cmp edx, 1
jne 0x1400700a2
mov dword [rax + 0xc08], 3
mov dword [rax + 0x1008], 0
jmp 0x14007020c
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070708
mov eax, dword [rdx + 8]
test eax, eax
jle 0x140070060
mov dword [rsp + 0x20], r15d
lea r9, str.DONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, str._s__s__d
call sym.Curl_infof
jmp 0x140070060
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070746
mov eax, dword [rdx + 8]
test eax, eax
jle 0x140070284
mov dword [rsp + 0x20], r15d
lea r9, [0x140100c70]
mov rcx, rbx
lea r8, str.RCVD
lea rdx, str._s__s__d
call sym.Curl_infof
jmp 0x140070284
cmp r15d, 0xff
jne 0x14007072f
lea rdx, str.EXOPL
jmp 0x14007024f
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x14007079b
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x1400701ca
mov dword [rsp + 0x20], r15d
lea r9, str.WILL
mov rcx, rbx
lea r8, str.RCVD
lea rdx, str._s__s__d
call sym.Curl_infof
jmp 0x1400701ca
cmp r15d, 0xff
jne 0x140070782
lea rdx, str.EXOPL
jmp 0x140070193
lea rcx, [r13 + 0x100]
mov r8d, dword [rdx + rcx*4 + 8]
test r8d, r8d
je 0x14007089b
cmp r8d, 1
jne 0x1400700a2
mov dword [rdx + r13*4 + 8], 2
mov r8d, r15d
mov dword [rdx + rcx*4 + 8], 0
mov edx, 0xfb
mov rcx, rbx
call sym.send_negotiation
jmp 0x1400700a2
mov edx, dword [r13 + 0x408]
test edx, edx
je 0x1400709b2
cmp edx, 1
jne 0x1400700a2
mov dword [r13 + 8], 1
mov dword [r13 + 0x408], 0
jmp 0x1400700a2
mov edx, dword [r13 + 0x408]
test edx, edx
je 0x1400709dd
cmp edx, 1
jne 0x1400700a2
mov dword [r13 + 8], 3
mov dword [r13 + 0x1008], 0
jmp 0x1400702d3
cmp r15d, 0xff
jne 0x1400706f1
lea rdx, str.EXOPL
mov r13d, 0xff
jmp 0x14007002b
mov dword [rdx + r13*4 + 8], 0
jmp 0x1400700a2
mov dword [rsi + 0x1cac], 0
test byte [rbx + 0xa37], 0x10
je case.default.0x14006fdc1
movzx r15d, r13b
mov rax, qword [rbx + 0x11e8]
lea edx, [r15 - 0xec]
cmp edx, 0x13
ja 0x140070982
test rax, rax
je 0x1400708ed
mov r11d, dword [rax + 8]
test r11d, r11d
jle case.default.0x14006fdc1
movsxd rdx, edx
lea rax, [0x140100ee0]
lea r8, str.RCVD
mov rcx, rbx
mov r9, qword [rax + rdx*8]
lea rdx, str._s_IAC__s
call sym.Curl_infof
jmp case.default.0x14006fdc1
mov dword [rax + 0xc08], 1
mov r8d, r15d
mov edx, 0xfd
mov rcx, rbx
call sym.send_negotiation
jmp 0x1400700a2
test rcx, rcx
je 0x140070943
mov r10d, dword [rcx + 8]
test r10d, r10d
jle 0x14007095c
mov r9d, r15d
lea r8, str.In_SUBOPTION_processing__RCVD
lea rdx, str._s_IAC__d
mov rcx, rbx
call sym.Curl_infof
mov rcx, rbx
call sym.suboption
mov dword [rsi + 0x1cac], 0
test byte [rbx + 0xa37], 0x10
je case.default.0x14006fdc1
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140070994
mov r10d, dword [rax + 8]
test r10d, r10d
jle case.default.0x14006fdc1
mov r9d, r15d
lea r8, str.RCVD
lea rdx, str._s_IAC__d
mov rcx, rbx
call sym.Curl_infof
jmp case.default.0x14006fdc1
mov dword [r13 + 8], 0
jmp 0x1400700a2
mov dword [rax + 0xc08], 0
jmp 0x1400700a2
mov dword [rax + 0xc08], 1
jmp 0x1400700a2
cmp dword [r13 + 0x1808], 1
mov dword [r13 + 8], 1
jne 0x1400700a2
mov edx, r15d
mov rcx, rbx
call sym.sendsuboption
jmp 0x1400700a2
mov ecx, dword [rsi + 1]
mov eax, eax
mov dword [rbp + 0x1c08], ecx
mov ecx, dword [r15 + rax - 4]
mov dword [rdx + rax - 4], ecx
jmp 0x14006f8b1
mov ecx, dword [rsi + 1]
mov eax, eax
mov dword [rbp + 0x1c28], ecx
mov ecx, dword [r15 + rax - 4]
mov dword [rdx + rax - 4], ecx
jmp 0x140070389
mov rdi, qword [rbx + 0x1b8]
mov qword [rsp + 0x48], rbp
xor esi, esi
mov rbp, rbx
mov ebx, esi
cmp rsi, 1
je 0x140070a80
cmp dword [rdi + rsi*4 + 0x808], 1
je 0x140070acd
cmp dword [rdi + rsi*4 + 0x1408], 1
je 0x140070a87
add rsi, 1
cmp rsi, 0x28
jne 0x140070a46
mov rbx, rbp
mov rbp, qword [rsp + 0x48]
mov dword [rbp + 4], 1
jmp 0x1400704a4
mov esi, 2
jmp 0x140070a46
mov rax, qword [rbp + 0x1b8]
movsxd rdx, ebx
lea r9, [rdx + 0x300]
mov r8d, dword [rax + r9*4 + 8]
cmp r8d, 2
je 0x140070b38
cmp r8d, 3
je 0x140070b12
test r8d, r8d
jne 0x140070a62
mov dword [rax + r9*4 + 8], 2
mov r8d, ebx
mov edx, 0xfd
mov rcx, rbp
call sym.send_negotiation
jmp 0x140070a62
mov rax, qword [rbp + 0x1b8]
movsxd rdx, esi
mov r8d, dword [rax + rdx*4 + 8]
cmp r8d, 2
je 0x140070b7e
cmp r8d, 3
je 0x140070b5a
test r8d, r8d
jne 0x140070a58
mov dword [rax + rdx*4 + 8], 2
mov r8d, esi
mov rcx, rbp
mov edx, 0xfb
call sym.send_negotiation
jmp 0x140070a58
mov r10d, dword [rax + rdx*4 + 0x1008]
lea r8, [rdx + 0x400]
test r10d, r10d
jne 0x140070a62
mov dword [rax + r8*4 + 8], 1
jmp 0x140070a62
cmp dword [rax + rdx*4 + 0x1008], 1
lea r8, [rdx + 0x400]
jne 0x140070a62
xor r9d, r9d
mov dword [rax + r8*4 + 8], r9d
jmp 0x140070a62
lea r8, [rdx + 0x100]
mov edx, dword [rax + rdx*4 + 0x408]
test edx, edx
jne 0x140070a58
mov dword [rax + r8*4 + 8], 1
jmp 0x140070a58
cmp dword [rax + rdx*4 + 0x408], 1
lea r8, [rdx + 0x100]
jne 0x140070a58
xor r11d, r11d
mov dword [rax + r8*4 + 8], r11d
jmp 0x140070a58
mov dword [r13 + 8], 1
mov rcx, rbx
mov r8d, r15d
mov edx, 0xfb
call sym.send_negotiation
mov edx, r15d
mov rcx, rbx
call sym.sendsuboption
jmp 0x1400700a2
mov dword [r13 + 8], 1
mov r8d, r15d
mov edx, 0xfb
mov rcx, rbx
call sym.send_negotiation
cmp dword [r13 + 0x1808], 1
jne 0x1400700a2
jmp 0x1400709f3
mov eax, eax
movzx ecx, word [r15 + rax - 2]
mov word [rdx + rax - 2], cx
jmp 0x140070389
mov eax, eax
movzx ecx, word [r15 + rax - 2]
mov word [rdx + rax - 2], cx
jmp 0x14006f8b1