Function at 0x140459a70
Capabilities:
Check http status code

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
lea rdx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, r9
call fcn.1404534d0
test eax, eax
je 0x140459aaf
cmp dword [rsi + 0x148], 0x191
jne 0x140459aaf
xor ebp, ebp
jmp 0x140459ad7
lea rdx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rcx, rdi
call fcn.1404534d0
test eax, eax
je 0x140459b3c
mov bpl, 1
cmp dword [rsi + 0x148], 0x197
jne 0x140459b3c
mov rcx, rdi
call fcn.1404683b0
test rax, rax
je 0x140459b82
mov rbx, rax
test r14, r14
je 0x140459b17
cmp byte [rsi + 0xaaf], 0
je 0x140459b17
mov rax, qword [r14]
cmp dword [rax + 0xc], 0
jle 0x140459b17
lea r8, str.CONNECT:_fwd_auth_header__s
mov rcx, rsi
mov rdx, r14
mov r9, rdi
call fcn.14043ce10
mov rcx, rsi
mov edx, ebp
mov r8, rbx
call fcn.140468d40
mov esi, eax
mov rcx, rbx
call qword [fcn.1404ba1dc]
test esi, esi
jne 0x140459bdb
jmp 0x140459bd9
lea rdx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rdi
call fcn.1404534d0
test eax, eax
je 0x140459b89
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x140459bbb
cmp byte [rsi + 0xaaf], 0
je 0x140459bd9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.14043cd70
jmp 0x140459bd9
mov esi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140459bdb
mov qword [rsp + 0x20], 5
lea rdx, [0x1404f6934]
lea r9, [0x1404f2ac6]
mov r8d, ntohs
mov rcx, rdi
call fcn.140469400
test al, al
je 0x140459be8
mov byte [rbx + 0xed], 1
jmp 0x140459bd9
add rbx, 0xe0
add rdi, 0xf
mov rcx, rdi
xor edx, edx
mov r8d, 0xa
mov r9, rbx
call fcn.140487eb0
xor esi, esi
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rdx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.1404534d0
test eax, eax
je 0x140459c2d
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x140459cf5
cmp byte [rsi + 0xaaf], 0
je 0x140459bd9
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x140459b78
mov qword [rsp + 0x20], 5
lea rdx, str.Proxy_Connection:
lea r9, [0x1404f2ac6]
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, rdi
call fcn.140469400
test al, al
jne 0x140459bb2
lea rdx, str.HTTP_1.
mov r8d, 7
mov rcx, rdi
call fcn.1404bc100
test eax, eax
jne 0x140459bd9
movzx eax, byte [rdi + 7]
and al, 0xfe
cmp al, 0x30
jne 0x140459bd9
cmp byte [rdi + 8], 0x20
jne 0x140459bd9
movzx eax, byte [rdi + 9]
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x140459bd9
movzx ecx, byte [rdi + 0xa]
lea edx, [rcx - 0x30]
cmp dl, 9
ja 0x140459bd9
movzx edx, byte [rdi + 0xb]
lea r8d, [rdx - 0x30]
cmp r8b, 9
ja 0x140459bd9
movzx r8d, byte [rdi + 0xc]
add r8b, 0xd0
cmp r8b, 0xa
jb 0x140459bd9
imul eax, eax, 0x64
lea ecx, [rcx + rcx*4]
lea eax, [rax + rcx*2]
add eax, edx
add eax, 0xffffeb30
mov dword [rsi + 0x148], eax
mov dword [rsi + 0x138c], eax
jmp 0x140459bd9
mov qword [rsp + 0x20], 7
lea rdx, str.Transfer_Encoding:
lea r9, [0x1404f42b6]
mov r8d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.140469400
test al, al
je 0x140459bd9
cmp byte [rsi + 0xaaf], 0
je 0x140459d3a
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.14043cd70
mov byte [rbx + 0xec], 1
mov rcx, rsi
call fcn.140489580
jmp 0x140459bd9