Function at 0x18009f840
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, r8
lea rsi, [rdx + 0x148]
mov rbx, rdx
mov r8d, setsockopt
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.180080030
test eax, eax
je 0x18009f88c
mov ebp, dword [rsi]
cmp ebp, 0x191
je 0x18009f8af
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.180080030
test eax, eax
je 0x18009f8f5
mov ebp, dword [rsi]
cmp ebp, 0x197
jne 0x18009f8f5
mov rcx, rdi
call fcn.180085198
mov rdi, rax
test rax, rax
jne 0x18009f8c7
lea eax, [rdi + 0x1b]
jmp 0x18009fab3
cmp ebp, 0x197
mov r8, rdi
mov rcx, rbx
sete dl
call fcn.180086c28
mov rcx, rdi
mov ebx, eax
call qword [fcn.1800a348e]
test ebx, ebx
je 0x18009fab1
mov eax, ebx
jmp 0x18009fab3
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.180080030
test eax, eax
je 0x18009f958
mov r8d, dword [rsi]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18009f931
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.18007c40c
jmp 0x18009fab1
lea rcx, str.Content_Length:
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor edx, edx
lea r9, [r14 + 0x2a8]
lea rcx, [rdi + rax]
lea r8d, [rdx + 0xa]
call fcn.18008c320
jmp 0x18009fab1
mov ebp, 5
lea r9, str.close
lea rdx, str.Connection:
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea r8d, [rbp + 6]
call fcn.1800850e8
test al, al
jne 0x18009faa9
lea r8d, [rbp + 0xd]
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.180080030
test eax, eax
je 0x18009fa07
mov r8d, dword [rsi]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18009f9b6
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x18009f924
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.1800850e8
test al, al
je 0x18009fab1
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.18007c40c
mov rcx, rbx
mov byte [r14 + 0x2b4], 1
call fcn.180098efc
jmp 0x18009fab1
lea r9, str.close
mov qword [rsp + 0x20], rbp
mov r8d, setsockopt
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.1800850e8
test al, al
jne 0x18009faa9
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18009fab1
mov al, byte [rdi + 7]
mov cl, 0x30
sub al, cl
cmp al, 1
ja 0x18009fab1
cmp byte [rdi + 8], 0x20
jne 0x18009fab1
mov al, byte [rdi + 9]
mov dl, 9
sub al, cl
cmp al, dl
ja 0x18009fab1
mov al, byte [rdi + 0xa]
sub al, cl
cmp al, dl
ja 0x18009fab1
mov al, byte [rdi + 0xb]
sub al, cl
cmp al, dl
ja 0x18009fab1
mov al, byte [rdi + 0xc]
sub al, cl
cmp al, dl
jbe 0x18009fab1
movsx eax, byte [rdi + 9]
lea ecx, [rax + rax*4]
movsx eax, byte [rdi + 0xa]
lea ecx, [rax + rcx*2]
movsx eax, byte [rdi + 0xb]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [rax + rcx*2]
mov dword [rbx + 0x148], ecx
mov dword [rbx + 0x12ac], ecx
jmp 0x18009fab1
mov byte [r14 + 0x2b5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret