Function at 0x180077b50
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r12, qword [rcx]
mov rbx, qword [rcx + 0x6c8]
movsxd rbp, edx
mov rsi, qword [rcx + rbp*8 + 0x258]
xor r14d, r14d
mov r13d, r9d
mov rdi, r8
mov r15, rcx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x50], rsi
mov dword [rax + 8], r14d
call fcn.180077a60
test eax, eax
jne 0x180078620
mov dword [rcx + 0x430], r14d
cmp dword [rbx + 0x4020], 0
jne 0x180077e5d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r13d
mov r8, rdi
mov rcx, r12
call fcn.180053a90
mov rcx, qword [r12 + 0x1c8]
call qword [fcn.1800337e4]
mov qword [r12 + 0x1c8], r14
call fcn.1800699f0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800784a7
lea rcx, [0x180096968]
mov r8d, r13d
mov rdx, rdi
call fcn.180070e50
mov rsi, rax
test rax, rax
je 0x18007849d
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.180069530
mov rcx, rsi
mov edi, eax
call qword [fcn.1800337e4]
test edi, edi
jne 0x180077e35
cmp dword [r15 + 0x16c], 1
mov rdi, qword [rsp + 0xd0]
mov ecx, dword [r15 + 0x3f8]
lea r13, [0x180094a74]
lea rax, [0x180094a70]
lea rsi, [0x18009981b]
cmove r13, rax
mov rbp, r14
mov r14, rsi
cmp rdi, qword [r15 + 0xd0]
je 0x180077c99
mov edx, 0x3a
mov rcx, rdi
call fcn.1800435c8
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x18008ff20]
mov r9, rsi
cmovne r9, rax
lea rax, [0x18008ff1c]
mov rdx, rsi
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
lea rcx, str._s_s_s:_d
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.180070e50
mov rsi, rax
test rax, rax
je 0x18007849d
lea rdx, str.Host
mov rcx, r15
call fcn.180068ea0
test rax, rax
jne 0x180077d0c
lea rcx, str.Host:__s_r_n
mov rdx, rsi
call fcn.180070e50
mov rbp, rax
test rax, rax
je 0x180078494
lea rdx, str.Proxy_Connection
mov rcx, r15
call fcn.180068ea0
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent
test rax, rax
lea rax, [0x18009981b]
mov rcx, r15
cmovne rdi, rax
call fcn.180068ea0
test rax, rax
jne 0x180077d55
cmp qword [r12 + 0xd48], rax
je 0x180077d55
mov r14, qword [r15 + 0x4c0]
mov rax, qword [r15 + 0x4b8]
lea rdx, [0x18009981b]
mov qword [rsp + 0x38], rdi
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r14
cmovne rcx, rax
mov rax, rdx
test rbp, rbp
mov qword [rsp + 0x28], rcx
cmovne rax, rbp
lea rcx, [rsp + 0x48]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r13
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.18006a6f0
mov edi, eax
test rbp, rbp
je 0x180077db2
mov rcx, rbp
call qword [fcn.1800337e4]
mov rcx, rsi
call qword [fcn.1800337e4]
test edi, edi
jne 0x180077e13
mov r8, qword [rsp + 0x48]
lea edx, [rdi + 1]
mov rcx, r15
call fcn.18006a9e0
mov edi, eax
test eax, eax
jne 0x180077e13
lea rdx, [0x180090660]
lea rcx, [rsp + 0x48]
call fcn.18006a6f0
mov ebp, dword [rsp + 0xc8]
mov edi, eax
test eax, eax
jne 0x180077e1a
lea r8, [r12 + 0x1718]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov rdx, r15
mov dword [rsp + 0x20], ebp
call fcn.180069a40
mov edi, eax
jmp 0x180077e1a
mov ebp, dword [rsp + 0xc8]
xor r14d, r14d
mov qword [rsp + 0x48], r14
test edi, edi
je 0x180077e35
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r12
call fcn.180053b90
lea rcx, [rsp + 0x48]
call fcn.180069a00
test edi, edi
jne 0x1800784b1
mov rsi, qword [rsp + 0x50]
mov dword [rbx + 0x4020], 1
mov dword [rbx + 0x4000], r14d
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 1]
call fcn.180055150
test rax, rax
jle 0x180078624
mov edx, ebp
mov rcx, r15
call fcn.180056220
test eax, eax
je 0x180078620
cmp dword [rbx + 0x4004], 0
mov r13d, r14d
je 0x1800783db
lea rbp, [rbx + 0x4000]
nop dword [rax]
mov r8, qword [rbx + 0x4010]
cmp r8, rbp
jae 0x1800784c9
lea rax, [rsp + 0x58]
mov r9d, 1
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.180053940
mov edi, eax
cmp eax, 0x51
je 0x180078620
mov rcx, r15
call fcn.180073360
test eax, eax
jne 0x1800784bf
test edi, edi
jne 0x1800783cd
cmp qword [rsp + 0x58], 0
jle 0x180078386
cmp dword [rbx + 0x4004], 1
jle 0x180077f81
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x180077f38
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x180078377
mov dword [rbx + 0x4020], 2
jmp 0x1800783cd
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x68]
mov r8d, 1
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], rax
call fcn.180076d50
cmp eax, 0xffffffff
jne 0x180078377
lea rdx, str.chunk_reading_DONE_n
mov rcx, r12
call fcn.180053a90
mov dword [rbx + 0x4004], r14d
jmp 0x18007836d
mov rax, qword [rbx + 0x4010]
inc dword [rbp]
cmp byte [rax], 0xa
je 0x180077f9f
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x180078377
cmp dword [r12 + 0xf48], 0
je 0x180077fc2
movsxd r9, dword [rbp]
mov r8, qword [rbx + 0x4008]
mov edx, 1
mov rcx, r12
call fcn.1800539d0
cmp dword [r12 + 0xf94], 0
jne 0x180077ffe
cmp dword [r12 + 0xf34], 0
movsxd r9, dword [rbp]
mov r8, qword [rbx + 0x4008]
mov edx, 2
mov eax, 3
mov rcx, r15
cmovne edx, eax
call fcn.180054070
test eax, eax
jne 0x180078638
movsxd rax, dword [rbp]
add qword [r12 + 0x1710], rax
movsxd rax, dword [rbp]
add qword [r12 + 0x108], rax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x18007828b
cmp al, 0xa
je 0x18007828b
movsxd rax, dword [rbp]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], 0
mov rdx, qword [rbx + 0x4008]
lea rcx, str.WWW_Authenticate:
call fcn.18004e760
test eax, eax
je 0x180078064
mov eax, dword [r12 + 0x178]
cmp eax, 0x191
je 0x180078090
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.18004e760
test eax, eax
je 0x1800780de
mov eax, dword [r12 + 0x178]
cmp eax, 0x197
jne 0x1800780de
mov rcx, qword [rbx + 0x4008]
cmp eax, 0x197
mov esi, r14d
sete sil
call fcn.180068f30
mov rdi, rax
test rax, rax
je 0x1800784a7
mov r8, rax
mov edx, esi
mov rcx, r15
call fcn.180069680
mov rcx, rdi
mov esi, eax
call qword [fcn.1800337e4]
test esi, esi
jne 0x1800784b8
mov rsi, qword [rsp + 0x50]
jmp 0x180078274
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.18004e760
test eax, eax
je 0x180078150
mov r8d, dword [r12 + 0x178]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x18007812e
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, r12
call fcn.180053a90
jmp 0x180078274
mov rcx, qword [rbx + 0x4008]
xor edx, edx
lea r9, [rbx + 0x4018]
lea r8d, [rdx + 0xa]
add rcx, 0xf
call fcn.180076640
jmp 0x180078274
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.180069d80
test eax, eax
je 0x18007817d
mov dword [rbx + 0x4028], 1
jmp 0x180078274
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.18004e760
test eax, eax
je 0x180078212
mov r8d, dword [r12 + 0x178]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1800781cd
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, r12
call fcn.180053a90
jmp 0x180078274
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.180069d80
test eax, eax
je 0x180078274
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r12
call fcn.180053a90
mov rcx, r15
mov dword [rbx + 0x4024], 1
call fcn.180076d40
jmp 0x180078274
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.180069d80
test eax, eax
je 0x18007823c
mov dword [rbx + 0x4028], 1
jmp 0x180078274
mov rcx, qword [rbx + 0x4008]
lea r9, [r12 + 0x178]
lea r8, [rsp + 0xc0]
lea rdx, str.HTTP_1._d__d
call fcn.180083838
cmp eax, 2
jne 0x180078274
mov eax, dword [r12 + 0x178]
mov dword [r12 + 0x16fc], eax
mov dword [rbp], r14d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x180078377
mov qword [rbx + 0x4010], rbx
cmp dword [r12 + 0x178], 0x197
jne 0x18007835c
cmp dword [r12 + 0x1680], 0
jne 0x18007835c
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x1800782dd
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r12
call fcn.180053a90
jmp 0x180078363
cmp dword [rbx + 0x4024], 0
je 0x18007835c
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, r12
call fcn.180053a90
mov dword [r12 + 0x664], 1
mov rax, qword [rbx + 0x4008]
inc rax
cmp byte [rax], 0xa
jne 0x180078317
mov qword [rbx + 0x4008], rax
mov rdx, qword [rbx + 0x4008]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov r8d, 1
mov rcx, r15
inc rdx
mov qword [rsp + 0x20], rax
call fcn.180076d50
cmp eax, 0xffffffff
jne 0x180078363
lea rdx, str.chunk_reading_DONE_n
mov rcx, r12
call fcn.180053a90
mov dword [rbx + 0x4020], 2
mov dword [rbx + 0x4004], r14d
cmp qword [rbx + 0x4018], 0
jne 0x180078377
mov dword [rbx + 0x4020], 2
cmp dword [rbx + 0x4004], 0
jne 0x180077ea0
jmp 0x1800783d4
cmp dword [r12 + 0x6c8], 0
je 0x1800783b8
cmp dword [r12 + 0x12f0], 0
je 0x1800783b8
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r12
mov dword [r15 + 0x430], 1
call fcn.180053a90
jmp 0x1800783cd
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r12
mov r13d, 1
call fcn.180053b90
mov dword [rbx + 0x4004], r14d
mov ebp, dword [rsp + 0xc8]
mov rcx, r15
call fcn.180073360
test eax, eax
jne 0x1800784bf
test r13d, r13d
jne 0x1800784d8
mov eax, 0x51eb851f
imul dword [r12 + 0x16fc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x180078433
mov rcx, r15
call fcn.18006a4a0
test eax, eax
jne 0x180078638
cmp dword [r15 + 0x3d0], eax
je 0x180078433
mov dword [rbx + 0x4028], 1
cmp dword [rbx + 0x4028], 0
je 0x18007844b
cmp qword [r12 + 0x1c8], 0
jne 0x1800784e2
cmp qword [r12 + 0x1c8], 0
je 0x180078505
cmp dword [rbx + 0x4020], 2
jne 0x180078470
mov edx, 1
mov rcx, r15
call fcn.180077aa0
cmp qword [r12 + 0x1c8], 0
je 0x180078505
mov rdi, qword [rsp + 0xd0]
mov r13d, dword [rsp + 0xd8]
jmp 0x180077bb1
mov rcx, rsi
call qword [fcn.1800337e4]
lea rcx, [rsp + 0x48]
call fcn.180069a00
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180078638
mov eax, edi
jmp 0x180078638
mov eax, esi
jmp 0x180078638
mov eax, Ordinal_46
jmp 0x180078638
lea rdx, str.CONNECT_response_too_large_
mov rcx, r12
call fcn.180053b90
mov eax, gethostname
jmp 0x180078638
mov rdi, qword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r15 + rdi*8 + 0x258]
call fcn.180056010
mov qword [r15 + rdi*8 + 0x258], 0xffffffffffffffff
jmp 0x18007850a
mov rdi, qword [rsp + 0x60]
mov eax, 0x51eb851f
imul dword [r12 + 0x16fc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1800785d0
cmp dword [rbx + 0x4028], 0
je 0x180078562
cmp qword [r12 + 0x1c8], 0
je 0x180078562
lea rdx, str.Connect_me_again_please_n
mov rcx, r12
mov dword [r15 + 0x430], 1
call fcn.180053a90
mov rcx, r15
call fcn.180077b30
jmp 0x1800785a1
mov rcx, qword [r12 + 0x1c8]
call qword [fcn.1800337e4]
mov edx, 2
mov rcx, r15
mov qword [r12 + 0x1c8], r14
call fcn.1800561c0
mov rdx, qword [r15 + rdi*8 + 0x258]
mov rcx, r15
call fcn.180056010
mov qword [r15 + rdi*8 + 0x258], 0xffffffffffffffff
mov dword [rbx + 0x4020], r14d
cmp dword [r15 + 0x430], 0
jne 0x180078620
mov r8d, dword [r12 + 0x178]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r12
call fcn.180053b90
mov eax, gethostname
jmp 0x180078638
mov dword [rbx + 0x4020], 2
mov rcx, qword [r15 + 0x4b8]
call qword [fcn.1800337e4]
mov qword [r15 + 0x4b8], r14
mov r8d, dword [r12 + 0x16fc]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, r12
mov qword [r12 + 0x12f4], 1
call fcn.180053a90
mov dword [r12 + 0x664], r14d
mov dword [r15 + 0x414], r14d
xor eax, eax
jmp 0x180078638
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r12
call fcn.180053b90
mov eax, 0x1c
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret