Function at 0x1800b4f50
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 r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
movsxd rax, edx
xor ebx, ebx
mov rdi, qword [rcx + rax*8 + 0x1a8]
xor r12d, r12d
cmp dword [rcx + rax*4 + 0x628], 2
mov esi, r9d
mov r13, r8
mov r15, rcx
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x80], 0
mov rbp, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x54], ebx
je 0x1800b5a26
mov dword [rcx + 0x2cc], ebx
nop word [rax + rax]
cmp dword [r15 + rbp*4 + 0x628], 0
jne 0x1800b523f
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, esi
mov r8, r13
mov rcx, r14
call fcn.180097280
mov rcx, qword [r14 + 0x180]
call qword [fcn.180057358]
mov qword [r14 + 0x180], rbx
call fcn.1800afed0
mov rdi, rax
test rax, rax
je 0x1800b58f1
lea rcx, str._s:_hu
mov r8d, esi
mov rdx, r13
call fcn.18009c1e0
mov rsi, rax
test rax, rax
je 0x1800b58e9
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.1800afa50
mov rcx, rsi
mov ebx, eax
call qword [fcn.180057358]
test ebx, ebx
jne 0x1800b521c
cmp dword [r15 + 0x188], 1
mov r8, qword [rsp + 0xf0]
lea rcx, [0x1800e3896]
lea rax, [0x1800e09b0]
mov r9, rcx
lea rdx, [0x1800dc0b4]
mov rsi, rcx
mov r12, rcx
lea r13, [0x1800e09b4]
cmove r13, rax
mov eax, dword [r15 + 0x290]
test eax, eax
cmovne r9, rdx
test eax, eax
lea rax, [0x1800dc0b0]
mov rdx, rcx
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.18009c1e0
mov rbp, rax
test rax, rax
je 0x1800b58e9
lea rdx, str.Host:
mov rcx, r15
call fcn.1800af430
test rax, rax
jne 0x1800b510a
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.18009c1e0
mov rsi, rax
test rax, rax
je 0x1800b58e0
lea rdx, str.Proxy_Connection:
mov rcx, r15
call fcn.1800af430
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
test rax, rax
lea rax, [0x1800e3896]
mov rcx, r15
cmovne rbx, rax
call fcn.1800af430
test rax, rax
jne 0x1800b5152
cmp qword [r14 + 0x5d0], rax
je 0x1800b5152
mov r12, qword [r15 + 0x320]
mov rax, qword [r15 + 0x318]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r12
test rax, rax
lea rcx, [0x1800e3896]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
cmovne rcx, rax
mov r9, r13
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.1800b09b0
mov ebx, eax
test rsi, rsi
je 0x1800b51a5
cmp byte [rsi], 0
je 0x1800b51a5
mov rcx, rsi
call qword [fcn.180057358]
mov rcx, rbp
call qword [fcn.180057358]
test ebx, ebx
jne 0x1800b51fd
lea edx, [rbx + 1]
mov r8, rdi
mov rcx, r15
call fcn.1800b0ae0
mov ebx, eax
test eax, eax
jne 0x1800b51fd
lea rdx, [0x1800d83d0]
mov rcx, rdi
call fcn.1800b09b0
mov ebx, eax
test eax, eax
jne 0x1800b51fd
mov eax, dword [rsp + 0xe8]
lea r8, [r14 + 0x8a58]
xor r9d, r9d
mov rdx, r15
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1800aff10
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x1800b5212
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r14
call fcn.180097330
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1800afee0
test ebx, ebx
jne 0x1800b58fb
mov rdi, qword [rsp + 0x70]
mov dword [r15 + rbp*4 + 0x628], 1
xor ebx, ebx
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.1800998e0
test eax, eax
jle 0x1800b5a2a
cmp dword [rsp + 0x100], 0
jne 0x1800b5279
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.18008c510
test eax, eax
je 0x1800b5a26
mov ebp, 1
lea r13, [r14 + 0x848]
lea rsi, [r14 + 0x848]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0xe0], ebp
nop word [rax + rax]
test ebp, ebp
je 0x1800b5828
cmp dword [rsp + 0x54], 0
jne 0x1800b5a39
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.1800998e0
test eax, eax
jle 0x1800b5a2a
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.18008c510
cmp eax, 0xffffffff
je 0x1800b57ed
test eax, eax
je 0x1800b5804
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
sub r9, qword [rsp + 0x60]
mov r8, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.180096f60
cmp eax, 0x51
je 0x1800b5814
test eax, eax
je 0x1800b5338
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x1800b5804
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x1800b5388
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
cmp dword [r14 + 0x1f8], ebp
je 0x1800b537c
cmp dword [r14 + 0x8948], ebp
je 0x1800b537c
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r14
mov dword [r15 + 0x2cc], 1
call fcn.180097280
jmp 0x1800b5804
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x1800b57f4
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x1800b541c
xor edx, edx
lea r13, [r14 + 0x848]
mov qword [rsp + 0x60], rdx
test r12, r12
je 0x1800b53c8
sub r12, rcx
mov qword [rsp + 0x48], r12
test r12, r12
jg 0x1800b5804
mov ebp, edx
mov dword [rsp + 0xe0], edx
jmp 0x1800b5804
mov qword [rsp + 0x78], rdx
mov r8, rcx
lea r9, [rsp + 0x78]
lea rdx, [r14 + 0x848]
mov rcx, r15
call fcn.1800bf3a0
mov rcx, r14
cmp eax, 0xffffffff
jne 0x1800b5406
lea rdx, str.chunk_reading_DONE_n
call fcn.180097280
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x1800b57da
mov r8, qword [rsp + 0x78]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180097280
jmp 0x1800b5804
xor r12d, r12d
test rcx, rcx
jle 0x1800b5804
nop dword [rax + rax]
inc rdi
inc ebx
cmp byte [r13], 0xa
mov qword [rsp + 0x78], rdi
jne 0x1800b564c
cmp dword [r14 + 0x4a4], 0
je 0x1800b5467
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.180097160
cmp dword [r14 + 0x488], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r15
cmovne edx, eax
call fcn.1800978e0
add dword [r14 + 0x8a54], ebx
add dword [r14 + 0xc0], ebx
test eax, eax
jne 0x1800b5a3e
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1800b566a
cmp al, 0xa
je 0x1800b566a
movzx ebp, byte [rdi + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rsi
mov byte [rdi + rsi], 0
call fcn.1800b5c70
test eax, eax
je 0x1800b54e2
mov eax, dword [r14 + 0x128]
cmp eax, 0x191
je 0x1800b5509
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.1800b5c70
test eax, eax
je 0x1800b5552
mov eax, dword [r14 + 0x128]
cmp eax, 0x197
jne 0x1800b5552
xor edi, edi
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.1800af4c0
mov rbx, rax
test rax, rax
je 0x1800b58f1
mov r8, rax
mov edx, edi
mov rcx, r15
call fcn.1800afba0
mov rcx, rbx
mov edi, eax
call qword [fcn.180057358]
test edi, edi
jne 0x1800b5902
mov rdi, qword [rsp + 0x78]
jmp 0x1800b563b
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.1800b5c70
test eax, eax
je 0x1800b5584
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.18006de74
mov qword [rsp + 0x48], rax
jmp 0x1800b563b
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1800b0210
test eax, eax
je 0x1800b55ab
mov dword [rsp + 0x50], 1
jmp 0x1800b563b
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1800b0210
test eax, eax
je 0x1800b55e6
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r14
call fcn.180097280
mov rcx, r15
mov dword [rsp + 0x68], 1
call fcn.1800bf390
jmp 0x1800b563b
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1800b0210
test eax, eax
je 0x1800b560a
mov dword [rsp + 0x50], 1
jmp 0x1800b563b
lea r9, [r14 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call fcn.1800598e4
cmp eax, 2
jne 0x1800b563b
mov eax, dword [r14 + 0x128]
mov dword [r14 + 0x8a44], eax
mov rcx, qword [rsp + 0x58]
mov byte [rdi + rsi], bpl
xor ebx, ebx
xor edi, edi
lea rsi, [r13 + 1]
inc r12d
inc r13
movsxd rax, r12d
cmp rax, rcx
jl 0x1800b5430
mov ebp, dword [rsp + 0xe0]
jmp 0x1800b5804
cmp dword [r14 + 0x128], 0x197
mov qword [rsp + 0x60], 0
lea r13, [r14 + 0x848]
jne 0x1800b57a3
cmp dword [r14 + 0x8958], 0
jne 0x1800b57a3
mov r8, qword [rsp + 0x48]
mov ebp, 2
mov dword [rsp + 0xe0], ebp
test r8, r8
je 0x1800b56fb
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r14
call fcn.180097280
mov rax, qword [rsp + 0x48]
movsxd r11, r12d
sub r11, qword [rsp + 0x58]
add rax, r11
mov qword [rsp + 0x48], rax
test rax, rax
mov rax, qword [rsp + 0x40]
jg 0x1800b57df
xor ebp, ebp
mov dword [r15 + rax*4 + 0x628], 2
mov dword [rsp + 0xe0], ebp
jmp 0x1800b5804
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1800b53f8
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r14
sub r8, rax
mov dword [r14 + 0x170], 1
call fcn.180097280
cmp byte [rsi + 1], 0xa
jne 0x1800b5738
inc rsi
inc r12d
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x58]
mov rcx, r15
sub r8, rax
call fcn.1800bf3a0
mov rcx, r14
cmp eax, 0xffffffff
jne 0x1800b5790
lea rdx, str.chunk_reading_DONE_n
call fcn.180097280
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r15 + rax*4 + 0x628], 2
mov dword [r15 + rax*4 + 0x628], 2
mov dword [rsp + 0xe0], ebp
jmp 0x1800b5804
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180097280
jmp 0x1800b57da
xor ebp, ebp
cmp dword [r14 + 0x8a44], 0xc8
mov dword [rsp + 0xe0], ebp
jne 0x1800b57da
mov r8, qword [rsp + 0x58]
lea eax, [r12 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x1800b57da
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r14
call fcn.180097330
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x628], 2
jmp 0x1800b5804
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r14
mov dword [rsp + 0x54], 1
call fcn.180097330
mov rcx, r15
call fcn.1800b6950
test eax, eax
jne 0x1800b5909
cmp qword [rsp + 0x60], 0x4000
mov r12, qword [rsp + 0x48]
jb 0x1800b52a0
cmp dword [rsp + 0x54], 0
jne 0x1800b5a39
cmp dword [r14 + 0x8a44], 0xc8
je 0x1800b5864
mov rcx, r15
call fcn.1800b07b0
test eax, eax
jne 0x1800b5a3e
cmp dword [r15 + 0x278], eax
je 0x1800b5864
mov ebx, 1
mov dword [rsp + 0x50], ebx
jmp 0x1800b586c
mov ebx, dword [rsp + 0x50]
test ebx, ebx
je 0x1800b587a
cmp qword [r14 + 0x180], 0
jne 0x1800b5913
cmp qword [r14 + 0x180], 0
mov rbp, qword [rsp + 0x40]
je 0x1800b5934
cmp dword [r15 + rbp*4 + 0x628], 2
jne 0x1800b58b6
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r14
mov dword [r15 + rbp*4 + 0x628], 0
call fcn.180097280
cmp qword [r14 + 0x180], 0
je 0x1800b5934
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov esi, dword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
xor ebx, ebx
jmp 0x1800b4fd0
mov rcx, rbp
call qword [fcn.180057358]
mov rcx, rdi
call fcn.1800afee0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1800b5a3e
mov eax, ebx
jmp 0x1800b5a3e
mov eax, edi
jmp 0x1800b5a3e
mov eax, Ordinal_46
jmp 0x1800b5a3e
mov rbp, qword [rsp + 0x40]
mov rcx, r15
mov rdx, qword [r15 + rbp*8 + 0x1a8]
call fcn.18009a520
mov qword [r15 + rbp*8 + 0x1a8], 0xffffffffffffffff
cmp dword [r14 + 0x128], 0xc8
je 0x1800b59dc
test ebx, ebx
je 0x1800b596f
cmp qword [r14 + 0x180], 0
je 0x1800b596f
lea rdx, str.Connect_me_again_please_n
mov rcx, r14
mov dword [r15 + 0x2cc], 1
call fcn.180097280
jmp 0x1800b59ae
mov rcx, qword [r14 + 0x180]
call qword [fcn.180057358]
mov qword [r14 + 0x180], 0
mov dword [r15 + 0x278], 1
mov rdx, qword [r15 + rbp*8 + 0x1a8]
mov rcx, r15
call fcn.18009a520
mov qword [r15 + rbp*8 + 0x1a8], 0xffffffffffffffff
mov dword [r15 + rbp*4 + 0x628], 0
cmp dword [r15 + 0x2cc], 0
jne 0x1800b5a26
mov r8d, dword [r14 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.180097330
jmp 0x1800b5a39
mov dword [r15 + rbp*4 + 0x628], 2
mov rcx, qword [r15 + 0x318]
call qword [fcn.180057358]
xor ebx, ebx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r15 + 0x318], rbx
mov rcx, r14
mov dword [r14 + 0x894c], 1
call fcn.180097280
mov dword [r14 + 0x170], ebx
mov dword [r15 + 0x2b4], ebx
xor eax, eax
jmp 0x1800b5a3e
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r14
call fcn.180097330
mov eax, gethostname
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret