Function at 0x140088a94
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 [0x1402b1510]
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 0x14008940e
cmp dword [rbx + 0x4024], 2
je 0x14008940e
mov byte [rcx + 0x3da], 0
cmp dword [rbx + 0x4024], 0
jne 0x140088d93
mov rcx, qword [rsi + 0x200]
call qword [fcn.1401d7128]
and qword [rsi + 0x200], 0
call fcn.140082c6c
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400892f0
mov r8d, r15d
lea rcx, str._s:_d
mov rdx, r13
call fcn.1400897c0
mov r15, rax
test rax, rax
je 0x1400892e7
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, rdi
call fcn.140083a24
mov rcx, r15
mov r14d, eax
call qword [fcn.1401d7128]
xor r15d, r15d
test r14d, r14d
jne 0x140088d6a
cmp dword [rdi + 0x16c], 1
lea rax, [0x140203f24]
lea r14, [0x140203f20]
mov r12d, r15d
cmove r14, rax
lea rdx, [0x140291023]
mov al, byte [rdi + 0x3ca]
mov qword [rbp - 9], rdx
cmp r13, qword [rdi + 0xd0]
je 0x140088bdc
lea edx, [r15 + 0x3a]
mov rcx, r13
call fcn.1401d2fe0
test rax, rax
lea rdx, [0x140291023]
setne al
test al, al
lea rcx, [0x140203780]
mov eax, dword [rbp - 0x35]
mov r9, rdx
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x140203784]
mov r8, r13
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400897c0
mov r15, rax
test rax, rax
je 0x1400892e7
lea rdx, str.Host
mov rcx, rdi
call fcn.140083354
test rax, rax
jne 0x140088c48
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400897c0
mov r12, rax
test rax, rax
je 0x1400892de
lea rdx, str.Proxy_Connection
mov rcx, rdi
call fcn.140083354
test rax, rax
lea r13, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x140291023]
mov rcx, rdi
lea rdx, str.User_Agent
cmovne r13, rax
call fcn.140083354
test rax, rax
jne 0x140088c94
cmp qword [rsi + 0xd60], rax
je 0x140088c94
mov rax, qword [rdi + 0x450]
mov qword [rbp - 9], rax
mov rax, qword [rdi + 0x448]
lea rdx, [0x140291023]
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.140082e9c
mov r14d, eax
test r12, r12
je 0x140088cf5
mov rcx, r12
call qword [fcn.1401d7128]
mov rcx, r15
call qword [fcn.1401d7128]
xor r15d, r15d
test r14d, r14d
jne 0x140088d52
mov r8, qword [rbp - 0x19]
mov dl, 1
mov rcx, rdi
call fcn.140082f1c
mov r14d, eax
test eax, eax
jne 0x140088d52
lea rdx, [0x140203128]
lea rcx, [rbp - 0x19]
call fcn.140082e9c
mov r14d, eax
test eax, eax
jne 0x140088d52
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.140082c7c
mov r14d, eax
mov qword [rbp - 0x19], r15
test r14d, r14d
je 0x140088d6a
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rsi
call fcn.14007dc94
lea rcx, [rbp - 0x19]
call fcn.140082c34
test r14d, r14d
jne 0x140088fe7
mov r14d, dword [rbp - 0x39]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r15d
jmp 0x140088d96
xor r15d, r15d
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.14007f0ac
test rax, rax
jle 0x140089437
mov edx, r14d
mov rcx, rdi
call fcn.14007e6bc
test al, al
je 0x14008940e
mov r13d, r15d
cmp dword [rbx + 0x4004], r15d
je 0x14008920e
lea r12, [rbx + 0x4000]
mov r8, qword [rbx + 0x4010]
cmp r8, r12
jae 0x1400892fa
mov rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x11]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.14007dd84
mov r14d, eax
cmp eax, 0x51
je 0x14008940e
mov rcx, rdi
call fcn.140087bd4
test eax, eax
jne 0x140089430
test r14d, r14d
jne 0x140089203
cmp dword [rbp - 0x11], r15d
jle 0x1400891d3
lea r14d, [rax + 1]
cmp dword [rbx + 0x4004], r14d
jle 0x140088e9d
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x140088e72
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x1400891c5
mov dword [rbx + 0x4024], 2
jmp 0x140089203
lea r9, [rbp - 9]
mov dword [rbp - 9], r15d
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call fcn.1400a53f0
cmp eax, 0xffffffff
jne 0x1400891c5
mov dword [rbx + 0x4004], r15d
jmp 0x1400891bb
mov ecx, dword [r12]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r12], ecx
cmp byte [rax], 0xa
je 0x140088ec2
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x1400891c5
cmp byte [rsi + 0xc00], r15b
je 0x140088ee0
mov r8, qword [rbx + 0x4008]
mov edx, r14d
movsxd r9, ecx
mov rcx, rsi
call fcn.14007dbc8
cmp byte [rsi + 0xe90], r15b
jne 0x140088f13
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.14007dbb0
test eax, eax
jne 0x140089410
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 0x140089131
cmp byte [rcx], 0xa
je 0x140089131
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.1400801c4
test eax, eax
je 0x140088f75
mov r14d, dword [rsi + 0x1a8]
cmp r14d, 0x191
je 0x140088fa2
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.1400801c4
test eax, eax
je 0x140088fef
mov r14d, dword [rsi + 0x1a8]
cmp r14d, 0x197
jne 0x140088fef
mov rcx, qword [rbx + 0x4008]
call fcn.1400834a4
mov r15, rax
test rax, rax
je 0x1400892f0
cmp r14d, 0x197
mov r8, rax
mov rcx, rdi
sete dl
call fcn.140083858
mov rcx, r15
mov r14d, eax
call qword [fcn.1401d7128]
xor r15d, r15d
test r14d, r14d
je 0x14008911a
mov eax, r14d
jmp 0x140089410
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.1400801c4
test eax, eax
je 0x140089042
mov eax, dword [rsi + 0x1a8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14008911a
mov rcx, qword [rbx + 0x4008]
lea r9, [rbx + 0x4018]
xor edx, edx
add rcx, 0xf
lea r8d, [rdx + 0xa]
call fcn.14008b23c
jmp 0x14008911a
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.1400833d8
test al, al
jne 0x140089113
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.1400801c4
test eax, eax
je 0x1400890c4
mov eax, dword [rsi + 0x1a8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14008911a
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.1400833d8
test al, al
je 0x14008911a
mov rcx, rdi
mov byte [rbx + 0x4020], 1
call fcn.1400a53e4
jmp 0x14008911a
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.1400833d8
test al, al
jne 0x140089113
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.140073924
cmp eax, 2
jne 0x14008911a
mov eax, dword [r14]
mov dword [rsi + 0x15dc], eax
jmp 0x14008911a
mov byte [rbx + 0x4028], 1
mov dword [r12], r15d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x1400891c5
mov qword [rbx + 0x4010], rbx
cmp dword [rsi + 0x1a8], 0x197
jne 0x1400891ab
cmp byte [rsi + 0x1258], r15b
jne 0x1400891ab
mov dword [rbx + 0x4004], 2
cmp qword [rbx + 0x4018], r15
jne 0x1400891c5
cmp byte [rbx + 0x4020], r15b
je 0x1400891ab
mov byte [rsi + 0x1f5], r14b
mov rdx, qword [rbx + 0x4008]
lea rax, [rdx + 1]
cmp byte [rax], 0xa
jne 0x14008918a
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rbp - 0x11]
mov r8d, r14d
mov rcx, rdi
call fcn.1400a53f0
cmp eax, 0xffffffff
jne 0x1400891b2
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r15d
cmp qword [rbx + 0x4018], r15
jne 0x1400891c5
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], r15d
je 0x14008920a
jmp 0x140088dd6
cmp dword [rsi + 0x6e0], r15d
je 0x1400891ee
cmp dword [rsi + 0x1250], r15d
je 0x1400891ee
mov byte [rdi + 0x3da], 1
jmp 0x140089203
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rsi
mov r13d, 1
call fcn.14007dc94
mov dword [rbx + 0x4004], r15d
mov r14d, dword [rbp - 0x39]
mov rcx, rdi
call fcn.140087bd4
test eax, eax
jne 0x140089430
test r13d, r13d
jne 0x140089309
mov eax, dword [rsi + 0x15dc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140089257
mov rcx, rdi
call fcn.140083580
test eax, eax
jne 0x140089410
cmp byte [rdi + 0x3c1], r15b
je 0x140089257
mov byte [rbx + 0x4028], 1
cmp byte [rbx + 0x4028], r15b
je 0x14008926d
cmp qword [rsi + 0x200], r15
jne 0x140089313
mov rax, qword [rsi + 0x200]
test rax, rax
je 0x140089332
cmp dword [rbx + 0x4024], 2
mov r13, qword [rbp - 0x31]
mov r15d, dword [rbp - 0x35]
jne 0x140088b0e
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 0x140089332
mov r15d, dword [rbp - 0x35]
jmp 0x140088b0e
mov rcx, r15
call qword [fcn.1401d7128]
lea rcx, [rbp - 0x19]
call fcn.140082c34
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140089410
lea rdx, str.CONNECT_response_too_large_
mov rcx, rsi
call fcn.14007dc94
mov eax, gethostname
jmp 0x140089410
mov r14, qword [rbp - 0x29]
mov rcx, rdi
mov rdx, qword [rdi + r14*8 + 0x240]
call fcn.14007e63c
or qword [rdi + r14*8 + 0x240], 0xffffffffffffffff
jmp 0x140089336
mov r14, qword [rbp - 0x29]
mov eax, dword [rsi + 0x15dc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400893db
cmp byte [rbx + 0x4028], r15b
je 0x140089376
cmp qword [rsi + 0x200], r15
je 0x140089376
mov rax, qword [rdi + 0x788]
mov byte [rdi + 0x3da], 1
mov dword [rax + 0x4024], 2
jmp 0x1400893b0
mov rcx, qword [rsi + 0x200]
call qword [fcn.1401d7128]
mov edx, 2
mov qword [rsi + 0x200], r15
mov rcx, rdi
call fcn.14007e780
mov rdx, qword [rdi + r14*8 + 0x240]
mov rcx, rdi
call fcn.14007e63c
or qword [rdi + r14*8 + 0x240], 0xffffffffffffffff
mov dword [rbx + 0x4024], r15d
cmp byte [rdi + 0x3da], r15b
jne 0x14008940e
mov r8d, dword [rsi + 0x1a8]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rsi
call fcn.14007dc94
jmp 0x140089309
mov dword [rbx + 0x4024], 2
mov rcx, qword [rdi + 0x448]
call qword [fcn.1401d7128]
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.1401d08c0
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 0x140089410
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rsi
call fcn.14007dc94
mov eax, Ordinal_30
jmp 0x140089410