Function at 0x1800858c0
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 r13, qword [rcx]
movsxd rax, edx
xor ebx, ebx
mov rdi, qword [rcx + rax*8 + 0x1a8]
xor r12d, r12d
cmp dword [rcx + rax*4 + 0x820], 2
mov r15d, r9d
mov rsi, r8
mov r14, 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 0x180086366
mov dword [rcx + 0x3c0], ebx
nop word [rax + rax]
cmp dword [r14 + rbp*4 + 0x820], 0
jne 0x180085b89
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, r15d
mov r8, rsi
mov rcx, r13
call fcn.180063c80
mov rcx, qword [r13 + 0x180]
call qword [fcn.18003caf4]
mov qword [r13 + 0x180], rbx
call fcn.180080810
mov rdi, rax
test rax, rax
je 0x180086231
lea rcx, str._s:_hu
mov r8d, r15d
mov rdx, rsi
call fcn.1800690b0
mov rsi, rax
test rax, rax
je 0x180086229
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r14
call fcn.1800802f0
mov rcx, rsi
mov ebx, eax
call qword [fcn.18003caf4]
test ebx, ebx
jne 0x180085b66
cmp dword [r14 + 0x188], 1
mov r8, qword [rsp + 0xf0]
lea rax, [0x1800aed48]
lea rcx, [0x1800b1bd8]
lea r12, [0x1800aed4c]
lea r9, [0x1800b1bc3]
cmove r12, rax
mov eax, dword [r14 + 0x384]
lea rdx, [0x1800b1bc3]
test eax, eax
lea rsi, [0x1800b1bc3]
lea rbx, [0x1800b1bc3]
cmovne r9, rcx
test eax, eax
lea rax, str.___:
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
mov dword [rsp + 0x20], r15d
call fcn.1800690b0
mov rbp, rax
test rax, rax
je 0x180086229
lea rdx, str.Host:
mov rcx, r14
call fcn.18007fc80
test rax, rax
jne 0x180085a7d
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.1800690b0
mov rsi, rax
test rax, rax
je 0x180086220
lea rdx, str.User_Agent:
mov rcx, r14
call fcn.18007fc80
test rax, rax
jne 0x180085aa1
cmp qword [r13 + 0x5d8], rax
je 0x180085aa1
mov rbx, qword [r14 + 0x410]
mov rax, qword [r14 + 0x408]
mov qword [rsp + 0x30], rbx
lea rcx, [0x1800b1bc3]
test rax, rax
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
mov r9, r12
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.180081350
mov ebx, eax
test rsi, rsi
je 0x180085aef
cmp byte [rsi], 0
je 0x180085aef
mov rcx, rsi
call qword [fcn.18003caf4]
mov rcx, rbp
call qword [fcn.18003caf4]
test ebx, ebx
jne 0x180085b47
lea edx, [rbx + 1]
mov r8, rdi
mov rcx, r14
call fcn.180081520
mov ebx, eax
test eax, eax
jne 0x180085b47
lea rdx, [0x1800a4168]
mov rcx, rdi
call fcn.180081350
mov ebx, eax
test eax, eax
jne 0x180085b47
mov eax, dword [rsp + 0xe8]
lea r8, [r13 + 0x8b28]
xor r9d, r9d
mov rdx, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.180080850
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x180085b5c
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.180063d30
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rcx, rdi
call fcn.180080820
test ebx, ebx
jne 0x18008623b
mov rdi, qword [rsp + 0x70]
mov dword [r14 + rbp*4 + 0x820], 1
xor ebx, ebx
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.180065de0
test eax, eax
jle 0x18008636a
cmp dword [rsp + 0x100], 0
jne 0x180085bc3
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.180057bc0
test eax, eax
je 0x180086366
mov ebp, 1
lea r15, [r13 + 0x878]
lea rsi, [r13 + 0x878]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0xe0], ebp
test ebp, ebp
je 0x180086167
cmp dword [rsp + 0x54], 0
jne 0x180086379
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.180065de0
test eax, eax
jle 0x18008636a
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.180057bc0
cmp eax, 0xffffffff
je 0x18008612c
test eax, eax
je 0x180086143
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
sub r9, qword [rsp + 0x60]
mov r8, r15
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.180063910
cmp eax, 0x51
je 0x180086153
test eax, eax
je 0x180085c7c
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x180086143
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x180085ccc
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
cmp dword [r13 + 0x1f8], ebp
je 0x180085cc0
cmp dword [r13 + 0x89f8], ebp
je 0x180085cc0
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r13
mov dword [r14 + 0x3c0], 1
call fcn.180063c80
jmp 0x180086143
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x180086133
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x180085d60
xor edx, edx
lea r15, [r13 + 0x878]
mov qword [rsp + 0x60], rdx
test r12, r12
je 0x180085d0c
sub r12, rcx
mov qword [rsp + 0x48], r12
test r12, r12
jg 0x180086143
mov ebp, edx
mov dword [rsp + 0xe0], edx
jmp 0x180086143
mov qword [rsp + 0x78], rdx
mov r8, rcx
lea r9, [rsp + 0x78]
lea rdx, [r13 + 0x878]
mov rcx, r14
call fcn.18008e990
mov rcx, r13
cmp eax, 0xffffffff
jne 0x180085d4a
lea rdx, str.chunk_reading_DONE_n
call fcn.180063c80
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x180086119
mov r8, qword [rsp + 0x78]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180063c80
jmp 0x180086143
xor r12d, r12d
test rcx, rcx
jle 0x180086143
nop dword [rax]
inc rdi
inc ebx
cmp byte [r15], 0xa
mov qword [rsp + 0x78], rdi
jne 0x180085f8b
cmp dword [r13 + 0x4a4], 0
je 0x180085da6
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], r14
call fcn.180063b20
cmp dword [r13 + 0x488], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r14
cmovne edx, eax
call fcn.1800642f0
add dword [r13 + 0x8b24], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x18008637e
movzx eax, byte [rsi]
cmp al, 0xd
je 0x180085fa9
cmp al, 0xa
je 0x180085fa9
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.18006a540
test eax, eax
je 0x180085e21
mov eax, dword [r13 + 0x128]
cmp eax, 0x191
je 0x180085e48
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.18006a540
test eax, eax
je 0x180085e91
mov eax, dword [r13 + 0x128]
cmp eax, 0x197
jne 0x180085e91
xor edi, edi
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.18007fd10
mov rbx, rax
test rax, rax
je 0x180086231
mov r8, rax
mov edx, edi
mov rcx, r14
call fcn.180080440
mov rcx, rbx
mov edi, eax
call qword [fcn.18003caf4]
test edi, edi
jne 0x180086242
mov rdi, qword [rsp + 0x78]
jmp 0x180085f7a
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.18006a540
test eax, eax
je 0x180085ec3
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1800549b4
mov qword [rsp + 0x48], rax
jmp 0x180085f7a
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.180080b60
test eax, eax
je 0x180085eea
mov dword [rsp + 0x50], 1
jmp 0x180085f7a
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.180080b60
test eax, eax
je 0x180085f25
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.180063c80
mov rcx, r14
mov dword [rsp + 0x68], 1
call fcn.18008e980
jmp 0x180085f7a
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.180080b60
test eax, eax
je 0x180085f49
mov dword [rsp + 0x50], 1
jmp 0x180085f7a
lea r9, [r13 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call fcn.180092080
cmp eax, 2
jne 0x180085f7a
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8b14], eax
mov rcx, qword [rsp + 0x58]
mov byte [rdi + rsi], bpl
xor ebx, ebx
xor edi, edi
lea rsi, [r15 + 1]
inc r12d
inc r15
movsxd rax, r12d
cmp rax, rcx
jl 0x180085d70
mov ebp, dword [rsp + 0xe0]
jmp 0x180086143
cmp dword [r13 + 0x128], 0x197
mov qword [rsp + 0x60], 0
lea r15, [r13 + 0x878]
jne 0x1800860e2
cmp dword [r13 + 0x8a08], 0
jne 0x1800860e2
mov r8, qword [rsp + 0x48]
mov ebp, 2
mov dword [rsp + 0xe0], ebp
test r8, r8
je 0x18008603a
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.180063c80
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 0x18008611e
xor ebp, ebp
mov dword [r14 + rax*4 + 0x820], 2
mov dword [rsp + 0xe0], ebp
jmp 0x180086143
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180085d3c
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r13
sub r8, rax
mov dword [r13 + 0x170], 1
call fcn.180063c80
cmp byte [rsi + 1], 0xa
jne 0x180086077
inc rsi
inc r12d
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x58]
mov rcx, r14
sub r8, rax
call fcn.18008e990
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1800860cf
lea rdx, str.chunk_reading_DONE_n
call fcn.180063c80
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x820], 2
mov dword [r14 + rax*4 + 0x820], 2
mov dword [rsp + 0xe0], ebp
jmp 0x180086143
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180063c80
jmp 0x180086119
xor ebp, ebp
cmp dword [r13 + 0x8b14], 0xc8
mov dword [rsp + 0xe0], ebp
jne 0x180086119
mov r8, qword [rsp + 0x58]
lea eax, [r12 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x180086119
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.180063d30
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x820], 2
jmp 0x180086143
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x54], 1
call fcn.180063d30
mov rcx, r14
call fcn.18006ca80
test eax, eax
jne 0x180086249
cmp qword [rsp + 0x60], 0x4000
mov r12, qword [rsp + 0x48]
jb 0x180085be4
cmp dword [rsp + 0x54], 0
jne 0x180086379
cmp dword [r13 + 0x8b14], 0xc8
je 0x1800861a3
mov rcx, r14
call fcn.180081150
test eax, eax
jne 0x18008637e
cmp dword [r14 + 0x36c], eax
je 0x1800861a3
mov ebx, 1
mov dword [rsp + 0x50], ebx
jmp 0x1800861ab
mov ebx, dword [rsp + 0x50]
test ebx, ebx
je 0x1800861b9
cmp qword [r13 + 0x180], 0
jne 0x180086253
cmp qword [r13 + 0x180], 0
mov rbp, qword [rsp + 0x40]
je 0x180086274
cmp dword [r14 + rbp*4 + 0x820], 2
jne 0x1800861f5
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r13
mov dword [r14 + rbp*4 + 0x820], 0
call fcn.180063c80
cmp qword [r13 + 0x180], 0
je 0x180086274
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov r15d, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
xor ebx, ebx
jmp 0x180085940
mov rcx, rbp
call qword [fcn.18003caf4]
mov rcx, rdi
call fcn.180080820
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18008637e
mov eax, ebx
jmp 0x18008637e
mov eax, edi
jmp 0x18008637e
mov eax, Ordinal_46
jmp 0x18008637e
mov rbp, qword [rsp + 0x40]
mov rcx, r14
mov rdx, qword [r14 + rbp*8 + 0x1a8]
call fcn.180066a30
mov qword [r14 + rbp*8 + 0x1a8], 0xffffffffffffffff
cmp dword [r13 + 0x128], 0xc8
je 0x18008631c
test ebx, ebx
je 0x1800862af
cmp qword [r13 + 0x180], 0
je 0x1800862af
lea rdx, str.Connect_me_again_please_n
mov rcx, r13
mov dword [r14 + 0x3c0], 1
call fcn.180063c80
jmp 0x1800862ee
mov rcx, qword [r13 + 0x180]
call qword [fcn.18003caf4]
mov qword [r13 + 0x180], 0
mov dword [r14 + 0x36c], 1
mov rdx, qword [r14 + rbp*8 + 0x1a8]
mov rcx, r14
call fcn.180066a30
mov qword [r14 + rbp*8 + 0x1a8], 0xffffffffffffffff
mov dword [r14 + rbp*4 + 0x820], 0
cmp dword [r14 + 0x3c0], 0
jne 0x180086366
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.180063d30
jmp 0x180086379
mov dword [r14 + rbp*4 + 0x820], 2
mov rcx, qword [r14 + 0x408]
call qword [fcn.18003caf4]
xor ebx, ebx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r14 + 0x408], rbx
mov rcx, r13
mov dword [r13 + 0x89fc], 1
call fcn.180063c80
mov dword [r13 + 0x170], ebx
mov dword [r14 + 0x3a8], ebx
xor eax, eax
jmp 0x18008637e
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.180063d30
mov eax, gethostname
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret