Function at 0x1800b7bd0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xa0
mov rbx, qword [rcx]
movsxd rbp, edx
xor edi, edi
mov rax, qword [rcx + rbp*8 + 0x210]
mov r13d, r9d
mov rsi, r8
mov qword [rsp + 0x70], rax
xor eax, eax
cmp dword [rcx + rbp*4 + 0x7e0], 2
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0xe0], eax
mov r15, rcx
mov dword [rsp + 0x68], 0
mov r12, rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], edi
je 0x1800b86ac
mov qword [rsp + 0x98], r14
mov dword [rcx + 0x440], eax
nop
cmp dword [r15 + r12*4 + 0x7e0], 0
jne 0x1800b7ee5
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, r13d
mov r8, rsi
mov rcx, rbx
call fcn.180094e10
mov rcx, qword [rbx + 0x180]
call qword [fcn.1801cc408]
mov qword [rbx + 0x180], 0
call fcn.1800b2e10
mov rbp, rax
test rax, rax
je 0x1800b8556
lea rcx, str._s:_hu
mov r8d, r13d
mov rdx, rsi
call fcn.18009a4b0
mov rsi, rax
test rax, rax
je 0x1800b854e
lea rdx, [0x18022da08]
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.1800b29a0
mov rcx, rsi
mov edi, eax
call qword [fcn.1801cc408]
test edi, edi
jne 0x1800b7ec2
mov rdi, qword [rsp + 0xf0]
mov ecx, dword [r15 + 0x400]
xor r12d, r12d
cmp dword [r15 + 0x14c], 1
lea r14, [0x18022c4cc]
lea rax, [0x18022c4c8]
lea rsi, [0x1802250d2]
cmove r14, rax
mov r13, rsi
cmp rdi, qword [r15 + 0xb8]
je 0x1800b7d3a
lea edx, [r12 + 0x3a]
mov rcx, rdi
call fcn.1801ca010
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x1802250cc]
mov r9, rsi
cmovne r9, rax
lea rax, [0x1802250c8]
mov rdx, rsi
cmovne rdx, rax
mov eax, dword [rsp + 0xf8]
lea rcx, str._s_s_s:_hu
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.18009a4b0
mov rsi, rax
test rax, rax
je 0x1800b854e
lea rdx, str.Host:
mov rcx, r15
call fcn.1800b2380
test rax, rax
jne 0x1800b7dad
lea rcx, str.Host:__s_r_n
mov rdx, rsi
call fcn.18009a4b0
mov r12, rax
test rax, rax
je 0x1800b8545
lea rdx, str.Proxy_Connection:
mov rcx, r15
call fcn.1800b2380
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
test rax, rax
lea rax, [0x1802250d2]
mov rcx, r15
cmovne rdi, rax
call fcn.1800b2380
test rax, rax
jne 0x1800b7df5
cmp qword [rbx + 0x718], rax
je 0x1800b7df5
mov r13, qword [r15 + 0x4b0]
mov rax, qword [r15 + 0x4a8]
lea rdx, [0x1802250d2]
mov qword [rsp + 0x38], rdi
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r13
cmovne rcx, rax
mov rax, rdx
test r12, r12
mov qword [rsp + 0x28], rcx
cmovne rax, r12
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r14
mov r8, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800b3900
mov edi, eax
test r12, r12
je 0x1800b7e50
mov rcx, r12
call qword [fcn.1801cc408]
mov rcx, rsi
call qword [fcn.1801cc408]
test edi, edi
jne 0x1800b7ea8
lea edx, [rdi + 1]
mov r8, rbp
mov rcx, r15
call fcn.1800b3ac0
mov edi, eax
test eax, eax
jne 0x1800b7ea8
lea rdx, [0x1802249d8]
mov rcx, rbp
call fcn.1800b3900
mov edi, eax
test eax, eax
jne 0x1800b7ea8
mov eax, dword [rsp + 0xe8]
lea r8, [rbx + 0x4ca0]
xor r9d, r9d
mov rdx, r15
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1800b2e50
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x1800b7ebd
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.180094ec0
mov r12, qword [rsp + 0x40]
mov rcx, rbp
call fcn.1800b2e20
test edi, edi
jne 0x1800b8560
mov ebp, dword [rsp + 0xe8]
mov dword [r15 + r12*4 + 0x7e0], 1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.180097880
test rax, rax
jle 0x1800b8690
cmp dword [rsp + 0x100], 0
jne 0x1800b7f18
mov edx, ebp
mov rcx, r15
call fcn.180098600
test eax, eax
je 0x1800b8685
mov rsi, qword [rbx + 0x9f0]
xor eax, eax
xor r12d, r12d
mov r14d, 1
xor r13d, r13d
mov rbp, rsi
mov qword [rsp + 0x50], rax
test r14d, r14d
je 0x1800b8037
mov rcx, r15
call fcn.18009fc80
test eax, eax
jne 0x1800b8689
mov rax, qword [rbx + 0x9f0]
mov rcx, rbx
add rax, 0x4000
cmp rsi, rax
jae 0x1800b8567
xor edx, edx
lea r8d, [rdx + 1]
call fcn.180097880
mov rdi, rax
test rax, rax
jle 0x1800b84ad
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov r9d, 1
mov r8, rsi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.180094ae0
cmp eax, 0x51
jne 0x1800b7fe7
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp rdi, r9
cmovl r9, rdi
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.1800879b0
cmp eax, 0xffffffff
jne 0x1800b8375
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov esi, 1
mov rcx, rbx
mov dword [rsp + 0xe0], esi
call fcn.180094ec0
jmp 0x1800b803e
test eax, eax
jne 0x1800b8037
cmp qword [rsp + 0x78], 0
jle 0x1800b845c
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp r14d, 1
jle 0x1800b80e3
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rbx + 0x9f0]
xor eax, eax
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x1800b8091
dec rdi
mov qword [rsp + 0x60], rdi
test rdi, rdi
jg 0x1800b7f35
mov esi, dword [rsp + 0xe0]
mov rcx, r15
call fcn.18009fc80
test eax, eax
jne 0x1800b8689
test esi, esi
jne 0x1800b869f
cmp dword [rbx + 0x4c8c], 0xc8
je 0x1800b84cd
mov rcx, r15
call fcn.1800b3700
test eax, eax
jne 0x1800b86a4
cmp dword [r15 + 0x3dc], eax
je 0x1800b84cd
mov edi, 1
mov dword [rsp + 0x48], edi
jmp 0x1800b84d5
lea r9, [rsp + 0x80]
mov r8d, 1
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x80], rax
call fcn.1800cfa60
cmp eax, 0xffffffff
jne 0x1800b7f35
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.180094e10
xor r14d, r14d
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x7e0], 2
jmp 0x1800b7f35
inc r12d
inc r13
cmp byte [rsi], 0xa
je 0x1800b80f6
inc rsi
jmp 0x1800b837a
cmp dword [rbx + 0x59c], 0
je 0x1800b8117
movsxd r9, r12d
mov r8, rbp
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], r15
call fcn.180094cf0
cmp dword [rbx + 0x834], 0
jne 0x1800b814a
cmp dword [rbx + 0x584], 0
mov edx, 2
mov eax, 3
movsxd r9, r12d
mov r8, rbp
mov rcx, r15
cmovne edx, eax
call fcn.180095320
test eax, eax
jne 0x1800b86a4
add dword [rbx + 0x4c9c], r12d
add dword [rbx + 0xc0], r12d
movzx eax, byte [rbp]
cmp al, 0xd
je 0x1800b838b
cmp al, 0xa
je 0x1800b838b
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.COMCTL32.dll_InitCommonControls
mov rdx, rbp
mov byte [r13 + rbp], 0
call fcn.1800990a0
test eax, eax
je 0x1800b8198
mov eax, dword [rbx + 0x128]
cmp eax, 0x191
je 0x1800b81be
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rbp
call fcn.1800990a0
test eax, eax
je 0x1800b8204
mov eax, dword [rbx + 0x128]
cmp eax, 0x197
jne 0x1800b8204
xor esi, esi
cmp eax, 0x197
mov rcx, rbp
sete sil
call fcn.1800b2410
mov rdi, rax
test rax, rax
je 0x1800b8556
mov r8, rax
mov edx, esi
mov rcx, r15
call fcn.1800b2af0
mov rcx, rdi
mov esi, eax
call qword [fcn.1801cc408]
test esi, esi
je 0x1800b8365
mov eax, esi
jmp 0x1800b86a4
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rbp
call fcn.1800990a0
test eax, eax
je 0x1800b8268
mov r8d, dword [rbx + 0x128]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1800b824f
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.180094e10
jmp 0x1800b8365
xor edx, edx
lea rcx, [rbp + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1801d8de4
mov qword [rsp + 0x60], rax
jmp 0x1800b8365
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rbp
call fcn.1800b3150
test eax, eax
je 0x1800b828f
mov dword [rsp + 0x48], 1
jmp 0x1800b8365
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rdx, rbp
call fcn.1800990a0
test eax, eax
je 0x1800b8315
mov r8d, dword [rbx + 0x128]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1800b82da
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.180094e10
jmp 0x1800b8365
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rbp
call fcn.1800b3150
test eax, eax
je 0x1800b8365
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.180094e10
mov rcx, r15
mov dword [rsp + 0x58], 1
call fcn.1800cfa50
jmp 0x1800b8365
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rbp
call fcn.1800b3150
test eax, eax
je 0x1800b8339
mov dword [rsp + 0x48], 1
jmp 0x1800b8365
lea r9, [rbx + 0x128]
lea r8, [rsp + 0x68]
lea rdx, str.HTTP_1._d__d
mov rcx, rbp
call fcn.1801c7440
cmp eax, 2
jne 0x1800b8365
mov eax, dword [rbx + 0x128]
mov dword [rbx + 0x4c8c], eax
mov rsi, qword [rbx + 0x9f0]
xor r12d, r12d
xor r13d, r13d
mov rbp, rsi
mov rax, qword [rsp + 0x50]
cmp rax, 0x4000
jb 0x1800b7f35
jmp 0x1800b8037
mov rsi, qword [rbx + 0x9f0]
xor eax, eax
cmp dword [rbx + 0x128], 0x197
mov qword [rsp + 0x50], rax
jne 0x1800b80ca
cmp dword [rbx + 0x4b40], eax
jne 0x1800b80ca
mov rdi, qword [rsp + 0x60]
lea r14d, [rax + 2]
test rdi, rdi
je 0x1800b83da
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov r8, rdi
mov rcx, rbx
call fcn.180094e10
jmp 0x1800b80cd
cmp dword [rsp + 0x58], eax
je 0x1800b80ca
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.180094e10
lea rax, [rbp + 1]
mov dword [rbx + 0x170], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x78]
mov r8d, 1
cmove rbp, rax
mov rcx, r15
lea rdx, [rbp + 1]
call fcn.1800cfa60
cmp eax, 0xffffffff
jne 0x1800b80cd
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.180094e10
mov rax, qword [rsp + 0x40]
xor r14d, r14d
mov dword [r15 + rax*4 + 0x7e0], 2
mov dword [r15 + rax*4 + 0x7e0], 2
jmp 0x1800b7f35
cmp dword [rbx + 0x1f8], 0
je 0x1800b848d
cmp dword [rbx + 0x4b30], 0
je 0x1800b848d
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rbx
mov dword [r15 + 0x440], 1
call fcn.180094e10
jmp 0x1800b8037
lea rdx, str.Proxy_CONNECT_aborted
mov esi, 1
mov rcx, rbx
mov dword [rsp + 0xe0], esi
call fcn.180094ec0
jmp 0x1800b803e
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.180094ec0
mov esi, 2
mov dword [rsp + 0xe0], esi
jmp 0x1800b803e
mov edi, dword [rsp + 0x48]
test edi, edi
je 0x1800b84e3
cmp qword [rbx + 0x180], 0
jne 0x1800b8573
cmp qword [rbx + 0x180], 0
mov r12, qword [rsp + 0x40]
je 0x1800b8594
cmp dword [r15 + r12*4 + 0x7e0], 2
jne 0x1800b851f
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, rbx
mov dword [r15 + r12*4 + 0x7e0], 0
call fcn.180094e10
cmp qword [rbx + 0x180], 0
je 0x1800b8594
mov rsi, qword [rsp + 0xf0]
mov ebp, dword [rsp + 0xe8]
mov r13d, dword [rsp + 0xf8]
jmp 0x1800b7c50
mov rcx, rsi
call qword [fcn.1801cc408]
mov rcx, rbp
call fcn.1800b2e20
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1800b86a4
mov eax, edi
jmp 0x1800b86a4
lea rdx, str.CONNECT_response_too_large_
jmp 0x1800b869a
mov r12, qword [rsp + 0x40]
mov rcx, r15
mov rdx, qword [r15 + r12*8 + 0x210]
call fcn.180098470
mov qword [r15 + r12*8 + 0x210], 0xffffffffffffffff
cmp dword [rbx + 0x128], 0xc8
je 0x1800b863d
test edi, edi
je 0x1800b85ce
cmp qword [rbx + 0x180], 0
je 0x1800b85ce
lea rdx, str.Connect_me_again_please_n
mov rcx, rbx
mov dword [r15 + 0x440], 1
call fcn.180094e10
jmp 0x1800b860f
mov rcx, qword [rbx + 0x180]
call qword [fcn.1801cc408]
mov edx, 2
mov rcx, r15
mov qword [rbx + 0x180], 0
call fcn.1800985b0
mov rdx, qword [r15 + r12*8 + 0x210]
mov rcx, r15
call fcn.180098470
mov qword [r15 + r12*8 + 0x210], 0xffffffffffffffff
mov dword [r15 + r12*4 + 0x7e0], 0
cmp dword [r15 + 0x440], 0
jne 0x1800b8685
mov r8d, dword [rbx + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.180094ec0
jmp 0x1800b869f
mov dword [r15 + r12*4 + 0x7e0], 2
mov rcx, qword [r15 + 0x4a8]
call qword [fcn.1801cc408]
xor edi, edi
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r15 + 0x4a8], rdi
mov rcx, rbx
mov dword [rbx + 0x4b34], 1
call fcn.180094e10
mov dword [rbx + 0x170], edi
mov dword [r15 + 0x424], edi
xor eax, eax
jmp 0x1800b86a4
mov eax, Ordinal_46
jmp 0x1800b86a4
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.180094ec0
mov eax, gethostname
mov r14, qword [rsp + 0x98]
add rsp, 0xa0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret