Function at 0x1800d0ba0
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, 0x78
mov r13, qword [rcx + 0x18]
mov rbx, rcx
mov r15, qword [rcx + 0x1b0]
mov dword [rsp + 0x30], 0
movsxd r14, edx
mov rbp, qword [r13 + 0x7f0]
mov qword [rsp + 0x50], r15
mov rdi, qword [r13 + r14*8 + 0x1e8]
mov qword [rsp + 0x40], rdi
test rbp, rbp
je 0x1800d171c
lea r12, [rbp + 0x288]
cmp dword [r12], 2
jge 0x1800d171c
mov byte [r13 + 0x3d0], 0
lea rsi, [rcx + 0x198]
nop word [rax + rax]
cmp dword [r12], 0
jne 0x1800d0e8f
mov rdi, qword [rsp + 0xd0]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
mov r8, rdi
lea r14, [rbp + 0x250]
mov rcx, rbx
call fcn.1800b6fd0
mov rcx, qword [rsi]
call qword [fcn.18019d4c0]
mov edx, 0x100000
mov qword [rsi], 0
mov rcx, r14
call fcn.1800b4fe0
movzx eax, byte [r13 + 0x3d8]
xor r15d, r15d
cmp rdi, qword [r13 + 0xa0]
je 0x1800d0c90
mov edx, 0x3a
mov rcx, rdi
call fcn.18018ede0
test rax, rax
setne al
test al, al
lea rcx, [0x18023ba24]
lea rax, [0x18023ba28]
mov r8, rdi
lea r9, [0x180234621]
cmovne r9, rcx
lea rdx, [0x180234621]
cmovne rdx, rax
lea rcx, str._s_s_s:_d
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call fcn.1800ba470
mov rsi, rax
test rax, rax
je 0x1800d1537
lea r8, str.Host
mov rdx, r13
mov rcx, rbx
call fcn.1800c5320
test rax, rax
jne 0x1800d0d0e
mov rdx, rsi
lea rcx, str.Host:__s_r_n
call fcn.1800ba470
mov r15, rax
test rax, rax
je 0x1800d152e
mov byte [rsp + 0x28], 1
lea r8, str.CONNECT
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, r13
mov rcx, rbx
call fcn.1800c7820
mov edi, eax
test eax, eax
jne 0x1800d0e5b
cmp dword [r13 + 0x13c], 1
lea rax, [0x1802409a4]
lea r9, [0x1802409a0]
mov r8, rsi
cmove r9, rax
lea rcx, [0x180234621]
mov rax, qword [rbx + 0x1270]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r15, r15
mov qword [rsp + 0x28], rcx
lea rax, [0x180234621]
cmovne rax, r15
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1800b4f70
mov edi, eax
test eax, eax
jne 0x1800d0e4c
lea r8, str.User_Agent
mov rdx, r13
mov rcx, rbx
call fcn.1800c5320
test rax, rax
jne 0x1800d0dd2
mov r8, qword [rbx + 0x8c0]
test r8, r8
je 0x1800d0dd2
lea rdx, str.User_Agent:__s_r_n
mov rcx, r14
call fcn.1800b4f70
mov edi, eax
test eax, eax
jne 0x1800d0e4c
lea r8, str.Proxy_Connection
mov rdx, r13
mov rcx, rbx
call fcn.1800c5320
test rax, rax
jne 0x1800d0dfe
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
mov rcx, r14
call fcn.1800b4f50
mov edi, eax
test eax, eax
jne 0x1800d0e4c
mov r8, r14
mov dl, 1
mov rcx, rbx
call fcn.1800c4bc0
mov edi, eax
test eax, eax
jne 0x1800d0e4c
lea rdx, [0x180238940]
mov rcx, r14
call fcn.1800b4f50
mov edi, eax
test eax, eax
jne 0x1800d0e4c
mov eax, dword [rsp + 0xc8]
lea r8, [rbx + 0x1318]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r14
call fcn.1800c5080
mov edi, eax
test eax, eax
je 0x1800d0e5b
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1800b6e60
mov rcx, r15
call qword [fcn.18019d4c0]
mov rcx, rsi
call qword [fcn.18019d4c0]
test edi, edi
jne 0x1800d1541
mov r14d, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov dword [r12], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1800b88b0
test rax, rax
jle 0x1800d1736
mov edx, r14d
mov rcx, r13
call fcn.1800b7940
test al, al
jne 0x1800d0ec2
cmp dword [r15 + 0x200], 0
je 0x1800d171c
cmp dword [r15 + 0x200], 1
jne 0x1800d0f21
mov r9, qword [rbp + 0x270]
test r9, r9
jne 0x1800d1548
mov rax, qword [rbx + 0xd38]
lea r8, [rsp + 0x58]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x738]
call fcn.1800cec20
test eax, eax
jne 0x1800d171e
mov r9, qword [rsp + 0x58]
mov qword [rbp + 0x270], r9
test r9, r9
jne 0x1800d1548
mov dword [r15 + 0x200], r9d
xor r15d, r15d
cmp dword [rbp + 0x278], r15d
je 0x1800d0fc5
lea rax, [rsp + 0x48]
mov r9d, 1
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1800b7070
mov edi, eax
cmp eax, 0x51
je 0x1800d171c
mov rcx, rbx
call fcn.1800bfba0
test eax, eax
jne 0x1800d172f
test edi, edi
jne 0x1800d0fb6
cmp qword [rsp + 0x48], r15
jle 0x1800d1445
cmp dword [rbp + 0x278], 2
jne 0x1800d1092
mov rax, qword [rbp + 0x280]
test rax, rax
je 0x1800d1041
dec rax
mov qword [rbp + 0x280], rax
test rax, rax
jg 0x1800d142e
mov dword [r12], 2
mov dword [rbp + 0x278], r15d
mov r14d, dword [rsp + 0xc8]
mov rcx, rbx
call fcn.1800bfba0
test eax, eax
jne 0x1800d172f
test r15d, r15d
jne 0x1800d15be
lea rdi, [rbx + 0x12fc]
mov eax, dword [rdi]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1800d1018
mov rcx, rbx
call fcn.1800c55b0
test eax, eax
jne 0x1800d171e
cmp byte [r13 + 0x3d1], al
je 0x1800d1018
mov byte [rbp + 0x28d], 1
lea rdi, [rbx + 0x12fc]
cmp byte [rbp + 0x28d], 0
je 0x1800d14aa
lea rsi, [rbx + 0x198]
cmp qword [rsi], 0
jne 0x1800d15c8
mov r14, rsi
mov rax, rsi
jmp 0x1800d1505
lea rax, [rsp + 0x34]
xor r14d, r14d
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov r8d, 1
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.1800cddd0
cmp eax, 0xffffffff
jne 0x1800d142e
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1800b6fd0
mov dword [rbp + 0x278], r14d
jmp 0x1800d1426
mov r8d, 1
lea rdx, [rsp + 0xc0]
lea rcx, [rbp + 0x230]
call fcn.1800b4fa0
test eax, eax
jne 0x1800d15af
cmp byte [rsp + 0xc0], 0xa
jne 0x1800d142e
lea rcx, [rbp + 0x230]
call fcn.1800b5010
lea rcx, [rbp + 0x230]
mov rdi, rax
call fcn.1800b5000
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rbx
mov rsi, rax
call fcn.1800b6d90
xor r14d, r14d
cmp byte [rbx + 0xb3d], r15b
jne 0x1800d1125
cmp byte [rbx + 0xb24], r14b
mov edx, r14d
mov r9, rsi
mov r8, rdi
setne dl
mov rcx, rbx
add edx, 2
call fcn.1800b6d80
test eax, eax
jne 0x1800d171e
movsxd rax, esi
add qword [rbx + 0x1310], rax
movzx eax, byte [rdi]
cmp al, 0xd
je 0x1800d1362
cmp al, 0xa
je 0x1800d1362
mov r8d, select
lea rcx, str.WWW_Authenticate:
mov rdx, rdi
call fcn.1800a6720
lea r14, [rbx + 0x158]
test eax, eax
je 0x1800d116d
mov esi, dword [r14]
cmp esi, 0x191
je 0x1800d1191
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rdi
call fcn.1800a6720
test eax, eax
je 0x1800d11d3
mov esi, dword [r14]
cmp esi, 0x197
jne 0x1800d11d3
mov rcx, rdi
call fcn.1800c54b0
mov rdi, rax
test rax, rax
je 0x1800d1537
cmp esi, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1800c7450
mov rcx, rdi
mov esi, eax
call qword [fcn.18019d4c0]
test esi, esi
je 0x1800d1351
mov eax, esi
jmp 0x1800d171e
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rdi
call fcn.1800a6720
test eax, eax
je 0x1800d1244
mov r8d, dword [r14]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800d121b
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1800b6fd0
lea rcx, [rbp + 0x230]
call fcn.1800b5020
jmp 0x1800d142e
lea r9, [rbp + 0x280]
xor edx, edx
lea rcx, [rdi + 0xf]
mov r8d, 0xa
call fcn.1800c3330
lea rcx, [rbp + 0x230]
call fcn.1800b5020
jmp 0x1800d142e
lea r8, str.close
mov rcx, rdi
lea rdx, str.Connection:
call fcn.1800c53c0
test al, al
jne 0x1800d134a
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rdi
call fcn.1800a6720
test eax, eax
je 0x1800d12f7
mov r8d, dword [r14]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800d12aa
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1800b6fd0
lea rcx, [rbp + 0x230]
call fcn.1800b5020
jmp 0x1800d142e
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.1800c53c0
test al, al
je 0x1800d1351
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1800b6fd0
mov rcx, rbx
mov byte [rbp + 0x28c], 1
call fcn.1800cddb0
lea rcx, [rbp + 0x230]
call fcn.1800b5020
jmp 0x1800d142e
lea r8, str.close
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.1800c53c0
test al, al
jne 0x1800d134a
mov r9, r14
lea r8, [rsp + 0x30]
lea rdx, str.HTTP_1._d__d
mov rcx, rdi
call fcn.1800a8b10
cmp eax, 2
jne 0x1800d1351
mov eax, dword [rbx + 0x158]
lea rcx, [rbp + 0x230]
mov dword [rbx + 0x12fc], eax
call fcn.1800b5020
jmp 0x1800d142e
mov byte [rbp + 0x28d], 1
lea rcx, [rbp + 0x230]
call fcn.1800b5020
jmp 0x1800d142e
cmp dword [rbx + 0x158], 0x197
jne 0x1800d140d
cmp byte [rbx + 0x12e5], r15b
jne 0x1800d140d
mov r8, qword [rbp + 0x280]
mov dword [rbp + 0x278], 2
test r8, r8
je 0x1800d13a6
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1800b6fd0
jmp 0x1800d1414
cmp byte [rbp + 0x28c], r15b
je 0x1800d140d
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1800b6fd0
lea rax, [rdi + 1]
mov byte [rbx + 0x1c3], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x48]
mov r8d, 1
mov rcx, rbx
cmove rdi, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 1]
call fcn.1800cddd0
cmp eax, 0xffffffff
jne 0x1800d1414
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1800b6fd0
mov dword [r12], 2
mov dword [rbp + 0x278], r14d
cmp dword [rbp + 0x278], r15d
jne 0x1800d143b
cmp qword [rbp + 0x280], r15
jne 0x1800d142e
mov dword [r12], 2
cmp dword [rbp + 0x278], r15d
je 0x1800d0fbd
mov rdi, qword [rsp + 0x40]
jmp 0x1800d0f31
cmp dword [rbx + 0x218], r15d
je 0x1800d1486
cmp dword [rbx + 0xe60], r15d
je 0x1800d1486
cmp qword [rbx + 0x1270], r15
je 0x1800d1486
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r13 + 0x3d0], 1
mov rcx, rbx
call fcn.1800b6fd0
mov dword [rbp + 0x278], 0
jmp 0x1800d0fbd
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r15d, 1
call fcn.1800b6e60
mov dword [rbp + 0x278], 0
jmp 0x1800d0fbd
lea r14, [rbx + 0x198]
cmp qword [r14], 0
mov rsi, r14
mov rax, r14
je 0x1800d15ef
cmp dword [r12], 2
jne 0x1800d1505
mov rax, qword [rbx + 0x18]
mov rdi, qword [rax + 0x7f0]
lea rcx, [rdi + 0x230]
call fcn.1800b5020
xor ecx, ecx
mov dword [rdi + 0x278], 1
mov dword [rdi + 0x288], ecx
lea rax, [rbx + 0x198]
mov qword [rdi + 0x280], rcx
mov byte [rdi + 0x28d], cl
cmp qword [r14], 0
je 0x1800d15ef
mov r14d, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r9d, dword [rsp + 0xd8]
jmp 0x1800d0c20
mov rcx, rsi
call qword [fcn.18019d4c0]
mov eax, 0x1b
jmp 0x1800d171e
mov eax, edi
jmp 0x1800d171e
mov r8, qword [rbx + 0x1a8]
lea rax, [rsp + 0xc0]
mov rdx, qword [r13 + 0x438]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1800b7480
mov r8d, eax
test eax, eax
jne 0x1800d1591
mov r9, qword [rsp + 0xc0]
mov edx, 2
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1800b6d90
mov r8d, eax
mov rcx, qword [rsp + 0xc0]
mov eax, r8d
sub qword [rbp + 0x270], rcx
add qword [rbx + 0x1a8], rcx
jmp 0x1800d171e
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.1800b6e60
mov eax, 0x38
jmp 0x1800d171e
movsxd r8, r14d
mov rdx, r13
mov rcx, rbx
mov r8, qword [r13 + r8*8 + 0x1e8]
call fcn.1800b78a0
movsxd rax, r14d
mov qword [r13 + rax*8 + 0x1e8], 0xffffffffffffffff
jmp 0x1800d1601
mov r14d, dword [rsp + 0xc8]
lea rdi, [rbx + 0x12fc]
mov rsi, rax
mov eax, dword [rdi]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1800d16c4
cmp byte [rbp + 0x28d], 0
je 0x1800d1641
cmp qword [rsi], 0
je 0x1800d1641
lea rdx, str.Connect_me_again_please
mov byte [r13 + 0x3d0], 1
mov rcx, rbx
call fcn.1800b6fd0
mov rcx, rbx
call fcn.1800d19e0
jmp 0x1800d1683
mov rcx, qword [rsi]
call qword [fcn.18019d4c0]
mov edx, 2
mov qword [rsi], 0
mov rcx, r13
call fcn.1800b7a10
movsxd r8, r14d
mov rdx, r13
mov rcx, rbx
mov r8, qword [r13 + r8*8 + 0x1e8]
call fcn.1800b78a0
movsxd rax, r14d
mov qword [r13 + rax*8 + 0x1e8], 0xffffffffffffffff
mov dword [rbp + 0x288], 0
cmp byte [r13 + 0x3d0], 0
jne 0x1800d171c
lea rcx, [rbp + 0x230]
call fcn.1800b4fb0
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1800b6e60
mov eax, 0x38
jmp 0x1800d171e
mov dword [rbp + 0x288], 2
mov rcx, qword [rbx + 0x1270]
call qword [fcn.18019d4c0]
mov qword [rbx + 0x1270], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov r8d, dword [rdi]
mov rcx, rbx
mov word [rbx + 0xe64], 1
call fcn.1800b6fd0
mov byte [rbx + 0x1c3], 0
lea rcx, [rbp + 0x230]
mov byte [r13 + 0x3de], 0
call fcn.1800b4fb0
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x2a
jmp 0x1800d171e
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1800b6e60
mov eax, 0x1c
jmp 0x1800d171e