Function at 0x1401b88b0
Capabilities:
Check http status code

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rbp + 7], rax
and dword [rbp - 1], 0
mov r15d, r9d
mov rbx, qword [rcx + 0x788]
mov r13, r8
mov rsi, qword [rcx]
mov rdi, rcx
movsxd r14, edx
mov dword [rbp - 0x35], r9d
mov qword [rbp - 0x31], r8
mov dword [rbp - 0x39], r14d
mov rax, qword [rcx + r14*8 + 0x240]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x29], r14
test rbx, rbx
je 0x1401b922a
cmp dword [rbx + 0x4024], 2
je 0x1401b922a
mov byte [rcx + 0x3da], 0
cmp dword [rbx + 0x4024], 0
jne 0x1401b8baf
mov rcx, qword [rsi + 0x200]
call qword [fcn.14013ec60]
and qword [rsi + 0x200], 0
call fcn.1401b28c0
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1401b910c
mov r8d, r15d
lea rcx, str._s:_d
mov rdx, r13
call fcn.1401b9610
mov r15, rax
test rax, rax
je 0x1401b9103
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, rdi
call fcn.1401b36a0
mov rcx, r15
mov r14d, eax
call qword [fcn.14013ec60]
xor r15d, r15d
test r14d, r14d
jne 0x1401b8b86
cmp dword [rdi + 0x16c], 1
lea rax, [0x14033a7c4]
lea r14, [0x14033a7c0]
mov r12d, r15d
cmove r14, rax
lea rdx, [0x1403bf740]
mov al, byte [rdi + 0x3ca]
mov qword [rbp - 9], rdx
cmp r13, qword [rdi + 0xd0]
je 0x1401b89f8
lea edx, [r15 + 0x3a]
mov rcx, r13
call fcn.140302900
test rax, rax
lea rdx, [0x1403bf740]
setne al
test al, al
lea rcx, [0x14033a020]
mov eax, dword [rbp - 0x35]
mov r9, rdx
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x14033a024]
mov r8, r13
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1401b9610
mov r15, rax
test rax, rax
je 0x1401b9103
lea rdx, str.Host
mov rcx, rdi
call fcn.1401b2fb0
test rax, rax
jne 0x1401b8a64
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1401b9610
mov r12, rax
test rax, rax
je 0x1401b90fa
lea rdx, str.Proxy_Connection
mov rcx, rdi
call fcn.1401b2fb0
test rax, rax
lea r13, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x1403bf740]
mov rcx, rdi
lea rdx, str.User_Agent
cmovne r13, rax
call fcn.1401b2fb0
test rax, rax
jne 0x1401b8ab0
cmp qword [rsi + 0xd60], rax
je 0x1401b8ab0
mov rax, qword [rdi + 0x450]
mov qword [rbp - 9], rax
mov rax, qword [rdi + 0x448]
lea rdx, [0x1403bf740]
test rax, rax
mov qword [rsp + 0x38], r13
mov rcx, rdx
mov r9, r14
cmovne rcx, rax
mov r8, r15
mov rax, rdx
test r12, r12
mov rdx, qword [rbp - 9]
mov qword [rsp + 0x30], rdx
cmovne rax, r12
mov qword [rsp + 0x28], rcx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.1401b2af0
mov r14d, eax
test r12, r12
je 0x1401b8b11
mov rcx, r12
call qword [fcn.14013ec60]
mov rcx, r15
call qword [fcn.14013ec60]
xor r15d, r15d
test r14d, r14d
jne 0x1401b8b6e
mov r8, qword [rbp - 0x19]
mov dl, 1
mov rcx, rdi
call fcn.1401b2b70
mov r14d, eax
test eax, eax
jne 0x1401b8b6e
lea rdx, [0x1403399c8]
lea rcx, [rbp - 0x19]
call fcn.1401b2af0
mov r14d, eax
test eax, eax
jne 0x1401b8b6e
mov eax, dword [rbp - 0x39]
lea r8, [rsi + 0x15f8]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1401b28d0
mov r14d, eax
mov qword [rbp - 0x19], r15
test r14d, r14d
je 0x1401b8b86
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rsi
call fcn.1401ad6b0
lea rcx, [rbp - 0x19]
call fcn.1401b2880
test r14d, r14d
jne 0x1401b8e03
mov r14d, dword [rbp - 0x39]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r15d
jmp 0x1401b8bb2
xor r15d, r15d
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.1401aeb40
test rax, rax
jle 0x1401b9253
mov edx, r14d
mov rcx, rdi
call fcn.1401ae120
test al, al
je 0x1401b922a
mov r13d, r15d
cmp dword [rbx + 0x4004], r15d
je 0x1401b902a
lea r12, [rbx + 0x4000]
mov r8, qword [rbx + 0x4010]
cmp r8, r12
jae 0x1401b9116
mov rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x11]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1401ad7a0
mov r14d, eax
cmp eax, 0x51
je 0x1401b922a
mov rcx, rdi
call fcn.1401b7990
test eax, eax
jne 0x1401b924c
test r14d, r14d
jne 0x1401b901f
cmp dword [rbp - 0x11], r15d
jle 0x1401b8fef
lea r14d, [rax + 1]
cmp dword [rbx + 0x4004], r14d
jle 0x1401b8cb9
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x1401b8c8e
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x1401b8fe1
mov dword [rbx + 0x4024], 2
jmp 0x1401b901f
lea r9, [rbp - 9]
mov dword [rbp - 9], r15d
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call fcn.1401d59d0
cmp eax, 0xffffffff
jne 0x1401b8fe1
mov dword [rbx + 0x4004], r15d
jmp 0x1401b8fd7
mov ecx, dword [r12]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r12], ecx
cmp byte [rax], 0xa
je 0x1401b8cde
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x1401b8fe1
cmp byte [rsi + 0xc00], r15b
je 0x1401b8cfc
mov r8, qword [rbx + 0x4008]
mov edx, r14d
movsxd r9, ecx
mov rcx, rsi
call fcn.1401ad5e0
cmp byte [rsi + 0xe90], r15b
jne 0x1401b8d2f
mov al, byte [rsi + 0xbf5]
mov rcx, rdi
movsxd r9, dword [r12]
neg al
mov r8, qword [rbx + 0x4008]
sbb edx, edx
neg edx
add edx, 2
call fcn.1401ad5c0
test eax, eax
jne 0x1401b922c
mov eax, dword [r12]
add dword [rsi + 0x15f4], eax
mov eax, dword [r12]
add dword [rsi + 0x130], eax
mov rcx, qword [rbx + 0x4008]
cmp byte [rcx], 0xd
je 0x1401b8f4d
cmp byte [rcx], 0xa
je 0x1401b8f4d
movsxd rax, dword [r12]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], r15b
lea rcx, str.WWW_Authenticate:
mov rdx, qword [rbx + 0x4008]
call fcn.1401afd20
test eax, eax
je 0x1401b8d91
mov r14d, dword [rsi + 0x1a8]
cmp r14d, 0x191
je 0x1401b8dbe
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.1401afd20
test eax, eax
je 0x1401b8e0b
mov r14d, dword [rsi + 0x1a8]
cmp r14d, 0x197
jne 0x1401b8e0b
mov rcx, qword [rbx + 0x4008]
call fcn.1401b3110
mov r15, rax
test rax, rax
je 0x1401b910c
cmp r14d, 0x197
mov r8, rax
mov rcx, rdi
sete dl
call fcn.1401b34d0
mov rcx, r15
mov r14d, eax
call qword [fcn.14013ec60]
xor r15d, r15d
test r14d, r14d
je 0x1401b8f36
mov eax, r14d
jmp 0x1401b922c
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.1401afd20
test eax, eax
je 0x1401b8e5e
mov eax, dword [rsi + 0x1a8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1401b8f36
mov rcx, qword [rbx + 0x4008]
lea r9, [rbx + 0x4018]
xor edx, edx
add rcx, 0xf
lea r8d, [rdx + 0xa]
call fcn.1401bb0d0
jmp 0x1401b8f36
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.1401b3040
test al, al
jne 0x1401b8f2f
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.1401afd20
test eax, eax
je 0x1401b8ee0
mov eax, dword [rsi + 0x1a8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1401b8f36
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.1401b3040
test al, al
je 0x1401b8f36
mov rcx, rdi
mov byte [rbx + 0x4020], 1
call fcn.1401d59c0
jmp 0x1401b8f36
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.1401b3040
test al, al
jne 0x1401b8f2f
mov rcx, qword [rbx + 0x4008]
lea r14, [rsi + 0x1a8]
mov r9, r14
lea r8, [rbp - 1]
lea rdx, str.HTTP_1._d__d
call fcn.1401a2eb0
cmp eax, 2
jne 0x1401b8f36
mov eax, dword [r14]
mov dword [rsi + 0x15dc], eax
jmp 0x1401b8f36
mov byte [rbx + 0x4028], 1
mov dword [r12], r15d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x1401b8fe1
mov qword [rbx + 0x4010], rbx
cmp dword [rsi + 0x1a8], 0x197
jne 0x1401b8fc7
cmp byte [rsi + 0x1258], r15b
jne 0x1401b8fc7
mov dword [rbx + 0x4004], 2
cmp qword [rbx + 0x4018], r15
jne 0x1401b8fe1
cmp byte [rbx + 0x4020], r15b
je 0x1401b8fc7
mov byte [rsi + 0x1f5], r14b
mov rdx, qword [rbx + 0x4008]
lea rax, [rdx + 1]
cmp byte [rax], 0xa
jne 0x1401b8fa6
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rbp - 0x11]
mov r8d, r14d
mov rcx, rdi
call fcn.1401d59d0
cmp eax, 0xffffffff
jne 0x1401b8fce
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r15d
cmp qword [rbx + 0x4018], r15
jne 0x1401b8fe1
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], r15d
je 0x1401b9026
jmp 0x1401b8bf2
cmp dword [rsi + 0x6e0], r15d
je 0x1401b900a
cmp dword [rsi + 0x1250], r15d
je 0x1401b900a
mov byte [rdi + 0x3da], 1
jmp 0x1401b901f
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rsi
mov r13d, 1
call fcn.1401ad6b0
mov dword [rbx + 0x4004], r15d
mov r14d, dword [rbp - 0x39]
mov rcx, rdi
call fcn.1401b7990
test eax, eax
jne 0x1401b924c
test r13d, r13d
jne 0x1401b9125
mov eax, dword [rsi + 0x15dc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1401b9073
mov rcx, rdi
call fcn.1401b31f0
test eax, eax
jne 0x1401b922c
cmp byte [rdi + 0x3c1], r15b
je 0x1401b9073
mov byte [rbx + 0x4028], 1
cmp byte [rbx + 0x4028], r15b
je 0x1401b9089
cmp qword [rsi + 0x200], r15
jne 0x1401b912f
mov rax, qword [rsi + 0x200]
test rax, rax
je 0x1401b914e
cmp dword [rbx + 0x4024], 2
mov r13, qword [rbp - 0x31]
mov r15d, dword [rbp - 0x35]
jne 0x1401b892a
mov rax, qword [rdi + 0x788]
xor r15d, r15d
mov dword [rax + 0x4024], r15d
mov dword [rax + 0x4004], 1
mov qword [rax + 0x4008], rax
mov qword [rax + 0x4010], rax
mov qword [rax + 0x4018], r15
mov byte [rax + 0x4028], r15b
mov rax, qword [rsi + 0x200]
test rax, rax
je 0x1401b914e
mov r15d, dword [rbp - 0x35]
jmp 0x1401b892a
mov rcx, r15
call qword [fcn.14013ec60]
lea rcx, [rbp - 0x19]
call fcn.1401b2880
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401b922c
lea rdx, str.CONNECT_response_too_large_
mov rcx, rsi
call fcn.1401ad6b0
mov eax, gethostname
jmp 0x1401b922c
mov r14, qword [rbp - 0x29]
mov rcx, rdi
mov rdx, qword [rdi + r14*8 + 0x240]
call fcn.1401ae0a0
or qword [rdi + r14*8 + 0x240], 0xffffffffffffffff
jmp 0x1401b9152
mov r14, qword [rbp - 0x29]
mov eax, dword [rsi + 0x15dc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1401b91f7
cmp byte [rbx + 0x4028], r15b
je 0x1401b9192
cmp qword [rsi + 0x200], r15
je 0x1401b9192
mov rax, qword [rdi + 0x788]
mov byte [rdi + 0x3da], 1
mov dword [rax + 0x4024], 2
jmp 0x1401b91cc
mov rcx, qword [rsi + 0x200]
call qword [fcn.14013ec60]
mov edx, 2
mov qword [rsi + 0x200], r15
mov rcx, rdi
call fcn.1401ae1f0
mov rdx, qword [rdi + r14*8 + 0x240]
mov rcx, rdi
call fcn.1401ae0a0
or qword [rdi + r14*8 + 0x240], 0xffffffffffffffff
mov dword [rbx + 0x4024], r15d
cmp byte [rdi + 0x3da], r15b
jne 0x1401b922a
mov r8d, dword [rsi + 0x1a8]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rsi
call fcn.1401ad6b0
jmp 0x1401b9125
mov dword [rbx + 0x4024], 2
mov rcx, qword [rdi + 0x448]
call qword [fcn.14013ec60]
mov qword [rdi + 0x448], r15
mov byte [rsi + 0x1254], 1
mov byte [rsi + 0x1f5], r15b
mov byte [rdi + 0x3d3], r15b
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, Ordinal_46
jmp 0x1401b922c
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rsi
call fcn.1401ad6b0
mov eax, Ordinal_32
jmp 0x1401b922c