Function at 0x140080180
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 + 0x560]
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.140080be0
test al, al
jne 0x140080aad
mov byte [r12 + 0x370], al
nop dword [rax]
cmp dword [rdi + 0x30], 0
jne 0x140080400
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.140072560
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1400afdbc]
mov edx, 0x20000
mov qword [rbx + 0x1a0], rsi
lea rcx, [rbp - 9]
call fcn.14006a640
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.140080ae0
test eax, eax
jne 0x140080aaf
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.14007b0b0
mov r13, qword [rbp - 0x41]
mov esi, eax
test eax, eax
jne 0x1400803ca
cmp dword [r12 + 0x144], 1
lea rax, [0x1400de184]
lea r15, [0x1400de180]
mov rdx, r12
lea r8, str.Proxy_Connection
mov rcx, rbx
cmove r15, rax
lea rsi, [0x1400f387a]
call fcn.1400793c0
mov rdx, qword [rbp - 0x31]
lea r12, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea r8, str.User_Agent
lea rax, [0x1400f387a]
mov rcx, rbx
cmovne r12, rax
call fcn.1400793c0
test rax, rax
jne 0x140080318
cmp qword [rbx + 0x898], rax
je 0x140080318
mov rsi, qword [rbx + 0x1268]
mov rax, qword [rbx + 0x1260]
lea rdx, [0x1400f387a]
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.14006a5d0
mov esi, eax
test eax, eax
jne 0x1400803b7
lea r8, [rbp - 9]
mov dl, 1
mov rcx, rbx
call fcn.140078cb0
mov esi, eax
test eax, eax
jne 0x1400803b7
lea rdx, [0x1400f7f70]
lea rcx, [rbp - 9]
call fcn.14006a5b0
mov esi, eax
test eax, eax
jne 0x1400803b7
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x1330]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.140079160
mov esi, eax
test eax, eax
je 0x1400803c6
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.140072470
mov r12, qword [rbp - 0x31]
mov rcx, r13
call qword [fcn.1400afdbc]
mov rcx, r14
call qword [fcn.1400afdbc]
lea rcx, [rbp - 9]
call fcn.14006a610
test esi, esi
jne 0x140080972
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.140073bc0
test rax, rax
jle 0x140080aca
mov edx, r14d
mov rcx, r12
call fcn.140072f80
test al, al
je 0x140080aad
xor r15d, r15d
cmp dword [rdi + 0x20], r15d
je 0x1400804af
lea rax, [rbp - 0x21]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.140072670
mov esi, eax
cmp eax, 0x51
je 0x140080aad
mov rcx, rbx
call fcn.14007f050
test eax, eax
jne 0x140080ac3
test esi, esi
jne 0x1400804a7
cmp qword [rbp - 0x21], r15
jle 0x1400808da
cmp dword [rdi + 0x20], 2
jne 0x14008056f
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x14008052c
dec rax
mov qword [rdi + 0x28], rax
test rax, rax
jg 0x1400808c7
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
mov r14d, dword [rbp + 0x6f]
mov rcx, rbx
call fcn.14007f050
test eax, eax
jne 0x140080ac3
test r15d, r15d
jne 0x140080992
mov eax, dword [rbx + 0x1314]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400804f6
mov rcx, rbx
call fcn.140079660
test eax, eax
jne 0x140080aaf
cmp byte [r12 + 0x371], al
je 0x1400804f6
mov byte [rdi + 0x35], 1
cmp byte [rdi + 0x35], 0
je 0x140080931
cmp qword [rbx + 0x1a0], 0
je 0x140080959
mov rsi, qword [rbp - 0x19]
mov rdx, r12
mov rcx, rbx
mov r8, qword [rsi]
call fcn.140072ee0
mov qword [rsi], 0xffffffffffffffff
jmp 0x1400809a0
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.14009cbe0
cmp eax, 0xffffffff
jne 0x1400808c7
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.140072560
mov dword [rdi + 0x20], esi
jmp 0x1400808c0
mov r8d, 1
lea rdx, [rbp + 0x67]
mov rcx, rdi
call fcn.14006a600
test eax, eax
jne 0x140080983
cmp byte [rbp + 0x67], 0xa
jne 0x1400808c7
mov rcx, rdi
call fcn.14006a670
mov rcx, rdi
mov rsi, rax
call fcn.14006a660
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.1400723b0
cmp byte [rbx + 0xb01], r15b
jne 0x1400805e9
xor edx, edx
mov r9, r14
cmp byte [rbx + 0xae9], dl
mov r8, rsi
mov rcx, rbx
setne dl
add edx, 2
call fcn.140072390
test eax, eax
jne 0x140080aaf
movsxd rax, r14d
add qword [rbx + 0x1328], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x140080811
cmp al, 0xa
je 0x140080811
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rsi
call fcn.1400761a0
test eax, eax
je 0x14008062f
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x191
je 0x140080658
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.1400761a0
test eax, eax
je 0x14008069e
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x197
jne 0x14008069e
mov rcx, rsi
call fcn.140079550
mov rsi, rax
test rax, rax
je 0x140080979
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.14007ae10
mov rcx, rsi
mov r14d, eax
call qword [fcn.1400afdbc]
test r14d, r14d
je 0x140080804
mov eax, r14d
jmp 0x140080aaf
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.1400761a0
test eax, eax
je 0x140080706
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400806e6
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.140072560
mov rcx, rdi
call fcn.14006a680
jmp 0x1400808c7
xor edx, edx
lea r9, [rdi + 0x28]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140083980
mov rcx, rdi
call fcn.14006a680
jmp 0x1400808c7
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.140079460
test al, al
jne 0x140080800
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rsi
call fcn.1400761a0
test eax, eax
je 0x1400807ae
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14008076c
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.140072560
mov rcx, rdi
call fcn.14006a680
jmp 0x1400808c7
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.140079460
test al, al
je 0x140080804
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.140072560
mov rcx, rbx
mov byte [rdi + 0x34], 1
call fcn.14009cbc0
mov rcx, rdi
call fcn.14006a680
jmp 0x1400808c7
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.140079460
test al, al
jne 0x140080800
lea r9, [rbx + 0x160]
mov rcx, rsi
lea r8, [rbp - 0x39]
lea rdx, str.HTTP_1._d__d
call fcn.140004c50
cmp eax, 2
jne 0x140080804
mov eax, dword [rbx + 0x160]
mov rcx, rdi
mov dword [rbx + 0x1314], eax
call fcn.14006a680
jmp 0x1400808c7
mov byte [rdi + 0x35], 1
mov rcx, rdi
call fcn.14006a680
jmp 0x1400808c7
cmp dword [rbx + 0x160], 0x197
jne 0x1400808b6
cmp byte [rbx + 0x12b5], r15b
jne 0x1400808b6
mov r8, qword [rdi + 0x28]
mov dword [rdi + 0x20], 2
test r8, r8
je 0x140080855
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.140072560
cmp dword [rdi + 0x20], r15d
jne 0x1400808d1
jmp 0x1400808ba
cmp byte [rdi + 0x34], r15b
je 0x1400808b6
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.140072560
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.14009cbe0
cmp eax, 0xffffffff
jne 0x14008084d
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.140072560
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
cmp qword [rdi + 0x28], r15
jne 0x1400808c7
mov dword [rdi + 0x30], 2
cmp dword [rdi + 0x20], r15d
je 0x1400804ab
mov rsi, qword [rbp - 0x49]
jmp 0x140080432
cmp dword [rbx + 0x220], r15d
je 0x140080910
cmp dword [rbx + 0xe70], r15d
je 0x140080910
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x370], 1
mov rcx, rbx
call fcn.140072560
mov dword [rdi + 0x20], 0
jmp 0x1400804ab
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r15d, 1
call fcn.140072470
mov dword [rdi + 0x20], 0
jmp 0x1400804ab
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x14008099c
cmp dword [rdi + 0x30], 2
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jne 0x140080200
mov dl, 1
mov rcx, rbx
call fcn.140080e70
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x14008099c
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jmp 0x140080200
mov eax, esi
jmp 0x140080aaf
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140080aaf
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.140072470
mov eax, gethostname
jmp 0x140080aaf
mov rsi, qword [rbp - 0x19]
mov eax, dword [rbx + 0x1314]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140080a57
cmp byte [rdi + 0x35], 0
je 0x1400809e6
cmp qword [rbx + 0x1a0], 0
je 0x1400809e6
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x370], 1
mov rcx, rbx
call fcn.140072560
mov rcx, rbx
call fcn.140080e30
jmp 0x140080a20
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1400afdbc]
mov edx, 2
mov qword [rbx + 0x1a0], 0
mov rcx, r12
call fcn.140073030
mov r8, qword [rsi]
mov rdx, r12
mov rcx, rbx
call fcn.140072ee0
mov qword [rsi], 0xffffffffffffffff
mov dword [rdi + 0x30], 0
cmp byte [r12 + 0x370], 0
jne 0x140080aad
mov rcx, rdi
call fcn.14006a610
mov r8d, dword [rbx + 0x160]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.140072470
mov eax, gethostname
jmp 0x140080aaf
mov dword [rdi + 0x30], 2
mov rcx, qword [rbx + 0x1260]
call qword [fcn.1400afdbc]
mov qword [rbx + 0x1260], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov r8d, dword [rbx + 0x1314]
mov rcx, rbx
mov word [rbx + 0xe74], 1
call fcn.140072560
mov byte [rbx + 0x1cb], 0
mov rcx, rdi
mov byte [r12 + 0x37e], 0
call fcn.14006a610
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 0x140080aaf
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.140072470
mov eax, 0x1c
jmp 0x140080aaf