Function at 0x14006f920
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.1400e5cc0
sub rsp, rax
mov r14, qword [rcx + 0x20]
mov rax, qword [r14 + 0x220]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140129d40]
mov rbx, rcx
mov ecx, 1
mov byte [rdx], 1
mov edx, 0x1ee8
call qword [rax]
mov rbp, rax
test rax, rax
je 0x140070080
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 [0x14010c340]
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 0x14006fa55
mov rax, qword [rbx + 0x20]
mov r9, qword [rax + 0x1c8]
mov rax, r9
add rax, 1
cmp byte [rax - 1], 0
je 0x14006fa10
nop word cs:[rax + rax]
js 0x140070090
add rax, 1
cmp byte [rax - 1], 0
jne 0x14006fa00
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 0x14007088b
mov qword [rbp + 0x1cb0], rax
mov dword [rbp + 0x8a4], 1
mov r13, qword [rbx + 0x4f8]
lea r12, [0x14010beb0]
test r13, r13
je 0x14006fb3d
mov rdi, qword [r13]
mov edx, 0x3d
mov rcx, rdi
call sym.strchr
mov rsi, rax
test rax, rax
je 0x14006fac0
lea r15, [rax + 1]
mov rax, r15
jmp 0x14006fa96
js 0x14006fb30
add rax, 1
cmp byte [rax - 1], 0
jne 0x14006fa90
mov rax, rsi
sub rax, rdi
cmp rax, 8
ja case.0x14006fab7.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 0x14006fca6
mov r8d, 7
lea rdx, str.NEW_ENV
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006fca0
mov rcx, qword [rbp + 0x1cb0]
mov rdx, r15
call sym.curl_slist_append
test rax, rax
je 0x1400707b8
mov qword [rbp + 0x1cb0], rax
mov dword [rbp + 0x8a4], 1
nop word cs:[rax + rax]
mov r13, qword [r13 + 8]
test r13, r13
jne 0x14006fa6c
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov r12, rax
test rax, rax
je 0x140070868
mov rcx, qword [rsp + 0x30]
mov r8d, 0x21
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1400702fc
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 0x1400702e7
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 0x14006ffe0
cmp eax, 0x102
je 0x14006fed8
test eax, eax
je 0x14006fe70
mov esi, dword [rbx + 0x2e8]
test esi, esi
je 0x14006fbd0
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 0x14006fbd0
nop word [rax + rax]
lea rdx, str.Time_out
mov rcx, rbx
mov r15d, 0x1c
call sym.Curl_failf
jmp 0x140070029
mov r8d, 8
lea rdx, str.XDISPLOC
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006fca0
mov rcx, r15
call sym.strlen
cmp rax, 0x7f
jbe 0x14007082b
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 0x14006fca0
mov rcx, r15
call sym.atoi
cmp eax, 1
je 0x14006fb30
mov dword [rbp + 0x808], 0
mov dword [rbp + 0x1408], 0
jmp 0x14006fb30
mov r8d, 5
lea rdx, str.TTYPE
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006fca0
mov rcx, r15
call sym.strlen
cmp rax, 0x1f
ja 0x14006fca0
add rax, 1
lea rdx, [rbp + 0x1c08]
cmp eax, 8
jae 0x1400708e7
test al, 4
jne 0x140070ed3
test eax, eax
je 0x14006fd81
movzx ecx, byte [rsi + 1]
mov byte [rbp + 0x1c08], cl
test al, 2
jne 0x1400710d5
mov dword [rbp + 0x868], 1
jmp 0x14006fb30
mov r8d, 2
lea rdx, [0x14010bdc7]
mov rcx, rdi
call sym.curl_strnequal
test eax, eax
je 0x14006fca0
lea rdx, [rsp + 0xf0]
mov r8d, 0xa
mov rcx, r15
call sym.strtoul
mov esi, eax
lea eax, [rax - 1]
cmp eax, 0xfffe
ja 0x14006fe4f
mov rax, qword [rsp + 0xf0]
movsx ecx, byte [rax]
call sym.Curl_raw_tolower
cmp al, 0x78
jne 0x14006fe4f
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 0x14006fe47
mov word [rbp + 0x1ca8], si
mov word [rbp + 0x1caa], ax
mov dword [rbp + 0x884], 1
jmp 0x14006fb30
mov r8, rdi
lea rdx, str.Unknown_telnet_option__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x14006fca0
test eax, eax
jne 0x14006fb30
mov r8, qword [r13]
lea rdx, str.Syntax_error_in_telnet_option:__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x14006fad2
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 0x14007029b
mov esi, dword [rsp + 0xc0]
test sil, 1
jne 0x1400701d8
shr esi, 5
xor esi, 1
and esi, 1
mov r8d, dword [rbx + 0x2e8]
test r8d, r8d
jne 0x1400700bb
test sil, sil
jne 0x14006fbd0
jmp 0x140070029
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 0x14006ff64
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 0x140070108
cmp rax, 0x10000001
je 0x14007009b
test rax, rax
je 0x14007009b
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 0x140070293
test byte [rbx + 0xa34], 2
jne 0x14006ff00
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 0x140070108
mov r15d, dword [rsp + 0xa4]
test r15d, r15d
je 0x14007009b
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 0x140070108
mov r8d, dword [rsp + 0xa4]
jmp 0x14006ff4e
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 0x140070168
mov edi, dword [rbx + 0x2e8]
mov r15d, 0x1a
test edi, edi
jne 0x140070189
mov rcx, r12
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
test eax, eax
jne 0x140070070
test byte [rbx + 0xa37], 0x10
je 0x140070070
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140070052
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x140070070
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 0x14006fcbd
mov r15d, 0x1b
jmp 0x14006fcbd
mov r15d, 0x2b
jmp 0x14006fcbd
mov eax, dword [rbx + 0x2e8]
mov r15d, r13d
mov rbp, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
test eax, eax
je 0x14006fbd0
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 0x14006fec4
jmp 0x14006fc50
mov r15d, 0x1a
mov edx, dword [rbx + 0x2e8]
test edx, edx
je 0x140070029
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 0x14006fc50
jmp 0x140070029
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 0x14006feb4
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 0x14006fc50
jmp 0x140070029
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 0x14006fc01
test eax, eax
jne 0x140070338
mov r10, qword [rsp + 0xa8]
test r10, r10
jle 0x140070338
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.0x140070291
mov edx, dword [rsi + 0x1cac]
lea rax, [0x14010bed4]
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
mov r15d, eax
jmp 0x14007010e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x2734
je 0x14006fc01
test byte [rbx + 0xa37], 0x10
je 0x140070015
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400702d3
mov ebp, dword [rax + 8]
test ebp, ebp
jle 0x140070015
lea rdx, str.WSAEnumNetworkEvents_failed___d_
mov rcx, rbx
call sym.Curl_infof
jmp 0x140070015
mov dword [rsp + 0x3c], 0x64
mov dword [rsp + 0x38], 1
jmp 0x14006fbc4
mov rcx, r12
xor r15d, r15d
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
jmp 0x14006fcbd
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 0x140070960
mov r15d, eax
mov r9d, dword [rbx + 0x2e8]
test r9d, r9d
je 0x140070029
jmp 0x14007018f
mov rdx, qword [rsi + 0x1ed8]
cmp r13b, 0xf0
je 0x1400709e9
mov rax, qword [rsp + 0x50]
cmp r13b, 0xff
je 0x1400709c7
cmp rdx, rax
jae 0x1400703a1
lea rcx, [rdx + 1]
mov qword [rsi + 0x1ed8], rcx
mov byte [rdx], 0xff
mov rdx, qword [rsi + 0x1ed8]
cmp rdx, rax
jae 0x1400703a1
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 0x14007041a
movzx r15d, r13b
mov rcx, qword [rbx + 0x11e8]
lea edx, [r15 - 0xec]
cmp edx, 0x13
ja 0x140070e05
test rcx, rcx
je 0x1400703ec
mov r15d, dword [rcx + 8]
test r15d, r15d
jle 0x14007041a
movsxd rdx, edx
lea rcx, [0x14010c000]
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.0x14007044b
lea rcx, [0x14010bef8]
movzx eax, dl
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp r13b, 0xff
je 0x140070a48
cmp r13b, 0xd
jne 0x140070467
mov dword [rsi + 0x1cac], 6
test edi, edi
js 0x140070a57
nop
lea rax, [rbp + 1]
cmp r14, rax
je 0x140070938
mov rbp, rax
jmp 0x140070268
cmp r13b, 0xff
je 0x1400709b8
mov rdx, qword [rsi + 0x1ed8]
mov rax, qword [rsp + 0x50]
cmp rdx, rax
jae case.default.0x140070291
lea rcx, [rdx + 1]
mov qword [rsi + 0x1ed8], rcx
mov byte [rdx], r13b
jmp case.default.0x140070291
mov dword [rsi + 0x1cac], 0
test r13b, r13b
jne 0x140070467
test edi, edi
jns 0x140070980
mov rdi, 0xffffffffffffffff
jmp case.default.0x140070291
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x140070530
cmp r15d, 0x27
jg 0x140070d4c
lea rdx, str.BINARY
mov rdx, qword [rdx + r13*8]
test rdx, rdx
je 0x140070bc1
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x14007050e
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140070530
mov qword [rsp + 0x20], rdx
lea r9, str.DONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x14010bd9e]
call sym.Curl_infof
mov rdx, qword [rbx + 0x1b8]
mov dword [rsi], 1
mov ecx, dword [rdx + r13*4 + 8]
cmp ecx, 2
je 0x140070b2c
cmp ecx, 3
je 0x140070ca7
cmp ecx, 1
jne 0x140070572
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.0x140070291
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x1400705e1
cmp r15d, 0x27
jg 0x140070a9d
lea rdx, str.BINARY
mov rdx, qword [rdx + r13*8]
test rdx, rdx
je 0x140070a5f
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x1400705bf
mov ecx, dword [rcx + 8]
test ecx, ecx
jle 0x1400705e1
mov qword [rsp + 0x20], rdx
lea r9, str.WONT
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x14010bd9e]
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 0x140070afc
cmp r8d, 3
je 0x140070ab8
cmp r8d, 1
jne 0x140070572
mov dword [rdx + rcx*4 + 8], 0
mov r8d, r15d
mov edx, 0xfe
mov rcx, rbx
call sym.send_negotiation
jmp 0x140070572
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x14007069a
cmp r15d, 0x27
jg 0x140070c92
movsxd rdx, r15d
lea rcx, str.BINARY
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x140070c52
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x140070678
mov r9d, dword [rcx + 8]
test r9d, r9d
jle 0x14007069a
mov qword [rsp + 0x20], rdx
lea r9, str.WILL
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x14010bd9e]
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 0x140070b91
cmp edx, 3
je 0x140070b61
test edx, edx
jne 0x140070572
cmp dword [rax + 0x1408], 1
je 0x140070de6
mov r8d, r15d
mov edx, 0xfe
mov rcx, rbx
call sym.send_negotiation
jmp 0x140070572
movzx r15d, r13b
test byte [rbx + 0xa37], 0x10
je 0x140070754
cmp r15d, 0x27
jg 0x140070c3d
movsxd rdx, r15d
lea rcx, str.BINARY
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x140070bff
mov rcx, qword [rbx + 0x11e8]
test rcx, rcx
je 0x140070732
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140070754
mov qword [rsp + 0x20], rdx
lea r9, [0x14010bd90]
mov rcx, rbx
lea r8, str.RCVD
lea rdx, [0x14010bd9e]
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 0x140070d1c
cmp edx, 3
je 0x140070cec
test edx, edx
jne 0x140070572
cmp dword [r13 + 0x808], 1
je 0x140071098
cmp dword [r13 + 0x1808], 1
je 0x140071070
mov r8d, r15d
mov edx, 0xfc
mov rcx, rbx
call sym.send_negotiation
jmp 0x140070572
mov r15d, 0x1b
jmp 0x14006fca6
mov dword [rsi + 0x1cac], 5
jmp case.default.0x140070291
mov dword [rsi + 0x1cac], 4
jmp case.default.0x140070291
mov dword [rsi + 0x1cac], 3
jmp case.default.0x140070291
mov dword [rsi + 0x1cac], 2
jmp case.default.0x140070291
lea rax, [rsi + 0x1cd8]
mov dword [rsi + 0x1cac], 7
mov qword [rsi + 0x1ed8], rax
jmp case.default.0x140070291
mov dword [rsi + 0x1cac], 0
jmp 0x140070467
add rax, 1
lea rdx, [rbp + 0x1c28]
cmp eax, 8
jae 0x1400708ad
test al, 4
jne 0x140070eec
test eax, eax
je 0x140070859
movzx ecx, byte [rsi + 1]
mov byte [rbp + 0x1c28], cl
test al, 2
jne 0x1400710c3
mov dword [rbp + 0x894], 1
jmp 0x14006fb30
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 0x14006fcbd
mov rcx, qword [rbp + 0x1cb0]
mov r15d, 0x1b
call sym.curl_slist_free_all
mov qword [rbp + 0x1cb0], 0
jmp 0x14006fcbd
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 0x140070859
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 0x14006fd81
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 0x140070922
jmp 0x14006fd81
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 0x14007030d
mov r8d, dword [rbp]
test r8d, r8d
je 0x140070974
mov ecx, dword [rbp + 4]
test ecx, ecx
je 0x140070f05
mov esi, dword [rsp + 0xc0]
jmp 0x14006feab
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 0x1400704c7
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r15d, eax
jmp 0x14007010e
mov dword [rsi + 0x1cac], 8
jmp case.default.0x140070291
cmp rdx, rax
jae 0x1400709da
lea rax, [rdx + 1]
mov qword [rsi + 0x1ed8], rax
mov byte [rdx], 0xff
mov dword [rsi + 0x1cac], 7
jmp case.default.0x140070291
mov rcx, qword [rsp + 0x50]
cmp rdx, rcx
jae 0x140070a22
lea rax, [rdx + 1]
mov qword [rsi + 0x1ed8], rax
mov byte [rdx], 0xff
mov rdx, qword [rsi + 0x1ed8]
cmp rdx, rcx
jae 0x140070a22
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 0x140070572
mov dword [rsi + 0x1cac], 1
jmp 0x1400704bf
movsxd rdi, r11d
jmp case.default.0x140070291
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070a76
mov eax, dword [rdx + 8]
test eax, eax
jle 0x1400705e1
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 0x1400705e1
cmp r15d, 0xff
jne 0x140070a5f
lea rdx, str.EXOPL
mov r13d, 0xff
jmp 0x1400705ac
lea rax, [r13 + 0x400]
mov r8d, dword [rdx + rax*4 + 8]
test r8d, r8d
je 0x140070b54
cmp r8d, 1
jne 0x140070572
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 0x140070572
lea rax, [r13 + 0x400]
mov r8d, dword [rdx + rax*4 + 8]
test r8d, r8d
je 0x140070b54
cmp r8d, 1
jne 0x140070572
mov dword [rdx + rcx*4 + 8], 0
mov dword [rdx + rax*4 + 8], 0
jmp 0x140070572
lea rcx, [r13 + 0x100]
mov r8d, dword [rdx + rcx*4 + 8]
test r8d, r8d
je 0x140070d6b
cmp r8d, 1
jne 0x140070572
mov dword [rdx + r13*4 + 8], 0
mov dword [rdx + rcx*4 + 8], 0
jmp 0x140070572
mov edx, dword [rax + 0x1008]
test edx, edx
je 0x140070e8f
cmp edx, 1
jne 0x140070572
mov dword [rax + 0xc08], 1
mov dword [rax + 0x1008], 0
jmp 0x140070572
mov edx, dword [rax + 0x1008]
test edx, edx
je 0x140070e9e
cmp edx, 1
jne 0x140070572
mov dword [rax + 0xc08], 3
mov dword [rax + 0x1008], 0
jmp 0x1400706dc
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070bd8
mov eax, dword [rdx + 8]
test eax, eax
jle 0x140070530
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 0x140070530
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070c16
mov eax, dword [rdx + 8]
test eax, eax
jle 0x140070754
mov dword [rsp + 0x20], r15d
lea r9, [0x14010bd90]
mov rcx, rbx
lea r8, str.RCVD
lea rdx, str._s__s__d
call sym.Curl_infof
jmp 0x140070754
cmp r15d, 0xff
jne 0x140070bff
lea rdx, str.EXOPL
jmp 0x14007071f
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140070c6b
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x14007069a
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 0x14007069a
cmp r15d, 0xff
jne 0x140070c52
lea rdx, str.EXOPL
jmp 0x140070663
lea rcx, [r13 + 0x100]
mov r8d, dword [rdx + rcx*4 + 8]
test r8d, r8d
je 0x140070d6b
cmp r8d, 1
jne 0x140070572
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 0x140070572
mov edx, dword [r13 + 0x408]
test edx, edx
je 0x140070e82
cmp edx, 1
jne 0x140070572
mov dword [r13 + 8], 1
mov dword [r13 + 0x408], 0
jmp 0x140070572
mov edx, dword [r13 + 0x408]
test edx, edx
je 0x140070ead
cmp edx, 1
jne 0x140070572
mov dword [r13 + 8], 3
mov dword [r13 + 0x1008], 0
jmp 0x1400707a3
cmp r15d, 0xff
jne 0x140070bc1
lea rdx, str.EXOPL
mov r13d, 0xff
jmp 0x1400704fb
mov dword [rdx + r13*4 + 8], 0
jmp 0x140070572
mov dword [rsi + 0x1cac], 0
test byte [rbx + 0xa37], 0x10
je case.default.0x140070291
movzx r15d, r13b
mov rax, qword [rbx + 0x11e8]
lea edx, [r15 - 0xec]
cmp edx, 0x13
ja 0x140070e52
test rax, rax
je 0x140070dbd
mov r11d, dword [rax + 8]
test r11d, r11d
jle case.default.0x140070291
movsxd rdx, edx
lea rax, [0x14010c000]
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.0x140070291
mov dword [rax + 0xc08], 1
mov r8d, r15d
mov edx, 0xfd
mov rcx, rbx
call sym.send_negotiation
jmp 0x140070572
test rcx, rcx
je 0x140070e13
mov r10d, dword [rcx + 8]
test r10d, r10d
jle 0x140070e2c
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.0x140070291
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140070e64
mov r10d, dword [rax + 8]
test r10d, r10d
jle case.default.0x140070291
mov r9d, r15d
lea r8, str.RCVD
lea rdx, str._s_IAC__d
mov rcx, rbx
call sym.Curl_infof
jmp case.default.0x140070291
mov dword [r13 + 8], 0
jmp 0x140070572
mov dword [rax + 0xc08], 0
jmp 0x140070572
mov dword [rax + 0xc08], 1
jmp 0x140070572
cmp dword [r13 + 0x1808], 1
mov dword [r13 + 8], 1
jne 0x140070572
mov edx, r15d
mov rcx, rbx
call sym.sendsuboption
jmp 0x140070572
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 0x14006fd81
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 0x140070859
mov rdi, qword [rbx + 0x1b8]
mov qword [rsp + 0x48], rbp
xor esi, esi
mov rbp, rbx
mov ebx, esi
cmp rsi, 1
je 0x140070f50
cmp dword [rdi + rsi*4 + 0x808], 1
je 0x140070f9d
cmp dword [rdi + rsi*4 + 0x1408], 1
je 0x140070f57
add rsi, 1
cmp rsi, 0x28
jne 0x140070f16
mov rbx, rbp
mov rbp, qword [rsp + 0x48]
mov dword [rbp + 4], 1
jmp 0x140070974
mov esi, 2
jmp 0x140070f16
mov rax, qword [rbp + 0x1b8]
movsxd rdx, ebx
lea r9, [rdx + 0x300]
mov r8d, dword [rax + r9*4 + 8]
cmp r8d, 2
je 0x140071008
cmp r8d, 3
je 0x140070fe2
test r8d, r8d
jne 0x140070f32
mov dword [rax + r9*4 + 8], 2
mov r8d, ebx
mov edx, 0xfd
mov rcx, rbp
call sym.send_negotiation
jmp 0x140070f32
mov rax, qword [rbp + 0x1b8]
movsxd rdx, esi
mov r8d, dword [rax + rdx*4 + 8]
cmp r8d, 2
je 0x14007104e
cmp r8d, 3
je 0x14007102a
test r8d, r8d
jne 0x140070f28
mov dword [rax + rdx*4 + 8], 2
mov r8d, esi
mov rcx, rbp
mov edx, 0xfb
call sym.send_negotiation
jmp 0x140070f28
mov r10d, dword [rax + rdx*4 + 0x1008]
lea r8, [rdx + 0x400]
test r10d, r10d
jne 0x140070f32
mov dword [rax + r8*4 + 8], 1
jmp 0x140070f32
cmp dword [rax + rdx*4 + 0x1008], 1
lea r8, [rdx + 0x400]
jne 0x140070f32
xor r9d, r9d
mov dword [rax + r8*4 + 8], r9d
jmp 0x140070f32
lea r8, [rdx + 0x100]
mov edx, dword [rax + rdx*4 + 0x408]
test edx, edx
jne 0x140070f28
mov dword [rax + r8*4 + 8], 1
jmp 0x140070f28
cmp dword [rax + rdx*4 + 0x408], 1
lea r8, [rdx + 0x100]
jne 0x140070f28
xor r11d, r11d
mov dword [rax + r8*4 + 8], r11d
jmp 0x140070f28
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 0x140070572
mov dword [r13 + 8], 1
mov r8d, r15d
mov edx, 0xfb
mov rcx, rbx
call sym.send_negotiation
cmp dword [r13 + 0x1808], 1
jne 0x140070572
jmp 0x140070ec3
mov eax, eax
movzx ecx, word [r15 + rax - 2]
mov word [rdx + rax - 2], cx
jmp 0x140070859
mov eax, eax
movzx ecx, word [r15 + rax - 2]
mov word [rdx + rax - 2], cx
jmp 0x14006fd81