Function at 0x1400fd7c0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov r12, qword [rcx + 0x18]
mov rbx, rcx
movsxd r14, edx
mov r15d, r9d
mov dword [rbp - 0x39], 0
mov r13, r8
mov qword [rbp - 0x31], r12
mov rdi, qword [r12 + 0x598]
mov rsi, qword [r12 + r14*8 + 0x1f0]
lea rcx, [r14 + 0x3e]
lea rcx, [r12 + rcx*8]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x19], rcx
mov rcx, r12
call fcn.1400fe220
test al, al
jne 0x1400fe0ed
mov byte [r12 + 0x3a8], al
nop dword [rax]
cmp dword [rdi + 0x30], 0
jne 0x1400fda40
xor esi, esi
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r15d
mov qword [rbp - 0x29], rsi
mov r8, r13
mov qword [rbp - 0x41], rsi
mov rcx, rbx
call fcn.1400f2050
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1402544cb]
mov edx, 0x20000
mov qword [rbx + 0x1a0], rsi
lea rcx, [rbp - 9]
call fcn.1400ec7d0
lea rax, [rbp - 0x41]
mov r9d, r15d
mov qword [rsp + 0x28], rax
mov r8, r13
lea rax, [rbp - 0x29]
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400fe120
test eax, eax
jne 0x1400fe0ef
mov r14, qword [rbp - 0x29]
lea r8, str.CONNECT
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
call fcn.1400fa7b0
mov r13, qword [rbp - 0x41]
mov esi, eax
test eax, eax
jne 0x1400fda0a
cmp dword [r12 + 0x144], 1
lea rax, [0x14025c7dc]
lea r15, [0x14025c7d8]
mov rdx, r12
lea r8, str.Proxy_Connection
mov rcx, rbx
cmove r15, rax
lea rsi, [0x1402df794]
call fcn.1400f92f0
mov rdx, qword [rbp - 0x31]
lea r12, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea r8, str.User_Agent
lea rax, [0x1402df794]
mov rcx, rbx
cmovne r12, rax
call fcn.1400f92f0
test rax, rax
jne 0x1400fd958
cmp qword [rbx + 0x898], rax
je 0x1400fd958
mov rsi, qword [rbx + 0x1270]
mov rax, qword [rbx + 0x1268]
lea rdx, [0x1402df794]
test rax, rax
mov qword [rsp + 0x38], r12
mov rcx, rdx
mov qword [rsp + 0x30], rsi
cmovne rcx, rax
mov r9, r15
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r13, r13
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, r14
lea rcx, [rbp - 9]
cmovne rax, r13
mov qword [rsp + 0x20], rax
call fcn.1400ec760
mov esi, eax
test eax, eax
jne 0x1400fd9f7
lea r8, [rbp - 9]
mov dl, 1
mov rcx, rbx
call fcn.1400f8be0
mov esi, eax
test eax, eax
jne 0x1400fd9f7
lea rdx, [0x14025b6b8]
lea rcx, [rbp - 9]
call fcn.1400ec740
mov esi, eax
test eax, eax
jne 0x1400fd9f7
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x1338]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.1400f9090
mov esi, eax
test eax, eax
je 0x1400fda06
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400f1f60
mov r12, qword [rbp - 0x31]
mov rcx, r13
call qword [fcn.1402544cb]
mov rcx, r14
call qword [fcn.1402544cb]
lea rcx, [rbp - 9]
call fcn.1400ec7a0
test esi, esi
jne 0x1400fdfb2
mov rsi, qword [rbp - 0x49]
mov r14d, dword [rbp + 0x6f]
mov r13, qword [rbp + 0x77]
mov dword [rdi + 0x30], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1400f36c0
test rax, rax
jle 0x1400fe10a
mov edx, r14d
mov rcx, r12
call fcn.1400f2a70
test al, al
je 0x1400fe0ed
xor r15d, r15d
cmp dword [rdi + 0x20], r15d
je 0x1400fdaef
lea rax, [rbp - 0x21]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.1400f2160
mov esi, eax
cmp eax, 0x51
je 0x1400fe0ed
mov rcx, rbx
call fcn.1400fc6a0
test eax, eax
jne 0x1400fe103
test esi, esi
jne 0x1400fdae7
cmp qword [rbp - 0x21], r15
jle 0x1400fdf1a
cmp dword [rdi + 0x20], 2
jne 0x1400fdbaf
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1400fdb6c
dec rax
mov qword [rdi + 0x28], rax
test rax, rax
jg 0x1400fdf07
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
mov r14d, dword [rbp + 0x6f]
mov rcx, rbx
call fcn.1400fc6a0
test eax, eax
jne 0x1400fe103
test r15d, r15d
jne 0x1400fdfd2
mov eax, dword [rbx + 0x131c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400fdb36
mov rcx, rbx
call fcn.1400f9590
test eax, eax
jne 0x1400fe0ef
cmp byte [r12 + 0x3a9], al
je 0x1400fdb36
mov byte [rdi + 0x35], 1
cmp byte [rdi + 0x35], 0
je 0x1400fdf71
cmp qword [rbx + 0x1a0], 0
je 0x1400fdf99
mov rsi, qword [rbp - 0x19]
mov rdx, r12
mov rcx, rbx
mov r8, qword [rsi]
call fcn.1400f29d0
mov qword [rsi], 0xffffffffffffffff
jmp 0x1400fdfe0
xor esi, esi
lea rax, [rbp - 0x11]
lea r9, [rbp - 0x41]
mov qword [rbp - 0x41], rsi
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [rsi + 1]
call fcn.14011ddb0
cmp eax, 0xffffffff
jne 0x1400fdf07
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400f2050
mov dword [rdi + 0x20], esi
jmp 0x1400fdf00
mov r8d, 1
lea rdx, [rbp + 0x67]
mov rcx, rdi
call fcn.1400ec790
test eax, eax
jne 0x1400fdfc3
cmp byte [rbp + 0x67], 0xa
jne 0x1400fdf07
mov rcx, rdi
call fcn.1400ec800
mov rcx, rdi
mov rsi, rax
call fcn.1400ec7f0
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.1400f1e90
cmp byte [rbx + 0xb01], r15b
jne 0x1400fdc29
xor edx, edx
mov r9, r14
cmp byte [rbx + 0xae9], dl
mov r8, rsi
mov rcx, rbx
setne dl
add edx, 2
call fcn.1400f1e70
test eax, eax
jne 0x1400fe0ef
movsxd rax, r14d
add qword [rbx + 0x1330], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1400fde51
cmp al, 0xa
je 0x1400fde51
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rsi
call fcn.1400f52f0
test eax, eax
je 0x1400fdc6f
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x191
je 0x1400fdc98
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.1400f52f0
test eax, eax
je 0x1400fdcde
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x197
jne 0x1400fdcde
mov rcx, rsi
call fcn.1400f9480
mov rsi, rax
test rax, rax
je 0x1400fdfb9
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400fa510
mov rcx, rsi
mov r14d, eax
call qword [fcn.1402544cb]
test r14d, r14d
je 0x1400fde44
mov eax, r14d
jmp 0x1400fe0ef
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.1400f52f0
test eax, eax
je 0x1400fdd46
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400fdd26
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.1400f2050
mov rcx, rdi
call fcn.1400ec810
jmp 0x1400fdf07
xor edx, edx
lea r9, [rdi + 0x28]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400ffaf0
mov rcx, rdi
call fcn.1400ec810
jmp 0x1400fdf07
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.1400f9390
test al, al
jne 0x1400fde40
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rsi
call fcn.1400f52f0
test eax, eax
je 0x1400fddee
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400fddac
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.1400f2050
mov rcx, rdi
call fcn.1400ec810
jmp 0x1400fdf07
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.1400f9390
test al, al
je 0x1400fde44
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.1400f2050
mov rcx, rbx
mov byte [rdi + 0x34], 1
call fcn.14011dd90
mov rcx, rdi
call fcn.1400ec810
jmp 0x1400fdf07
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.1400f9390
test al, al
jne 0x1400fde40
lea r9, [rbx + 0x160]
mov rcx, rsi
lea r8, [rbp - 0x39]
lea rdx, str.HTTP_1._d__d
call fcn.1400ebd20
cmp eax, 2
jne 0x1400fde44
mov eax, dword [rbx + 0x160]
mov rcx, rdi
mov dword [rbx + 0x131c], eax
call fcn.1400ec810
jmp 0x1400fdf07
mov byte [rdi + 0x35], 1
mov rcx, rdi
call fcn.1400ec810
jmp 0x1400fdf07
cmp dword [rbx + 0x160], 0x197
jne 0x1400fdef6
cmp byte [rbx + 0x12bd], r15b
jne 0x1400fdef6
mov r8, qword [rdi + 0x28]
mov dword [rdi + 0x20], 2
test r8, r8
je 0x1400fde95
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.1400f2050
cmp dword [rdi + 0x20], r15d
jne 0x1400fdf11
jmp 0x1400fdefa
cmp byte [rdi + 0x34], r15b
je 0x1400fdef6
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.1400f2050
lea rax, [rsi + 1]
mov byte [rbx + 0x1cb], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x21]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp - 0xd]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.14011ddb0
cmp eax, 0xffffffff
jne 0x1400fde8d
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400f2050
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
cmp qword [rdi + 0x28], r15
jne 0x1400fdf07
mov dword [rdi + 0x30], 2
cmp dword [rdi + 0x20], r15d
je 0x1400fdaeb
mov rsi, qword [rbp - 0x49]
jmp 0x1400fda72
cmp dword [rbx + 0x220], r15d
je 0x1400fdf50
cmp dword [rbx + 0xe70], r15d
je 0x1400fdf50
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x3a8], 1
mov rcx, rbx
call fcn.1400f2050
mov dword [rdi + 0x20], 0
jmp 0x1400fdaeb
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r15d, 1
call fcn.1400f1f60
mov dword [rdi + 0x20], 0
jmp 0x1400fdaeb
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x1400fdfdc
cmp dword [rdi + 0x30], 2
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jne 0x1400fd840
mov dl, 1
mov rcx, rbx
call fcn.1400fe4b0
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x1400fdfdc
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jmp 0x1400fd840
mov eax, esi
jmp 0x1400fe0ef
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400fe0ef
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.1400f1f60
mov eax, gethostname
jmp 0x1400fe0ef
mov rsi, qword [rbp - 0x19]
mov eax, dword [rbx + 0x131c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400fe097
cmp byte [rdi + 0x35], 0
je 0x1400fe026
cmp qword [rbx + 0x1a0], 0
je 0x1400fe026
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x3a8], 1
mov rcx, rbx
call fcn.1400f2050
mov rcx, rbx
call fcn.1400fe470
jmp 0x1400fe060
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1402544cb]
mov edx, 2
mov qword [rbx + 0x1a0], 0
mov rcx, r12
call fcn.1400f2b30
mov r8, qword [rsi]
mov rdx, r12
mov rcx, rbx
call fcn.1400f29d0
mov qword [rsi], 0xffffffffffffffff
mov dword [rdi + 0x30], 0
cmp byte [r12 + 0x3a8], 0
jne 0x1400fe0ed
mov rcx, rdi
call fcn.1400ec7a0
mov r8d, dword [rbx + 0x160]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400f1f60
mov eax, gethostname
jmp 0x1400fe0ef
mov dword [rdi + 0x30], 2
mov rcx, qword [rbx + 0x1268]
call qword [fcn.1402544cb]
mov qword [rbx + 0x1268], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov r8d, dword [rbx + 0x131c]
mov rcx, rbx
mov word [rbx + 0xe74], 1
call fcn.1400f2050
mov byte [rbx + 0x1cb], 0
mov rcx, rdi
mov byte [r12 + 0x3b6], 0
call fcn.1400ec7a0
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, Ordinal_46
jmp 0x1400fe0ef
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400f1f60
mov eax, 0x1c
jmp 0x1400fe0ef