Function at 0x140019d58
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
and dword [rax - 0x78], 0
mov rdi, qword [rcx + 0x8d8]
mov rbx, qword [rcx]
movsxd r14, edx
xor eax, eax
mov r15d, r9d
mov r13, qword [rcx + r14*8 + 0x238]
mov rbp, r8
mov rsi, rcx
mov qword [rsp + 0x60], r14
mov dword [rsp + 0xc0], eax
mov qword [rsp + 0x50], r13
test rdi, rdi
je 0x14001a7f3
cmp dword [rdi + 0x4024], 2
je 0x14001a7f3
and dword [rcx + 0x418], eax
lea r12d, [rax + 1]
cmp dword [rdi + 0x4024], 0
jne 0x14001a06f
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, r15d
mov r8, rbp
mov rcx, rbx
call fcn.1400160e8
mov rcx, qword [rbx + 0x1e0]
call qword [fcn.140043a0c]
and qword [rbx + 0x1e0], 0
call fcn.14001d180
mov r14, rax
test rax, rax
je 0x14001a669
lea rcx, str._s:_hu
mov r8d, r15d
mov rdx, rbp
call fcn.140021b4c
mov r15, rax
test rax, rax
je 0x14001a661
lea rdx, str.CONNECT
mov r9d, r12d
mov r8, rax
mov rcx, rsi
call fcn.14001de38
mov rcx, r15
mov ebp, eax
call qword [fcn.140043a0c]
test ebp, ebp
jne 0x14001a046
mov rbp, qword [rsp + 0xd0]
mov ecx, dword [rsi + 0x3d8]
xor r12d, r12d
cmp dword [rsi + 0x164], 1
lea rax, [0x140078a28]
lea r13, [0x140078a2c]
lea r15, [0x140093733]
cmove r13, rax
mov qword [rsp + 0x48], r15
cmp rbp, qword [rsi + 0xd0]
je 0x140019ead
lea edx, [r12 + 0x3a]
mov rcx, rbp
call fcn.140046cfc
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x1400937a8]
mov r9, r15
cmovne r9, rax
lea rax, str.___:__
mov rdx, r15
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
lea rcx, str._s_s_s:_hu
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.140021b4c
mov r15, rax
test rax, rax
je 0x14001a661
lea rdx, str.Host:
mov rcx, rsi
call fcn.14001d7fc
test rax, rax
jne 0x140019f20
lea rcx, str.Host:__s_r_n
mov rdx, r15
call fcn.140021b4c
mov r12, rax
test rax, rax
je 0x14001a658
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.14001d7fc
lea rbp, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
test rax, rax
lea rax, [0x140093733]
mov rcx, rsi
cmovne rbp, rax
call fcn.14001d7fc
test rax, rax
jne 0x140019f6d
cmp qword [rbx + 0x930], rax
je 0x140019f6d
mov rax, qword [rsi + 0x490]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x488]
lea rdx, [0x140093733]
mov qword [rsp + 0x38], rbp
test rax, rax
mov rcx, rdx
mov r9, r13
cmovne rcx, rax
mov rax, rdx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
test r12, r12
cmovne rax, r12
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, r15
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14001d38c
mov ebp, eax
test r12, r12
je 0x140019fcd
mov rcx, r12
call qword [fcn.140043a0c]
mov rcx, r15
call qword [fcn.140043a0c]
mov r12d, 1
test ebp, ebp
jne 0x14001a02b
mov r8, r14
mov edx, r12d
mov rcx, rsi
call fcn.14001d404
mov ebp, eax
test eax, eax
jne 0x14001a02b
lea rdx, [0x140093a7c]
mov rcx, r14
call fcn.14001d38c
mov ebp, eax
test eax, eax
jne 0x14001a02b
mov eax, dword [rsp + 0xc8]
lea r8, [rbx + 0x51d8]
xor r9d, r9d
mov rdx, rsi
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.14001d190
mov ebp, eax
xor r14d, r14d
test ebp, ebp
je 0x14001a041
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.140015ff0
mov r13, qword [rsp + 0x50]
mov rcx, r14
call fcn.14001d158
test ebp, ebp
jne 0x14001a673
mov r14d, dword [rsp + 0xc8]
xor ebp, ebp
mov dword [rdi + 0x4024], r12d
mov dword [rdi + 0x4000], ebp
jmp 0x14001a071
xor ebp, ebp
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call fcn.140017300
test rax, rax
jle 0x14001a7df
mov edx, r14d
mov rcx, rsi
call fcn.140016924
test eax, eax
je 0x14001a7db
mov r12d, ebp
cmp dword [rdi + 0x4004], ebp
je 0x14001a574
lea r15, [rdi + 0x4000]
mov r8, qword [rdi + 0x4010]
cmp r8, r15
jae 0x14001a684
lea rax, [rsp + 0x58]
mov r14d, 1
mov rdx, r13
mov r9d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140016180
mov ebp, eax
cmp eax, 0x51
je 0x14001a7db
mov rcx, rsi
call fcn.14002008c
test eax, eax
jne 0x14001a67a
test ebp, ebp
jne 0x14001a564
xor ebp, ebp
cmp qword [rsp + 0x58], rbp
jle 0x14001a528
cmp dword [rdi + 0x4004], r14d
jle 0x14001a187
mov rax, qword [rdi + 0x4018]
mov qword [rdi + 0x4010], rdi
test rax, rax
je 0x14001a14c
dec rax
mov qword [rdi + 0x4018], rax
test rax, rax
jg 0x14001a51b
mov dword [rdi + 0x4024], 2
jmp 0x14001a566
lea r9, [rsp + 0x48]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.140039d84
cmp eax, 0xffffffff
jne 0x14001a51b
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400160e8
mov dword [rdi + 0x4004], ebp
jmp 0x14001a511
mov rax, qword [rdi + 0x4010]
add dword [r15], r14d
cmp byte [rax], 0xa
je 0x14001a1a5
inc rax
mov qword [rdi + 0x4010], rax
jmp 0x14001a51b
cmp dword [rbx + 0x7b8], ebp
je 0x14001a1c7
movsxd r9, dword [r15]
mov r8, qword [rdi + 0x4008]
mov edx, r14d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
cmp dword [rbx + 0xa5c], ebp
jne 0x14001a1fa
cmp dword [rbx + 0x7a0], ebp
movsxd r9, dword [r15]
mov r8, qword [rdi + 0x4008]
mov edx, 2
mov rcx, rsi
lea eax, [rdx + 1]
cmovne edx, eax
call fcn.140015ed8
test eax, eax
jne 0x14001a7f3
mov eax, dword [r15]
add dword [rbx + 0x51d4], eax
mov eax, dword [r15]
add dword [rbx + 0x108], eax
mov rcx, qword [rdi + 0x4008]
cmp byte [rcx], 0xd
je 0x14001a44c
cmp byte [rcx], 0xa
je 0x14001a44c
movsxd rax, dword [r15]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], bpl
mov rdx, qword [rdi + 0x4008]
lea rcx, str.WWW_Authenticate:
call fcn.1400210e8
test eax, eax
je 0x14001a256
mov eax, dword [rbx + 0x180]
cmp eax, 0x191
je 0x14001a280
mov rdx, qword [rdi + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.1400210e8
test eax, eax
je 0x14001a2c8
mov eax, dword [rbx + 0x180]
cmp eax, 0x197
jne 0x14001a2c8
mov rcx, qword [rdi + 0x4008]
cmp eax, 0x197
sete bpl
call fcn.14001d944
mov r14, rax
test rax, rax
je 0x14001a669
mov r8, rax
mov edx, ebp
mov rcx, rsi
call fcn.14001dbd8
mov rcx, r14
mov ebp, eax
call qword [fcn.140043a0c]
test ebp, ebp
jne 0x14001a673
xor ebp, ebp
jmp 0x14001a436
mov rdx, qword [rdi + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.1400210e8
test eax, eax
je 0x14001a339
mov r8d, dword [rbx + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14001a317
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.1400160e8
jmp 0x14001a436
mov rcx, qword [rdi + 0x4008]
xor edx, edx
lea r9, [rdi + 0x4018]
lea r8d, [rdx + 0xa]
add rcx, 0xf
call fcn.1400218dc
jmp 0x14001a436
mov rcx, qword [rdi + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.14001d874
test eax, eax
jne 0x14001a3fc
mov rdx, qword [rdi + 0x4008]
lea r8d, [rax + 0x12]
lea rcx, str.Transfer_Encoding:
call fcn.1400210e8
test eax, eax
je 0x14001a3de
mov r8d, dword [rbx + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14001a3a0
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x14001a30a
mov rcx, qword [rdi + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.14001d874
test eax, eax
je 0x14001a436
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.1400160e8
mov rcx, rsi
mov dword [rdi + 0x4020], r14d
call fcn.140039d78
jmp 0x14001a436
mov rcx, qword [rdi + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.14001d874
test eax, eax
je 0x14001a406
mov dword [rsp + 0xc0], r14d
jmp 0x14001a436
mov rcx, qword [rdi + 0x4008]
lea r14, [rbx + 0x180]
lea r8, [rsp + 0x40]
lea rdx, str.HTTP_1._d__d
mov r9, r14
call fcn.140046c1c
cmp eax, 2
jne 0x14001a436
mov eax, dword [r14]
mov dword [rbx + 0x51c4], eax
mov dword [r15], ebp
mov qword [rdi + 0x4010], rdi
mov qword [rdi + 0x4008], rdi
jmp 0x14001a51b
mov qword [rdi + 0x4010], rdi
cmp dword [rbx + 0x180], 0x197
jne 0x14001a502
cmp dword [rbx + 0x4e88], ebp
jne 0x14001a502
mov r8, qword [rdi + 0x4018]
mov dword [rdi + 0x4004], 2
test r8, r8
je 0x14001a496
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.1400160e8
jmp 0x14001a508
cmp dword [rdi + 0x4020], ebp
je 0x14001a502
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.1400160e8
mov dword [rbx + 0x1d0], r14d
mov rax, qword [rdi + 0x4008]
inc rax
cmp byte [rax], 0xa
jne 0x14001a4ca
mov qword [rdi + 0x4008], rax
mov rdx, qword [rdi + 0x4008]
lea r9, [rsp + 0x58]
mov r8, r14
add rdx, r14
mov rcx, rsi
call fcn.140039d84
cmp eax, 0xffffffff
jne 0x14001a508
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400160e8
mov dword [rdi + 0x4024], 2
mov dword [rdi + 0x4004], ebp
cmp qword [rdi + 0x4018], rbp
jne 0x14001a51b
mov dword [rdi + 0x4024], 2
cmp dword [rdi + 0x4004], ebp
je 0x14001a56c
jmp 0x14001a0b0
cmp dword [rbx + 0x258], ebp
je 0x14001a550
cmp dword [rbx + 0x4e78], ebp
je 0x14001a550
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rbx
mov dword [rsi + 0x418], r14d
call fcn.1400160e8
jmp 0x14001a566
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r12d, r14d
call fcn.140015ff0
jmp 0x14001a566
xor ebp, ebp
mov dword [rdi + 0x4004], ebp
mov r14d, dword [rsp + 0xc8]
mov rcx, rsi
call fcn.14002008c
test eax, eax
jne 0x14001a67a
test r12d, r12d
jne 0x14001a693
mov r15d, 0x51eb851f
mov eax, r15d
imul dword [rbx + 0x51c4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14001a5d9
mov rcx, rsi
call fcn.14001da10
test eax, eax
jne 0x14001a7f3
mov ecx, dword [rsp + 0xc0]
cmp dword [rsi + 0x3b4], ebp
lea r12d, [rax + 1]
cmovne ecx, r12d
mov dword [rsp + 0xc0], ecx
jmp 0x14001a5e6
mov ecx, dword [rsp + 0xc0]
mov r12d, 1
test ecx, ecx
je 0x14001a5f7
cmp qword [rbx + 0x1e0], rbp
jne 0x14001a69d
cmp qword [rbx + 0x1e0], rbp
je 0x14001a6c4
cmp dword [rdi + 0x4024], 2
jne 0x14001a636
mov rax, qword [rsi + 0x8d8]
mov dword [rax + 0x4024], ebp
mov dword [rax + 0x4004], r12d
mov qword [rax + 0x4008], rax
mov qword [rax + 0x4010], rax
mov qword [rax + 0x4018], rbp
cmp qword [rbx + 0x1e0], rbp
je 0x14001a6c4
mov rbp, qword [rsp + 0xd0]
mov r15d, dword [rsp + 0xd8]
jmp 0x140019dcb
mov rcx, r15
call qword [fcn.140043a0c]
mov rcx, r14
call fcn.14001d158
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14001a7f3
mov eax, ebp
jmp 0x14001a7f3
mov eax, Ordinal_45
jmp 0x14001a7f3
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.140015ff0
mov eax, gethostname
jmp 0x14001a7f3
mov rbp, qword [rsp + 0x60]
mov rcx, rsi
mov rdx, qword [rsi + rbp*8 + 0x238]
call fcn.1400168c4
or qword [rsi + rbp*8 + 0x238], 0xffffffffffffffff
mov ecx, dword [rsp + 0xc0]
jmp 0x14001a6c9
mov rbp, qword [rsp + 0x60]
mov eax, r15d
imul dword [rbx + 0x51c4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14001a792
xor r14d, r14d
test ecx, ecx
je 0x14001a72d
cmp qword [rbx + 0x1e0], r14
je 0x14001a72d
lea rdx, str.Connect_me_again_please_n
mov rcx, rbx
mov dword [rsi + 0x418], r12d
call fcn.1400160e8
mov rax, qword [rsi + 0x8d8]
lea rdx, str.CONNECT_phase_completed__n
mov dword [rax + 0x4024], 2
mov rcx, qword [rsi]
call fcn.1400160e8
jmp 0x14001a767
mov rcx, qword [rbx + 0x1e0]
call qword [fcn.140043a0c]
mov edx, 2
mov rcx, rsi
mov qword [rbx + 0x1e0], r14
call fcn.1400169d0
mov rdx, qword [rsi + rbp*8 + 0x238]
mov rcx, rsi
call fcn.1400168c4
or qword [rsi + rbp*8 + 0x238], 0xffffffffffffffff
mov dword [rdi + 0x4024], r14d
cmp dword [rsi + 0x418], r14d
jne 0x14001a7db
mov r8d, dword [rbx + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.140015ff0
jmp 0x14001a693
mov dword [rdi + 0x4024], 2
mov rcx, qword [rsi + 0x488]
call qword [fcn.140043a0c]
xor edi, edi
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov qword [rsi + 0x488], rdi
mov r8d, dword [rbx + 0x51c4]
mov rcx, rbx
mov dword [rbx + 0x4e7c], r12d
call fcn.1400160e8
mov dword [rbx + 0x1d0], edi
mov dword [rsi + 0x3fc], edi
xor eax, eax
jmp 0x14001a7f3
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.140015ff0
mov eax, Ordinal_32
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret