Function at 0x14019b1d0
Capabilities:
Check http status code

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebp, r9d
mov r14, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, qword [rcx + 0xb08]
test rbx, rbx
je 0x14019b2b4
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0xac], 0
movsxd rax, r15d
lea rax, [rsi + rax*8]
add rax, 0x4c0
mov qword [rsp + 0x68], rax
cmp dword [rbx + 0x4020], 2
jne 0x14019b4da
mov rax, qword [rsi + 0xb08]
xor ebp, ebp
test rax, rax
je 0x14019b256
cmp dword [rax + 0x4020], 2
jne 0x14019b276
mov rax, qword [rsi + 0xb08]
mov dword [rax + 0x4020], 2
mov rcx, qword [rsi]
lea rdx, str.CONNECT_phase_completed__n
call fcn.1401581f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14019b297
call fcn.140278ca0
int3
mov ebp, Ordinal_46
jmp 0x14019b256
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14019b276
mov rax, qword [fcn.140119ad0]
mov ecx, 1
mov edx, 0x4028
call qword [str._a_]
test rax, rax
je 0x14019b2ad
mov rdi, rax
mov dword [rsp + 0x4c], ebp
mov rcx, qword [rsi]
lea rdx, str.allocate_connect_buffer__n
call fcn.1401581f0
mov qword [rsi + 0xb08], rdi
xor eax, eax
mov dword [rdi + 0x4020], eax
mov dword [rdi + 0x4004], 1
mov qword [rdi + 0x4008], rdi
mov qword [rdi + 0x4010], rdi
mov qword [rdi + 0x4018], 0
mov byte [rdi + 0x4025], 0
mov rbx, qword [rsi + 0xb08]
mov dword [rsp + 0xac], eax
test rbx, rbx
jne 0x14019b220
jmp 0x14019b23f
mov ebp, eax
mov qword [rsp + 0xa0], 0
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.140158420
lea rcx, [rsp + 0xa0]
call fcn.140184450
jmp 0x14019b256
mov ebp, eax
jmp 0x14019b349
mov ebp, eax
jmp 0x14019b256
mov ebp, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14019b256
mov ebp, r12d
jmp 0x14019b358
cmp dword [rdi + 0x6b0], 0
je 0x14019b3b6
cmp dword [rdi + 0x1220], 0
je 0x14019b3b6
mov byte [rsi + 0x66b], 1
mov rcx, rdi
lea rdx, str.Proxy_CONNECT_connection_closed_n
call fcn.1401581f0
mov dword [rsp + 0x58], 0
jmp 0x14019b3cd
mov rcx, rdi
lea rdx, str.Proxy_CONNECT_aborted
call fcn.140158420
mov dword [rsp + 0x58], 1
mov dword [rbx + 0x4004], 0
mov rcx, rsi
call fcn.14016fd90
test eax, eax
jne 0x14019b290
mov ebp, gethostname
cmp dword [rsp + 0x58], 0
jne 0x14019b256
mov eax, dword [rdi + 0x15fc]
mov ecx, 0xffffff38
add eax, ecx
cmp eax, 0x64
jb 0x14019b429
mov rcx, rsi
call fcn.140183710
test eax, eax
jne 0x14019b36e
cmp byte [rsi + 0x654], 1
jne 0x14019b429
mov byte [rbx + 0x4025], 1
mov rax, qword [rdi + 0x1c8]
cmp byte [rbx + 0x4025], 1
je 0x14019bceb
test rax, rax
je 0x14019bd07
cmp dword [rbx + 0x4020], 2
jne 0x14019b491
mov rax, qword [rsi + 0xb08]
mov dword [rax + 0x4020], 0
mov dword [rax + 0x4004], 1
mov qword [rax + 0x4008], rax
mov qword [rax + 0x4010], rax
mov qword [rax + 0x4018], 0
mov byte [rax + 0x4025], 0
mov rax, qword [rdi + 0x1c8]
test rax, rax
jne 0x14019b529
jmp 0x14019bd07
lea rcx, str.Host:__s_r_n
mov rdx, r14
call fcn.1401721c0
mov r12, rax
test rax, rax
jne 0x14019b690
mov rax, qword [fcn.140119970]
mov rcx, r14
call qword [str._a_]
jmp 0x14019b358
mov al, byte [rsi + 0x65e]
jmp 0x14019b630
mov rdi, qword [rsi]
mov rax, qword [rsp + 0x68]
mov r12, qword [rax]
movabs r13, 0xaaaaaaaaaaaaaaaa
mov byte [rsi + 0x66b], 0
lea rax, [rdi + 0x1618]
mov qword [rsp + 0x88], rax
lea rax, [rbx + 0x4000]
mov qword [rsp + 0x78], rax
lea rax, [rdi + 0x178]
mov qword [rsp + 0x50], rax
lea rax, [rbx + 0x4018]
mov qword [rsp + 0x70], rax
cmp dword [rbx + 0x4020], 0
jne 0x14019b7f5
mov qword [rsp + 0xa0], r13
mov rcx, rdi
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r8, r14
mov ebp, dword [rsp + 0x4c]
mov r9d, ebp
call fcn.1401581f0
mov rax, qword [fcn.140119970]
mov rcx, qword [rdi + 0x1c8]
call qword [str._a_]
mov qword [rdi + 0x1c8], 0
call fcn.140184430
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14019b375
mov dword [rsp + 0x64], r15d
lea rcx, str._s:_d
mov qword [rsp + 0x58], r14
mov rdx, r14
mov r8d, ebp
call fcn.1401721c0
mov ebp, reloc.WLDAP32.dll_Ordinal_27
test rax, rax
je 0x14019b358
mov r14, rax
mov qword [rsp + 0x80], r12
mov rcx, rsi
lea rdx, str.CONNECT
mov r8, rax
mov r9b, 1
call fcn.140183c90
mov r12d, eax
mov rax, qword [fcn.140119970]
mov rcx, r14
call qword [str._a_]
test r12d, r12d
jne 0x14019b37f
cmp dword [rsi + 0x3dc], 1
lea r13, [0x14040307d]
lea rax, [0x1403f34bf]
cmove r13, rax
mov r14, qword [rsp + 0x58]
cmp r14, qword [rsi + 0x340]
je 0x14019b4cf
mov rcx, r14
mov edx, 0x3a
call fcn.14027a740
test rax, rax
setne al
test al, al
lea rdx, [0x1403da166]
mov r9, rdx
lea rax, [0x1403dba2f]
cmovne r9, rax
lea rax, [0x1403dc312]
cmovne rdx, rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
lea rcx, str._s_s_s:_d
mov r8, r14
call fcn.1401721c0
test rax, rax
je 0x14019b358
mov r14, rax
mov rcx, rsi
lea rdx, str.Host
call fcn.1401835c0
test rax, rax
je 0x14019b49f
xor r12d, r12d
mov rcx, rsi
lea rdx, str.Proxy_Connection
call fcn.1401835c0
test rax, rax
lea r15, [0x1403da166]
mov rbp, r15
lea rax, str.Proxy_Connection:_Keep_Alive_r_n
cmove rbp, rax
mov rcx, rsi
lea rdx, str.User_Agent
call fcn.1401835c0
mov rcx, r15
test rax, rax
jne 0x14019b6e2
cmp qword [rdi + 0xd08], 0
mov rcx, r15
je 0x14019b6e2
mov rcx, qword [rsi + 0x6e0]
mov rax, qword [rsi + 0x6d8]
test rax, rax
cmove rax, r15
test r12, r12
mov rdx, r12
cmove rdx, r15
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r15, [rsp + 0xa0]
mov rcx, r15
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, r14
mov r9, r13
call fcn.140184800
mov ebp, eax
test r12, r12
je 0x14019b742
mov rax, qword [fcn.140119970]
mov rcx, r12
call qword [str._a_]
mov rax, qword [fcn.140119970]
mov rcx, r14
call qword [str._a_]
test ebp, ebp
movabs r13, 0xaaaaaaaaaaaaaaaa
jne 0x14019b33d
mov r8, qword [rsp + 0xa0]
mov rcx, rsi
mov dl, 1
call fcn.140184b80
test eax, eax
jne 0x14019b33b
mov rcx, r15
lea rdx, [0x1403f33e2]
call fcn.140184800
test eax, eax
jne 0x14019b33b
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov rcx, r15
mov rdx, rsi
mov r8, qword [rsp + 0x88]
xor r9d, r9d
call fcn.1401844a0
mov qword [rsp + 0xa0], 0
test eax, eax
jne 0x14019b36a
mov rcx, r15
call fcn.140184450
mov dword [rbx + 0x4020], 1
mov dword [rbx + 0x4000], 0
mov r14, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x64]
mov r12, qword [rsp + 0x80]
mov rcx, rdi
xor edx, edx
mov r8b, 1
call fcn.14015c980
test rax, rax
jle 0x14019ba86
mov rcx, rsi
mov edx, r15d
call fcn.14015e840
test al, al
je 0x14019b23f
mov dword [rsp + 0x58], 0
cmp dword [rbx + 0x4004], 0
je 0x14019b3d7
mov qword [rsp + 0xa0], r13
mov r8, qword [rbx + 0x4010]
cmp r8, qword [rsp + 0x78]
jae 0x14019ba6d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rcx, rsi
mov rdx, r12
call fcn.140158ff0
cmp eax, 0x51
je 0x14019b23f
mov ebp, eax
mov rcx, rsi
call fcn.14016fd90
test eax, eax
jne 0x14019b290
test ebp, ebp
jne 0x14019b3cd
cmp qword [rsp + 0xa0], 0
jle 0x14019b384
cmp dword [rbx + 0x4004], 2
jl 0x14019b8e8
mov qword [rbx + 0x4010], rbx
mov rax, qword [rbx + 0x4018]
test rax, rax
je 0x14019b914
lea rcx, [rax - 1]
mov rdx, qword [rsp + 0x70]
mov qword [rdx], rcx
cmp rax, 1
jg 0x14019b826
mov dword [rbx + 0x4004], 0
mov dword [rbx + 0x4020], 2
jmp 0x14019b3d7
movsxd r9, dword [rbx + 0x4000]
inc r9
mov dword [rbx + 0x4000], r9d
mov rax, qword [rbx + 0x4010]
cmp byte [rax], 0xa
je 0x14019b982
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x14019b826
mov dword [rsp + 0x9c], 0xaaaaaaaa
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x90]
call fcn.140176b10
cmp eax, 0xffffffff
jne 0x14019b826
mov rcx, rdi
lea rdx, str.chunk_reading_DONE_n
call fcn.1401581f0
mov dword [rbx + 0x4004], 0
mov dword [rbx + 0x4020], 2
jmp 0x14019b826
cmp byte [rdi + 0xf1e], 1
jne 0x14019b9a6
mov r8, qword [rbx + 0x4008]
mov rcx, rdi
mov edx, 1
call fcn.140158370
mov r9d, dword [rbx + 0x4000]
cmp byte [rdi + 0xf32], 0
jne 0x14019b9db
movzx edx, byte [rdi + 0xf19]
or edx, 2
movsxd r9, r9d
mov r8, qword [rbx + 0x4008]
mov rcx, rsi
call fcn.140158b90
test eax, eax
jne 0x14019b36e
mov rax, qword [rsp + 0x78]
mov r9d, dword [rax]
movsxd rax, r9d
add qword [rdi + 0x1610], rax
movsxd rax, dword [rbx + 0x4000]
add qword [rdi + 0x108], rax
mov rax, qword [rbx + 0x4008]
movzx ecx, byte [rax]
cmp ecx, 0xd
je 0x14019ba0b
cmp ecx, 0xa
jne 0x14019bb37
mov qword [rbx + 0x4010], rbx
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x197
jne 0x14019ba28
cmp byte [rdi + 0x1599], 0
je 0x14019ba46
mov dword [rbx + 0x4004], 0
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x14019b826
jmp 0x14019b973
mov dword [rbx + 0x4004], 2
mov r8, qword [rbx + 0x4018]
test r8, r8
je 0x14019ba9f
mov rcx, rdi
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
call fcn.1401581f0
jmp 0x14019ba32
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.140158420
mov ebp, gethostname
jmp 0x14019b256
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.140158420
mov ebp, 0x1c
jmp 0x14019b256
cmp byte [rbx + 0x4024], 1
jne 0x14019ba28
mov dword [rsp + 0x90], 0xaaaaaaaa
mov rcx, rdi
lea rdx, str.Ignore_chunked_response_body_n
call fcn.1401581f0
mov byte [rdi + 0x65b], 1
mov rdx, qword [rbx + 0x4008]
cmp byte [rdx + 1], 0xa
jne 0x14019bae0
inc rdx
mov qword [rbx + 0x4008], rdx
inc rdx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rsi
lea r9, [rsp + 0xa0]
call fcn.140176b10
cmp eax, 0xffffffff
jne 0x14019ba32
mov rcx, rdi
lea rdx, str.chunk_reading_DONE_n
call fcn.1401581f0
mov dword [rbx + 0x4004], 0
mov dword [rbx + 0x4020], 2
jmp 0x14019ba32
movsxd rcx, dword [rbx + 0x4000]
mov byte [rax + rcx], 0
mov rdx, qword [rbx + 0x4008]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
call fcn.140151730
test eax, eax
je 0x14019bb6c
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x191
je 0x14019bbe3
mov rdx, qword [rbx + 0x4008]
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
call fcn.140151730
test eax, eax
je 0x14019bb99
mov bpl, 1
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x197
je 0x14019bbe5
mov rdx, qword [rbx + 0x4008]
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
call fcn.140151730
test eax, eax
je 0x14019bc7c
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x14019bc5d
mov rcx, rdi
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
call fcn.1401581f0
jmp 0x14019bc40
xor ebp, ebp
mov r13, r12
mov r12d, r15d
mov r15, r14
mov rcx, qword [rbx + 0x4008]
call fcn.140183640
test rax, rax
je 0x14019b375
mov r14, rax
mov rcx, rsi
mov edx, ebp
mov r8, rax
call fcn.140184150
mov ebp, eax
mov rax, qword [fcn.140119970]
mov rcx, r14
call qword [str._a_]
test ebp, ebp
mov r14, r15
mov r15d, r12d
mov r12, r13
movabs r13, 0xaaaaaaaaaaaaaaaa
jne 0x14019b256
mov dword [rbx + 0x4000], 0
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x14019b826
mov rcx, qword [rbx + 0x4008]
add rcx, 0xf
xor edx, edx
mov r8d, 0xa
mov r9, qword [rsp + 0x70]
call fcn.1401771c0
jmp 0x14019bc40
mov rcx, qword [rbx + 0x4008]
lea rdx, str.Connection:
lea r8, str.close
call fcn.1401849e0
test al, al
je 0x14019bca3
mov byte [rbx + 0x4025], 1
jmp 0x14019bc40
mov rdx, qword [rbx + 0x4008]
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
call fcn.140151730
test eax, eax
je 0x14019be2f
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x14019be8b
mov rcx, rdi
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x14019bbdc
test rax, rax
je 0x14019bd07
mov r14, qword [rsp + 0x68]
mov rdx, qword [r14]
mov rcx, rsi
call fcn.14015d840
mov qword [r14], 0xffffffffffffffff
mov eax, 0xffffff38
add eax, dword [rdi + 0x15fc]
cmp eax, 0x64
jae 0x14019bd72
mov dword [rbx + 0x4020], 2
mov rax, qword [fcn.140119970]
mov rcx, qword [rsi + 0x6d8]
call qword [str._a_]
mov qword [rsi + 0x6d8], 0
mov word [rdi + 0x1224], 1
mov r8d, dword [rdi + 0x15fc]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, rdi
call fcn.1401581f0
xor eax, eax
mov byte [rdi + 0x65b], al
mov byte [rsi + 0x665], al
jmp 0x14019b23f
mov rcx, qword [rdi + 0x1c8]
test rcx, rcx
setne al
and al, byte [rbx + 0x4025]
cmp al, 1
je 0x14019bdc7
mov rax, qword [fcn.140119970]
call qword [str._a_]
mov qword [rdi + 0x1c8], 0
mov rcx, rsi
mov edx, 2
call fcn.14015e810
mov r14, qword [rsp + 0x68]
mov rdx, qword [r14]
mov rcx, rsi
call fcn.14015d840
mov qword [r14], 0xffffffffffffffff
jmp 0x14019bdfd
mov byte [rsi + 0x66b], 1
lea rdx, str.Connect_me_again_please_n
mov rcx, rdi
call fcn.1401581f0
mov rax, qword [rsi + 0xb08]
mov dword [rax + 0x4020], 2
mov rcx, qword [rsi]
lea rdx, str.CONNECT_phase_completed__n
call fcn.1401581f0
mov dword [rbx + 0x4020], 0
cmp byte [rsi + 0x66b], 0
jne 0x14019b23f
mov r8d, dword [rdi + 0x178]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.140158420
jmp 0x14019b256
mov rcx, qword [rbx + 0x4008]
lea rdx, str.Proxy_Connection:
lea r8, str.close
call fcn.1401849e0
test al, al
jne 0x14019bc9a
mov rcx, qword [rbx + 0x4008]
lea rdx, str.HTTP_1._d__d
lea r8, [rsp + 0xac]
mov r9, qword [rsp + 0x50]
call fcn.1400d45b0
cmp eax, 2
jne 0x14019bc40
mov eax, dword [rdi + 0x178]
mov dword [rdi + 0x15fc], eax
jmp 0x14019bc40
mov rcx, qword [rbx + 0x4008]
lea rdx, str.Transfer_Encoding:
lea r8, str.chunked
call fcn.1401849e0
test al, al
je 0x14019bc40
mov rcx, rdi
lea rdx, str.CONNECT_responded_chunked_n
call fcn.1401581f0
mov byte [rbx + 0x4024], 1
mov rcx, rsi
call fcn.140176af0
jmp 0x14019bc40