Function at 0x140248250
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsx rax, byte [rcx + 0x4ad]
mov rbx, rcx
mov r15, qword [rcx]
xor r12d, r12d
mov ecx, dword [rcx + 0x478]
mov rsi, rdx
movzx ecx, cx
mov r13d, 0x20b
lea r14, [rax + rax*8]
shl r14, 5
mov rdi, qword [r14 + r15 + 0x248]
mov qword [rsp + 0x30], r12
cmp ecx, 0x201
ja 0x14024833e
je 0x140248300
sub ecx, 0x12
je 0x1402484ba
sub ecx, 1
je 0x1402485e2
cmp ecx, 1
jne case.0x140248361.520
test dword [rbx + 0x498], 0x400000
jne case.0x140248361.520
mov rcx, rbx
call fcn.140240940
test eax, eax
je 0x1402486b4
jmp case.0x140248361.520
mov rcx, rbx
call fcn.1402412a0
mov r9, rax
lea r8, str.lws_http_client_socket_service
lea rdx, str._s:__s:_WAITING_DNS_n
mov ecx, 1
call fcn.14023ac50
mov rcx, rbx
call fcn.140250300
test rax, rax
jne case.0x140248361.520
mov eax, 0xffffffff
jmp 0x1402485bb
sub ecx, 0x202
cmp ecx, 9
ja case.0x140248361.520
movsxd rax, ecx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x2488d0]
add rcx, rdx
jmp rcx
test byte [rsi + 0xa], 0x10
je case.0x140248361.520
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140255d30
jmp 0x14024832b
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.140256c00
test eax, eax
je case.0x140248361.520
sub eax, 1
je 0x140248539
cmp eax, 1
je 0x1402484ba
jmp case.0x140248361.520
test byte [rsi + 0xa], 2
je 0x1402483e4
mov rcx, rbx
call fcn.1402412a0
mov r9, qword [rsi]
lea rdx, str.Proxy_conn__s__fd_d__dead_n
mov r8, rax
mov ecx, 2
call fcn.14023ac50
lea rdi, str.proxy_conn_dead
jmp 0x140248894
mov r8d, dword [r15 + 0xd0c]
xor r9d, r9d
mov rcx, qword [rbx + 0x470]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test eax, eax
jns 0x140248432
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je case.0x140248361.520
lea rdx, str.ERROR_reading_from_proxy_socket_n
mov ecx, 1
call fcn.14023ac50
lea rdi, str.proxy_read_err
jmp 0x140248894
mov rax, qword [r14 + r15 + 0x248]
mov byte [rax + 0xd], r12b
cmp ecx, 0xd
jl 0x140248553
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rdi
call fcn.1402776e0
test eax, eax
jne 0x140248553
movzx eax, byte [rdi + 7]
sub al, 0x30
cmp al, 1
ja 0x140248553
cmp byte [rdi + 8], 0x20
jne 0x140248553
lea rcx, [rdi + 9]
call fcn.14027ac0c
cmp eax, 0xc8
je 0x1402484ad
mov r9d, eax
lea r8, str.http_proxy_____u
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
call fcn.14023f470
mov qword [rsp + 0x30], rdi
jmp 0x14024853e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14023fd90
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x10]
call fcn.1402417b0
test eax, eax
jne 0x140248334
test byte [rbx + 0x450], 1
jne 0x1402484ea
test dword [rbx + 0x488], 0x40000
je 0x1402485e2
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14024ff20
cmp eax, 0xffffffff
je 0x140248539
cmp eax, 1
je case.0x140248361.520
test byte [rbx + 0x450], 1
je 0x14024855f
mov r8d, Ordinal_133
lea rdx, [rbp - 0x69]
mov rcx, rbx
call fcn.140250250
test eax, eax
je case.0x140248361.520
jns 0x140248581
lea rdi, [rbp - 0x69]
jmp 0x140248894
mov rdi, qword [rsp + 0x30]
test rdi, rdi
jne 0x140248899
lea rdi, str.unknown
jmp 0x140248894
lea rdi, str.http_proxy_fail
jmp 0x140248894
test dword [rbx + 0x488], 0x40000
mov qword [rbx + 0x3d8], r12
je 0x140248581
lea rdx, [0x14033524c]
mov rcx, rbx
call fcn.14024b930
test dword [rbx + 0x498], 0x10000000
je 0x1402485e2
mov rcx, rbx
call fcn.140243780
test eax, eax
je 0x1402485a5
lea rdi, str.error_sending_h2_preface
jmp 0x140248894
mov r8d, dword [r15 + 0xd08]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
call fcn.14023fd90
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14025e930
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, rdi
mov rcx, rbx
call fcn.140247d80
test rax, rax
jne 0x140248635
mov rax, qword [rbx + 0x340]
lea rcx, str.p_4_
cmp rax, rcx
je case.0x140248361.520
lea rcx, str.raw_file
cmp rax, rcx
je case.0x140248361.520
lea rdx, str.Failed_to_generate_handshake_for_client_n
mov ecx, 1
call fcn.14023ac50
lea r8, [0x140342f54]
xor edx, edx
mov rcx, rbx
call fcn.14024cea0
jmp case.0x140248361.520
sub rax, rdi
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.140242020
cmp eax, 0xfffffffc
je 0x140248666
cmp eax, 0xffffffff
jne 0x14024866e
lea r8, [0x140342f58]
xor edx, edx
mov rcx, rbx
call fcn.14024cea0
jmp case.0x140248361.520
mov rcx, rbx
call fcn.140241c40
test dword [rbx + 0x498], 0x400000
jne 0x1402486ef
mov rcx, rbx
call fcn.140240940
test eax, eax
jne 0x1402486ef
mov rax, qword [rbx]
mov edx, 4
and dword [rbx + 0x494], 0xfffffffe
mov rcx, rbx
mov word [rbx + 0x478], r13w
mov r8d, dword [rax + 0xd08]
call fcn.14023fd90
mov rcx, rbx
call fcn.140241c40
mov rax, qword [rbx + 0x40]
mov edx, 4
mov byte [rax + 0x3d0], 0x61
mov rax, qword [rbx + 0x40]
mov word [rax + 0x3c8], r12w
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x3b8], r12d
mov word [rbx + 0x478], r13w
mov r8d, dword [r15 + 0xd08]
jmp 0x1402485b1
mov eax, reloc.WS2_32.dll_sendto
mov rcx, rbx
mov word [rbx + 0x478], ax
mov r8d, dword [r15 + 0xd08]
lea edx, [rax - 2]
call fcn.14023fd90
test dword [rbx + 0x488], 0x800
je case.0x140248361.520
mov rcx, rbx
call fcn.140241c40
jmp case.0x140248361.520
movzx ecx, word [rsi + 0xa]
mov edx, 0x302
movzx eax, cx
and ax, dx
cmp ax, 2
jne 0x140248769
lea rcx, [rbx + 0x3c8]
call fcn.1402415f0
test rax, rax
je 0x14024886a
mov edx, 6
mov rcx, rbx
lea r8d, [rdx - 3]
call fcn.14023fd90
movzx ecx, word [rsi + 0xa]
test cl, 0x10
je 0x140248785
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x10]
call fcn.1402417b0
test eax, eax
jne 0x140248334
mov eax, 0x300
test word [rsi + 0xa], ax
je case.0x140248361.520
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x3d0], 0x65
je 0x14024885d
lea rsi, str.lws_http_client_socket_service
nop dword [rax]
lea rcx, [r15 + 0x198]
mov qword [rbp - 0x79], r12
add rcx, r14
mov dword [rbp - 0x71], r12d
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x79]
mov rdx, rbx
call fcn.14023dd20
mov ecx, dword [rbp - 0x71]
mov edi, eax
cmp ecx, 0xfffffffc
je case.0x140248361.520
test eax, eax
js 0x14024888d
test ecx, ecx
js 0x14024888d
je case.0x140248361.520
mov rdx, qword [rbp - 0x79]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov rcx, rbx
call fcn.140246610
test eax, eax
jne 0x140248873
mov r8d, dword [rbp - 0x71]
lea rdx, [rbp - 0x79]
sub r8d, dword [rsp + 0x38]
mov r9d, edi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.14023dc30
test eax, eax
jne 0x140248334
mov rax, qword [rbx + 0x40]
cmp dword [rsp + 0x38], r12d
jne 0x140248850
cmp byte [rax + 0x3d0], 0x65
jne 0x1402487b0
cmp byte [rax + 0x3d0], 0x65
jne case.0x140248361.520
mov rcx, rbx
call fcn.140247340
jmp 0x1402485bb
lea rdi, str.Peer_hung_up
jmp 0x140248894
lea rdx, str.problems_parsing_header_n
mov ecx, 2
call fcn.14023ac50
lea rdi, str.problems_parsing_header
jmp 0x140248894
lea rdi, str.read_failed
mov qword [rsp + 0x30], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x1402488a0
mov rdx, rdi
mov rcx, rbx
call fcn.14024cee0
lea r8, str.cbail3
xor edx, edx
mov rcx, rbx
call fcn.14024cea0
mov eax, 0xffffffff
jmp 0x1402485bb