Function at 0x140042010
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rdi, qword [rcx]
mov r15, rcx
xor r13d, r13d
movsxd r14, edx
add rcx, 0x238
mov dword [rsp + 0x44], r13d
mov r12d, r9d
mov byte [rsp + 0x40], r13b
mov rbx, qword [r15 + 0xa00]
mov rsi, r8
mov rbp, qword [r15 + r14*8 + 0x238]
mov qword [rsp + 0x48], rbp
lea rcx, [rcx + r14*8]
mov qword [rsp + 0x58], rcx
test rbx, rbx
je 0x140042085
cmp dword [rbx + 0x4024], 2
je 0x140042a7d
mov byte [r15 + 0x56a], r13b
nop dword [rax]
cmp dword [rbx + 0x4024], 0
jne 0x140042347
mov r9d, r12d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rsi
mov rcx, rdi
call fcn.140025740
mov rcx, qword [rdi + 0x230]
call qword [fcn.14006f27c]
mov qword [rdi + 0x230], r13
call fcn.14003bca0
mov r14, rax
test rax, rax
je 0x140042939
mov r8d, r12d
lea rcx, str._s:_hu
mov rdx, rsi
call fcn.1400263b0
mov rbp, rax
test rax, rax
je 0x140042931
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r15
call fcn.14003c8c0
mov rcx, rbp
mov esi, eax
call qword [fcn.14006f27c]
test esi, esi
jne 0x140042319
mov rsi, qword [rsp + 0xc0]
lea rax, [0x1400a059c]
mov rbp, qword [rsp + 0xd0]
lea r12, [0x1400a0598]
lea rcx, [0x140098b90]
mov r15, r13
mov r13, rcx
cmp dword [rsi + 0x164], 1
cmove r12, rax
movzx eax, byte [rsi + 0x55a]
cmp rbp, qword [rsi + 0xd0]
je 0x14004217d
mov edx, 0x3a
mov rcx, rbp
call fcn.14006a608
test rax, rax
lea rcx, [0x140098b90]
setne al
test al, al
lea rdx, [0x14009fba4]
mov r9, rcx
lea rax, [0x14009fba8]
cmovne r9, rdx
mov r8, rbp
mov rdx, rcx
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call fcn.1400263b0
mov rbp, rax
test rax, rax
je 0x140042931
lea rdx, str.Host:
mov rcx, rsi
call fcn.14003c1a0
test rax, rax
jne 0x1400421f0
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.1400263b0
mov r15, rax
test rax, rax
je 0x140042928
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.14003c1a0
mov rcx, qword [rsp + 0xc0]
lea rsi, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea rdx, str.User_Agent:
lea rax, [0x140098b90]
cmovne rsi, rax
call fcn.14003c1a0
test rax, rax
mov rax, qword [rsp + 0xc0]
jne 0x140042246
cmp qword [rdi + 0x740], 0
je 0x140042246
mov r13, qword [rax + 0x5c8]
mov rax, qword [rax + 0x5c0]
lea rdx, [0x140098b90]
test rax, rax
mov qword [rsp + 0x38], rsi
mov rcx, rdx
mov qword [rsp + 0x30], r13
cmovne rcx, rax
mov r9, r12
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r15, r15
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rbp
mov rcx, r14
cmovne rax, r15
mov qword [rsp + 0x20], rax
call fcn.14003bea0
mov esi, eax
test r15, r15
je 0x1400422a1
mov rcx, r15
call qword [fcn.14006f27c]
mov rcx, rbp
call qword [fcn.14006f27c]
mov r15, qword [rsp + 0xc0]
test esi, esi
jne 0x140042300
mov r8, r14
mov dl, 1
mov rcx, r15
call fcn.14003bf30
mov esi, eax
test eax, eax
jne 0x140042300
lea rdx, [0x14009cdcc]
mov rcx, r14
call fcn.14003bea0
mov esi, eax
test eax, eax
jne 0x140042300
mov eax, dword [rsp + 0xc8]
lea r8, [rdi + 0x4fc0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, r14
call fcn.14003bcb0
mov esi, eax
xor r13d, r13d
mov r14d, r13d
test esi, esi
je 0x140042319
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.140025650
mov rcx, r14
call fcn.14003bc70
test esi, esi
jne 0x140042943
mov rbp, qword [rsp + 0x48]
mov r14d, dword [rsp + 0xc8]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r13d
mov r8b, 1
xor edx, edx
mov rcx, rdi
call fcn.140037bf0
test rax, rax
jle 0x140042a88
mov edx, r14d
mov rcx, r15
call fcn.140037300
test al, al
je 0x140042a7d
cmp dword [rbx + 0x4004], 0
mov r12d, r13d
je 0x140042861
lea r14, [rbx + 0x4000]
nop word [rax + rax]
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x14004294a
lea rax, [rsp + 0x50]
mov r9d, 1
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.1400257e0
mov esi, eax
cmp eax, 0x51
je 0x140042a7d
mov rcx, r15
call fcn.140040f90
test eax, eax
jne 0x140042a81
test esi, esi
jne 0x140042852
cmp qword [rsp + 0x50], 0
jle 0x140042812
cmp dword [rbx + 0x4004], 1
jle 0x140042467
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x140042428
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x140042803
mov dword [rbx + 0x4024], 2
jmp 0x140042852
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.14004a220
cmp eax, 0xffffffff
jne 0x140042803
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140025740
mov dword [rbx + 0x4004], r13d
jmp 0x1400427f9
mov ecx, dword [r14]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r14], ecx
cmp byte [rax], 0xa
je 0x14004248a
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x140042803
cmp byte [rdi + 0x5f0], 0
je 0x1400424af
mov r8, qword [rbx + 0x4008]
mov edx, 1
movsxd r9, ecx
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1400254f0
cmp byte [rdi + 0x860], 0
jne 0x1400424e2
cmp byte [rdi + 0x5e5], 0
mov edx, r13d
movsxd r9, dword [r14]
mov rcx, r15
mov r8, qword [rbx + 0x4008]
setne dl
add edx, 2
call fcn.140025330
test eax, eax
jne 0x140042a9c
mov eax, dword [r14]
add dword [rdi + 0x4fbc], eax
mov eax, dword [r14]
add dword [rdi + 0x108], eax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14004272f
cmp al, 0xa
je 0x14004272f
movsxd rax, dword [r14]
mov r8d, setsockopt
mov byte [rax + rcx], 0
lea rcx, str.WWW_Authenticate:
mov rdx, qword [rbx + 0x4008]
call fcn.140025280
test eax, eax
je 0x140042540
mov esi, dword [rdi + 0x180]
cmp esi, 0x191
je 0x14004256b
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.140025280
test eax, eax
je 0x1400425b4
mov esi, dword [rdi + 0x180]
cmp esi, 0x197
jne 0x1400425b4
mov rcx, qword [rbx + 0x4008]
call fcn.14003c330
mov rbp, rax
test rax, rax
je 0x140042939
cmp esi, 0x197
mov r8, rax
mov rcx, r15
sete dl
call fcn.14003c630
mov rcx, rbp
mov esi, eax
call qword [fcn.14006f27c]
test esi, esi
jne 0x140042943
mov rbp, qword [rsp + 0x48]
jmp 0x140042719
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.140025280
test eax, eax
je 0x14004261a
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400425f8
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140025740
jmp 0x140042719
mov rcx, qword [rbx + 0x4008]
xor edx, edx
add rcx, 0xf
lea r8d, [rdx + 0xa]
call fcn.140070368
mov qword [rbx + 0x4018], rax
jmp 0x140042719
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.14003c240
test al, al
je 0x140042642
mov byte [rsp + 0x40], 1
jmp 0x140042719
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.140025280
test eax, eax
je 0x1400426c4
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140042686
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140025740
jmp 0x140042719
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.14003c240
test al, al
je 0x140042719
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.140025740
mov rcx, r15
mov byte [rbx + 0x4020], 1
call fcn.14004a210
jmp 0x140042719
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.14003c240
test al, al
je 0x1400426e9
mov byte [rsp + 0x40], 1
jmp 0x140042719
mov rcx, qword [rbx + 0x4008]
lea r9, [rdi + 0x180]
lea r8, [rsp + 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.14002c2e0
cmp eax, 2
jne 0x140042719
mov eax, dword [rdi + 0x180]
mov dword [rdi + 0x4fac], eax
mov dword [r14], r13d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x140042803
mov qword [rbx + 0x4010], rbx
cmp dword [rdi + 0x180], 0x197
jne 0x1400427e8
cmp byte [rdi + 0x4c78], 0
jne 0x1400427e8
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x14004277a
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.140025740
jmp 0x1400427ef
cmp byte [rbx + 0x4020], 0
je 0x1400427e8
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.140025740
mov byte [rdi + 0x225], 1
mov rdx, qword [rbx + 0x4008]
cmp byte [rdx + 1], 0xa
lea rax, [rdx + 1]
jne 0x1400427b4
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, r15
call fcn.14004a220
cmp eax, 0xffffffff
jne 0x1400427ef
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140025740
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r13d
cmp qword [rbx + 0x4018], 0
jne 0x140042803
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], 0
jne 0x140042390
jmp 0x140042859
cmp dword [rdi + 0x2a0], 0
je 0x14004283d
cmp dword [rdi + 0x4c70], 0
je 0x14004283d
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r15 + 0x56a], 1
mov rcx, rdi
call fcn.140025740
jmp 0x140042852
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.140025650
mov dword [rbx + 0x4004], r13d
mov r14d, dword [rsp + 0xc8]
mov rcx, r15
call fcn.140040f90
test eax, eax
jne 0x140042a81
test r12d, r12d
jne 0x140042959
cmp dword [rdi + 0x4fac], 0xc8
je 0x1400428a9
mov rcx, r15
call fcn.14003c440
test eax, eax
jne 0x140042a9c
cmp byte [r15 + 0x551], al
je 0x1400428a9
mov sil, 1
mov byte [rsp + 0x40], sil
jmp 0x1400428b3
movzx esi, byte [rsp + 0x40]
test sil, sil
je 0x1400428c1
cmp qword [rdi + 0x230], 0
jne 0x140042963
mov rax, qword [rdi + 0x230]
test rax, rax
je 0x14004297c
cmp dword [rbx + 0x4024], 2
jne 0x14004290e
mov rax, qword [r15 + 0xa00]
mov dword [rax + 0x4024], r13d
mov dword [rax + 0x4004], 1
mov qword [rax + 0x4008], rax
mov qword [rax + 0x4010], rax
mov qword [rax + 0x4018], r13
mov rax, qword [rdi + 0x230]
test rax, rax
je 0x14004297c
mov rsi, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
jmp 0x140042090
mov rcx, rbp
call qword [fcn.14006f27c]
mov rcx, r14
call fcn.14003bc70
mov eax, 0x1b
jmp 0x140042a9c
mov eax, esi
jmp 0x140042a9c
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.140025650
mov eax, 0x38
jmp 0x140042a9c
mov r14, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [r14]
call fcn.140037290
mov qword [r14], 0xffffffffffffffff
jmp 0x140042981
mov r14, qword [rsp + 0x58]
cmp dword [rdi + 0x180], 0xc8
je 0x140042a3a
test sil, sil
je 0x1400429d9
cmp qword [rdi + 0x230], 0
je 0x1400429d9
lea rdx, str.Connect_me_again_please_n
mov byte [r15 + 0x56a], 1
mov rcx, rdi
call fcn.140025740
mov rax, qword [r15 + 0xa00]
lea rdx, str.CONNECT_phase_completed__n
mov dword [rax + 0x4024], 2
mov rcx, qword [r15]
call fcn.140025740
jmp 0x140042a0c
mov rcx, qword [rdi + 0x230]
call qword [fcn.14006f27c]
mov edx, 2
mov qword [rdi + 0x230], r13
mov rcx, r15
call fcn.140037370
mov rdx, qword [r14]
mov rcx, r15
call fcn.140037290
mov qword [r14], 0xffffffffffffffff
mov dword [rbx + 0x4024], r13d
cmp byte [r15 + 0x56a], 0
jne 0x140042a7d
mov r8d, dword [rdi + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.140025650
mov eax, 0x38
jmp 0x140042a9c
mov dword [rbx + 0x4024], 2
mov rcx, qword [r15 + 0x5c0]
call qword [fcn.14006f27c]
mov qword [r15 + 0x5c0], r13
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, rdi
mov byte [rdi + 0x4c74], 1
call fcn.140025740
mov byte [rdi + 0x225], 0
mov byte [r15 + 0x563], 0
xor eax, eax
jmp 0x140042a9c
mov eax, 0x2a
jmp 0x140042a9c
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.140025650
mov eax, 0x1c
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret