Function at 0x14001dca0
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
mov rbx, qword [r15 + 0x8d8]
movsxd r14, edx
add rcx, 0x238
mov rbp, qword [r15 + r14*8 + 0x238]
lea rcx, [rcx + r14*8]
mov r12d, r9d
mov rsi, r8
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rbp
test rbx, rbx
je 0x14001e769
cmp dword [rbx + 0x4024], 2
je 0x14001e769
mov dword [r15 + 0x418], r13d
cmp dword [rbx + 0x4024], 0
jne 0x14001dfdc
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, r12d
mov r8, rsi
mov rcx, rdi
call fcn.140016ce0
mov rcx, qword [rdi + 0x1e0]
call qword [fcn.140049fdc]
mov qword [rdi + 0x1e0], r13
call fcn.140021470
mov rbp, rax
test rax, rax
je 0x14001e5fb
lea rcx, str._s:_hu
mov r8d, r12d
mov rdx, rsi
call fcn.1400266e0
mov r14, rax
test rax, rax
je 0x14001e5f3
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.140022200
mov rcx, r14
mov esi, eax
call qword [fcn.140049fdc]
test esi, esi
jne 0x14001dfae
mov rsi, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xd0]
lea rcx, [0x14007e168]
cmp dword [rsi + 0x164], 1
lea r12, [0x14007e16c]
lea rax, [0x140098ae3]
cmove r12, rcx
mov ecx, dword [rsi + 0x3d8]
mov r15, r13
mov r13, rax
cmp r14, qword [rsi + 0xd0]
je 0x14001de11
mov edx, Ordinal_60
mov rcx, r14
call fcn.14004da10
xor ecx, ecx
test rax, rax
lea rax, [0x140098ae3]
setne cl
mov r9, rax
test ecx, ecx
lea rdx, [0x140098b40]
cmovne r9, rdx
mov rdx, rax
lea rax, str.___:__
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
lea rcx, str._s_s_s:_hu
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.1400266e0
mov r14, rax
test rax, rax
je 0x14001e5f3
lea rdx, str.Host:
mov rcx, rsi
call fcn.140021b20
test rax, rax
jne 0x14001de84
lea rcx, str.Host:__s_r_n
mov rdx, r14
call fcn.1400266e0
mov r15, rax
test rax, rax
je 0x14001e5ea
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.140021b20
mov rcx, qword [rsp + 0xc0]
lea rsi, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea rax, [0x140098ae3]
lea rdx, str.User_Agent:
cmovne rsi, rax
call fcn.140021b20
test rax, rax
mov rax, qword [rsp + 0xc0]
jne 0x14001deda
cmp qword [rdi + 0x930], 0
je 0x14001deda
mov r13, qword [rax + 0x490]
mov rax, qword [rax + 0x488]
lea rdx, [0x140098ae3]
mov qword [rsp + 0x38], rsi
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r13
cmovne rcx, rax
mov rax, rdx
test r15, r15
mov qword [rsp + 0x28], rcx
cmovne rax, r15
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r12
mov r8, r14
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140021680
mov esi, eax
test r15, r15
je 0x14001df35
mov rcx, r15
call qword [fcn.140049fdc]
mov rcx, r14
call qword [fcn.140049fdc]
mov r15, qword [rsp + 0xc0]
test esi, esi
jne 0x14001df95
lea edx, [rsi + 1]
mov r8, rbp
mov rcx, r15
call fcn.140021700
mov esi, eax
test eax, eax
jne 0x14001df95
lea rdx, [0x14007c72c]
mov rcx, rbp
call fcn.140021680
mov esi, eax
test eax, eax
jne 0x14001df95
mov eax, dword [rsp + 0xc8]
lea r8, [rdi + 0x51e0]
xor r9d, r9d
mov rdx, r15
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140021480
mov esi, eax
xor r13d, r13d
mov ebp, r13d
test esi, esi
je 0x14001dfae
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.140016bd0
mov rcx, rbp
call fcn.140021440
test esi, esi
jne 0x14001e605
mov rbp, qword [rsp + 0x48]
mov r14d, dword [rsp + 0xc8]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r13d
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.140018220
test rax, rax
jle 0x14001e77c
mov edx, r14d
mov rcx, r15
call fcn.140017710
test eax, eax
je 0x14001e769
cmp dword [rbx + 0x4004], 0
mov r12d, r13d
je 0x14001e51a
lea r14, [rbx + 0x4000]
nop dword [rax]
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x14001e61d
lea rax, [rsp + 0x50]
mov r9d, 1
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140016d80
mov esi, eax
cmp eax, 0x51
je 0x14001e769
mov rcx, r15
call fcn.1400249e0
test eax, eax
jne 0x14001e613
test esi, esi
jne 0x14001e50b
cmp qword [rsp + 0x50], 0
jle 0x14001e4c8
cmp dword [rbx + 0x4004], 1
jle 0x14001e0f7
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x14001e0b8
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x14001e4b9
mov dword [rbx + 0x4024], 2
jmp 0x14001e50b
lea r9, [rsp + 0x60]
mov r8d, 1
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x60], r13
call fcn.14003ff20
cmp eax, 0xffffffff
jne 0x14001e4b9
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140016ce0
mov dword [rbx + 0x4004], r13d
jmp 0x14001e4af
mov rax, qword [rbx + 0x4010]
inc dword [r14]
cmp byte [rax], 0xa
je 0x14001e115
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x14001e4b9
cmp dword [rdi + 0x7b8], 0
je 0x14001e13a
movsxd r9, dword [r14]
mov r8, qword [rbx + 0x4008]
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.140016a70
cmp dword [rdi + 0xa5c], 0
jne 0x14001e171
cmp dword [rdi + 0x7a0], 0
movsxd r9, dword [r14]
mov r8, qword [rbx + 0x4008]
mov edx, 2
mov eax, 3
mov rcx, r15
cmovne edx, eax
call fcn.140016a50
test eax, eax
jne 0x14001e76b
mov eax, dword [r14]
add dword [rdi + 0x51dc], eax
mov eax, dword [r14]
add dword [rdi + 0x108], eax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14001e3e0
cmp al, 0xa
je 0x14001e3e0
movsxd rax, dword [r14]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], 0
mov rdx, qword [rbx + 0x4008]
lea rcx, str.WWW_Authenticate:
call fcn.140019470
test eax, eax
je 0x14001e1ce
mov eax, dword [rdi + 0x180]
cmp eax, 0x191
je 0x14001e1f8
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.140019470
test eax, eax
je 0x14001e246
mov eax, dword [rdi + 0x180]
cmp eax, 0x197
jne 0x14001e246
mov rcx, qword [rbx + 0x4008]
cmp eax, 0x197
mov ebp, r13d
sete bpl
call fcn.140021c90
mov rsi, rax
test rax, rax
je 0x14001e5fb
mov r8, rax
mov edx, ebp
mov rcx, r15
call fcn.140021f80
mov rcx, rsi
mov ebp, eax
call qword [fcn.140049fdc]
test ebp, ebp
jne 0x14001e60c
mov rbp, qword [rsp + 0x48]
jmp 0x14001e3ca
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.140019470
test eax, eax
je 0x14001e2b7
mov r8d, dword [rdi + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14001e295
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140016ce0
jmp 0x14001e3ca
mov rcx, qword [rbx + 0x4008]
xor edx, edx
lea r9, [rbx + 0x4018]
lea r8d, [rdx + 0xa]
add rcx, 0xf
call fcn.1400261d0
jmp 0x14001e3ca
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.140021bb0
test eax, eax
je 0x14001e2e2
mov dword [rsp + 0x40], 1
jmp 0x14001e3ca
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.140019470
test eax, eax
je 0x14001e372
mov r8d, dword [rdi + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14001e331
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140016ce0
jmp 0x14001e3ca
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.140021bb0
test eax, eax
je 0x14001e3ca
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.140016ce0
mov rcx, r15
mov dword [rbx + 0x4020], 1
call fcn.14003ff10
jmp 0x14001e3ca
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.140021bb0
test eax, eax
je 0x14001e39a
mov dword [rsp + 0x40], 1
jmp 0x14001e3ca
mov rcx, qword [rbx + 0x4008]
lea r9, [rdi + 0x180]
lea r8, [rsp + 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.14004d930
cmp eax, 2
jne 0x14001e3ca
mov eax, dword [rdi + 0x180]
mov dword [rdi + 0x51cc], eax
mov dword [r14], r13d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x14001e4b9
mov qword [rbx + 0x4010], rbx
cmp dword [rdi + 0x180], 0x197
jne 0x14001e49e
cmp dword [rdi + 0x4e88], 0
jne 0x14001e49e
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x14001e42b
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.140016ce0
jmp 0x14001e4a5
cmp dword [rbx + 0x4020], 0
je 0x14001e49e
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.140016ce0
mov dword [rdi + 0x1d0], 1
mov rax, qword [rbx + 0x4008]
inc rax
cmp byte [rax], 0xa
jne 0x14001e463
mov qword [rbx + 0x4008], rax
mov rdx, qword [rbx + 0x4008]
lea r9, [rsp + 0x50]
mov r8d, 1
inc rdx
mov rcx, r15
call fcn.14003ff20
cmp eax, 0xffffffff
jne 0x14001e4a5
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140016ce0
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r13d
cmp qword [rbx + 0x4018], 0
jne 0x14001e4b9
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], 0
jne 0x14001e020
jmp 0x14001e512
cmp dword [rdi + 0x258], 0
je 0x14001e4f6
cmp dword [rdi + 0x4e78], 0
je 0x14001e4f6
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rdi
mov dword [r15 + 0x418], 1
call fcn.140016ce0
jmp 0x14001e50b
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.140016bd0
mov dword [rbx + 0x4004], r13d
mov r14d, dword [rsp + 0xc8]
mov rcx, r15
call fcn.1400249e0
test eax, eax
jne 0x14001e613
test r12d, r12d
jne 0x14001e62c
mov eax, 0x51eb851f
imul dword [rdi + 0x51cc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14001e571
mov rcx, r15
call fcn.140021d90
test eax, eax
jne 0x14001e76b
cmp dword [r15 + 0x3b4], eax
je 0x14001e571
mov esi, 1
mov dword [rsp + 0x40], esi
jmp 0x14001e579
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x14001e587
cmp qword [rdi + 0x1e0], 0
jne 0x14001e636
cmp qword [rdi + 0x1e0], 0
je 0x14001e64f
cmp dword [rbx + 0x4024], 2
jne 0x14001e5cb
mov rax, qword [r15 + 0x8d8]
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
cmp qword [rdi + 0x1e0], 0
je 0x14001e64f
mov rsi, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
jmp 0x14001dd20
mov rcx, r14
call qword [fcn.140049fdc]
mov rcx, rbp
call fcn.140021440
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14001e76b
mov eax, esi
jmp 0x14001e76b
mov eax, ebp
jmp 0x14001e76b
mov eax, Ordinal_46
jmp 0x14001e76b
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.140016bd0
mov eax, gethostname
jmp 0x14001e76b
mov r14, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [r14]
call fcn.1400176a0
mov qword [r14], 0xffffffffffffffff
jmp 0x14001e654
mov r14, qword [rsp + 0x58]
mov eax, 0x51eb851f
imul dword [rdi + 0x51cc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14001e71d
test esi, esi
je 0x14001e6bc
cmp qword [rdi + 0x1e0], 0
je 0x14001e6bc
lea rdx, str.Connect_me_again_please_n
mov rcx, rdi
mov dword [r15 + 0x418], 1
call fcn.140016ce0
mov rax, qword [r15 + 0x8d8]
lea rdx, str.CONNECT_phase_completed__n
mov dword [rax + 0x4024], 2
mov rcx, qword [r15]
call fcn.140016ce0
jmp 0x14001e6ef
mov rcx, qword [rdi + 0x1e0]
call qword [fcn.140049fdc]
mov edx, 2
mov rcx, r15
mov qword [rdi + 0x1e0], r13
call fcn.1400177e0
mov rdx, qword [r14]
mov rcx, r15
call fcn.1400176a0
mov qword [r14], 0xffffffffffffffff
mov dword [rbx + 0x4024], r13d
cmp dword [r15 + 0x418], 0
jne 0x14001e769
mov r8d, dword [rdi + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.140016bd0
mov eax, gethostname
jmp 0x14001e76b
mov dword [rbx + 0x4024], 2
mov rcx, qword [r15 + 0x488]
call qword [fcn.140049fdc]
mov qword [r15 + 0x488], r13
mov r8d, dword [rdi + 0x51cc]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, rdi
mov dword [rdi + 0x4e7c], 1
call fcn.140016ce0
mov dword [rdi + 0x1d0], r13d
mov dword [r15 + 0x3fc], r13d
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.140016bd0
mov eax, Ordinal_30
jmp 0x14001e76b