Function at 0x14009a790
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 rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r13, qword [rcx]
movsxd rax, edx
xor ebx, ebx
mov rdi, qword [rcx + rax*8 + 0x1d0]
xor r12d, r12d
cmp dword [rcx + rax*4 + 0x7f8], 2
mov r15, r8
mov r14, rcx
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x70], rdi
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
jne 0x14009a803
xor eax, eax
jmp 0x14009b321
mov qword [rsp + 0x98], rsi
mov dword [rcx + 0x388], ebx
cmp dword [r14 + rbp*4 + 0x7f8], 0
jne 0x14009aa87
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, r15
mov rcx, r13
call fcn.140075570
mov rcx, qword [r13 + 0x180]
call qword [fcn.140046f30]
mov qword [r13 + 0x180], rbx
call fcn.140095090
test rax, rax
mov rsi, rax
je 0x14009b1cc
mov r8d, dword [rsp + 0xf8]
lea rcx, str._s:_hu
mov rdx, r15
call fcn.14007b210
test rax, rax
mov rdi, rax
je 0x14009b1c4
lea rdx, [0x14019d3b0]
mov r9d, 1
mov r8, rax
mov rcx, r14
call fcn.140094900
mov rcx, rdi
mov ebx, eax
call qword [fcn.140046f30]
test ebx, ebx
jne 0x14009aa64
cmp dword [r14 + 0x1b0], 1
mov ecx, dword [r14 + 0x34c]
lea rbx, [0x14019c31c]
lea rax, [0x14019c318]
lea rdi, [0x1401cd152]
lea r12, [0x1401cd152]
cmove rbx, rax
cmp r15, qword [r14 + 0xb8]
je 0x14009a8f2
mov edx, Ordinal_60
mov rcx, r15
call fcn.140048760
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x140196024]
lea r9, [0x1401cd152]
cmovne r9, rax
lea rax, [0x140196020]
test ecx, ecx
lea rdx, [0x1401cd152]
lea rcx, str._s_s_s:_hu
mov r8, r15
cmovne rdx, rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.14007b210
test rax, rax
mov rbp, rax
je 0x14009b1c4
lea rdx, str.Host:
mov rcx, r14
call fcn.1400944b0
test rax, rax
jne 0x14009a96f
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.14007b210
test rax, rax
mov rdi, rax
je 0x14009b1bb
lea rdx, str.User_Agent:
mov rcx, r14
call fcn.1400944b0
test rax, rax
jne 0x14009a993
cmp qword [r13 + 0x5e0], rax
je 0x14009a993
mov r12, qword [r14 + 0x3e8]
mov rax, qword [r14 + 0x3e0]
mov qword [rsp + 0x30], r12
lea rcx, [0x1401cd152]
test rax, rax
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
mov r9, rbx
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.140095d70
test rdi, rdi
mov ebx, eax
je 0x14009a9e1
cmp byte [rdi], 0
je 0x14009a9e1
mov rcx, rdi
call qword [fcn.140046f30]
mov rcx, rbp
call qword [fcn.140046f30]
test ebx, ebx
jne 0x14009aa39
lea edx, [rbx + 1]
mov r8, rsi
mov rcx, r14
call fcn.140095f90
test eax, eax
mov ebx, eax
jne 0x14009aa39
lea rdx, [0x1401921d8]
mov rcx, rsi
call fcn.140095d70
test eax, eax
mov ebx, eax
jne 0x14009aa39
mov eax, dword [rsp + 0xe8]
lea r8, [r13 + 0x8b40]
xor r9d, r9d
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1400950d0
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x14009aa5a
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.140075620
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
jmp 0x14009aa64
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400950a0
test ebx, ebx
jne 0x14009b1d6
mov rdi, qword [rsp + 0x70]
mov dword [r14 + rbp*4 + 0x7f8], 1
xor ebx, ebx
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.140078420
test eax, eax
jle 0x14009b305
cmp dword [rsp + 0x100], 0
jne 0x14009aac1
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.140067860
test eax, eax
je 0x14009b301
mov ebp, 1
lea r15, [r13 + 0x880]
lea rsi, [r13 + 0x880]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0xe0], ebp
test ebp, ebp
je 0x14009b0ff
cmp dword [rsp + 0x54], 0
jne 0x14009b314
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.140078420
test eax, eax
jle 0x14009b305
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.140067860
cmp eax, 0xffffffff
je 0x14009b0c4
test eax, eax
je 0x14009b0db
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.140075230
cmp eax, 0x51
je 0x14009b0eb
test eax, eax
je 0x14009ab7a
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x14009b0db
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x14009abda
xor ebp, ebp
cmp dword [r13 + 0x1f8], ebp
mov dword [rsp + 0xe0], ebp
je 0x14009abbe
cmp dword [r13 + 0x8a08], ebp
je 0x14009abbe
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r13
mov dword [r14 + 0x388], 1
call fcn.140075570
jmp 0x14009b0db
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r13
mov dword [rsp + 0x54], 1
call fcn.140075620
jmp 0x14009b0db
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x14009ac82
xor edx, edx
test r12, r12
lea r15, [r13 + 0x880]
mov qword [rsp + 0x60], rdx
je 0x14009ac1a
sub r12, rcx
test r12, r12
mov qword [rsp + 0x48], r12
jg 0x14009b0db
mov ebp, edx
mov dword [rsp + 0xe0], edx
jmp 0x14009b0db
mov qword [rsp + 0x78], rdx
mov r8, rcx
lea r9, [rsp + 0x78]
lea rdx, [r13 + 0x880]
mov rcx, r14
call fcn.1400c5720
cmp eax, 0xffffffff
jne 0x14009ac69
lea rdx, str.chunk_reading_DONE_n
mov rcx, r13
call fcn.140075570
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x14009b0db
mov r8, qword [rsp + 0x78]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r13
call fcn.140075570
jmp 0x14009b0db
xor r12d, r12d
test rcx, rcx
jle 0x14009b0db
nop
add rdi, 1
add ebx, 1
cmp byte [r15], 0xa
mov qword [rsp + 0x78], rdi
jne 0x14009aead
cmp dword [r13 + 0x4b0], 0
je 0x14009acc8
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], r14
call fcn.1400753a0
cmp dword [r13 + 0x498], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r14
cmovne edx, eax
call fcn.140075b80
add dword [r13 + 0x8b3c], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x14009b319
movzx eax, byte [rsi]
cmp al, 0xd
je 0x14009aecd
cmp al, 0xa
je 0x14009aecd
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.14007d170
test eax, eax
je 0x14009ad43
mov eax, dword [r13 + 0x128]
cmp eax, 0x191
je 0x14009ad6a
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.14007d170
test eax, eax
je 0x14009adb3
mov eax, dword [r13 + 0x128]
cmp eax, 0x197
jne 0x14009adb3
xor edi, edi
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.140094540
test rax, rax
mov rbx, rax
je 0x14009b1cc
mov r8, rax
mov edx, edi
mov rcx, r14
call fcn.140094cc0
mov rcx, rbx
mov edi, eax
call qword [fcn.140046f30]
test edi, edi
jne 0x14009b1dd
mov rdi, qword [rsp + 0x78]
jmp 0x14009ae9c
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.14007d170
test eax, eax
je 0x14009ade5
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14005a560
mov qword [rsp + 0x48], rax
jmp 0x14009ae9c
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400953e0
test eax, eax
je 0x14009ae0c
mov dword [rsp + 0x50], 1
jmp 0x14009ae9c
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400953e0
test eax, eax
je 0x14009ae47
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.140075570
mov rcx, r14
mov dword [rsp + 0x68], 1
call fcn.1400c5710
jmp 0x14009ae9c
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400953e0
test eax, eax
je 0x14009ae6b
mov dword [rsp + 0x50], 1
jmp 0x14009ae9c
lea r9, [r13 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call fcn.140048860
cmp eax, 2
jne 0x14009ae9c
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8b2c], eax
mov rcx, qword [rsp + 0x58]
mov byte [rdi + rsi], bpl
xor ebx, ebx
xor edi, edi
lea rsi, [r15 + 1]
add r12d, 1
add r15, 1
movsxd rax, r12d
cmp rax, rcx
jl 0x14009ac90
mov ebp, dword [rsp + 0xe0]
jmp 0x14009b0db
cmp dword [r13 + 0x128], 0x197
mov qword [rsp + 0x60], 0
lea r15, [r13 + 0x880]
jne 0x14009b041
cmp dword [r13 + 0x8a18], 0
jne 0x14009b041
mov r8, qword [rsp + 0x48]
mov ebp, 2
test r8, r8
mov dword [rsp + 0xe0], ebp
je 0x14009af5e
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.140075570
mov rax, qword [rsp + 0x48]
movsxd r11, r12d
sub r11, qword [rsp + 0x58]
add rax, r11
test rax, rax
mov qword [rsp + 0x48], rax
jg 0x14009b08b
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x14009b0db
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14009b022
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.140075570
cmp byte [rsi + 1], 0xa
jne 0x14009af9d
add rsi, 1
add r12d, 1
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x58]
mov rcx, r14
sub r8, rax
call fcn.1400c5720
cmp eax, 0xffffffff
jne 0x14009aff8
lea rdx, str.chunk_reading_DONE_n
mov rcx, r13
call fcn.140075570
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x14009b0db
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r13
call fcn.140075570
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x14009b0db
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x14009b0db
xor ebp, ebp
cmp dword [r13 + 0x8b2c], 0xc8
mov dword [rsp + 0xe0], ebp
jne 0x14009b09e
mov r8, qword [rsp + 0x58]
lea eax, [r12 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x14009b0b1
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.140075620
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x14009b0db
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x14009b0db
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x14009b0db
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x14009b0db
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x54], 1
call fcn.140075620
mov rcx, r14
call fcn.140081470
test eax, eax
jne 0x14009b1e4
cmp qword [rsp + 0x60], 0x4000
mov r12, qword [rsp + 0x48]
jb 0x14009aae2
cmp dword [rsp + 0x54], 0
jne 0x14009b314
cmp dword [r13 + 0x8b2c], 0xc8
je 0x14009b13b
mov rcx, r14
call fcn.140095a70
test eax, eax
jne 0x14009b319
cmp dword [r14 + 0x32c], eax
je 0x14009b13b
mov ebx, 1
mov dword [rsp + 0x50], ebx
jmp 0x14009b143
mov ebx, dword [rsp + 0x50]
test ebx, ebx
je 0x14009b151
cmp qword [r13 + 0x180], 0
jne 0x14009b1ee
cmp qword [r13 + 0x180], 0
je 0x14009b18b
mov rbp, qword [rsp + 0x40]
cmp dword [r14 + rbp*4 + 0x7f8], 2
jne 0x14009b190
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r13
mov dword [r14 + rbp*4 + 0x7f8], 0
call fcn.140075570
jmp 0x14009b190
mov rbp, qword [rsp + 0x40]
cmp qword [r13 + 0x180], 0
je 0x14009b20f
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0xf8]
xor ebx, ebx
jmp 0x14009a811
mov rcx, rbp
call qword [fcn.140046f30]
mov rcx, rsi
call fcn.1400950a0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14009b319
mov eax, ebx
jmp 0x14009b319
mov eax, edi
jmp 0x14009b319
mov eax, Ordinal_46
jmp 0x14009b319
mov rbp, qword [rsp + 0x40]
mov rcx, r14
mov rdx, qword [r14 + rbp*8 + 0x1d0]
call fcn.1400790f0
mov qword [r14 + rbp*8 + 0x1d0], 0xffffffffffffffff
cmp dword [r13 + 0x128], 0xc8
je 0x14009b2b7
test ebx, ebx
je 0x14009b24a
cmp qword [r13 + 0x180], 0
je 0x14009b24a
lea rdx, str.Connect_me_again_please_n
mov rcx, r13
mov dword [r14 + 0x388], 1
call fcn.140075570
jmp 0x14009b289
mov rcx, qword [r13 + 0x180]
call qword [fcn.140046f30]
mov qword [r13 + 0x180], 0
mov dword [r14 + 0x32c], 1
mov rdx, qword [r14 + rbp*8 + 0x1d0]
mov rcx, r14
call fcn.1400790f0
mov qword [r14 + rbp*8 + 0x1d0], 0xffffffffffffffff
mov dword [r14 + rbp*4 + 0x7f8], 0
cmp dword [r14 + 0x388], 0
jne 0x14009b301
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.140075620
jmp 0x14009b314
mov dword [r14 + rbp*4 + 0x7f8], 2
mov rcx, qword [r14 + 0x3e0]
call qword [fcn.140046f30]
xor ebx, ebx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r14 + 0x3e0], rbx
mov rcx, r13
mov dword [r13 + 0x8a0c], 1
call fcn.140075570
mov dword [r13 + 0x170], ebx
mov dword [r14 + 0x370], ebx
xor eax, eax
jmp 0x14009b319
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.140075620
mov eax, reloc.WS2_32.dll_getservbyport
mov rsi, qword [rsp + 0x98]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret