Function at 0x14005d7d0
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, 0xa8
mov rsi, qword [rcx + 0xb68]
mov rdi, qword [rcx]
movsxd r12, edx
mov rbx, qword [rcx + r12*8 + 0x4c0]
xor r14d, r14d
mov r13d, r9d
mov rbp, r8
mov r15, rcx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r14d
test rsi, rsi
je 0x14005e24d
cmp dword [rsi + 0x30], 2
je 0x14005e24d
mov dword [rcx + 0x680], r14d
nop dword [rax + rax]
cmp dword [rsi + 0x30], 0
jne 0x14005dadf
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r13d
mov r8, rbp
mov rcx, rdi
call fcn.140037d10
mov rcx, qword [rdi + 0x190]
call qword [fcn.14006d598]
lea rcx, str._s:_d
mov r8d, r13d
mov rdx, rbp
mov qword [rdi + 0x190], r14
call fcn.140054860
mov rbp, rax
test rax, rax
je 0x14005e0bd
lea rcx, [rsp + 0x78]
mov edx, 0x20000
call fcn.140038830
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rbp
mov rcx, r15
call fcn.14004d840
mov rcx, rbp
mov ebx, eax
call qword [fcn.14006d598]
test ebx, ebx
jne 0x14005dac1
cmp dword [r15 + 0x3dc], 1
mov rbx, qword [rsp + 0x100]
mov ecx, dword [r15 + 0x6a0]
mov r12, r14
lea rax, [0x1400a6ec0]
lea r14, [0x1400962d8]
lea rbp, [0x14009f1d2]
cmove r14, rax
mov r13, rbp
cmp rbx, qword [r15 + 0x340]
je 0x14005d91f
mov edx, Ordinal_60
mov rcx, rbx
call fcn.140071c20
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x14008fd1c]
mov r9, rbp
cmovne r9, rax
lea rax, [0x14008fd18]
test ecx, ecx
mov rdx, rbp
lea rcx, str._s_s_s:_d
mov r8, rbx
cmovne rdx, rax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x20], eax
call fcn.140054860
mov rbp, rax
test rax, rax
je 0x14005e0b3
lea rdx, str.Host
mov rcx, r15
call fcn.14004d110
test rax, rax
jne 0x14005d994
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.140054860
mov r12, rax
test rax, rax
je 0x14005e0aa
lea rdx, str.Proxy_Connection
mov rcx, r15
call fcn.14004d110
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent
test rax, rax
lea rax, [0x14009f1d2]
mov rcx, r15
cmovne rbx, rax
call fcn.14004d110
test rax, rax
jne 0x14005d9dc
cmp qword [rdi + 0xd78], rax
je 0x14005d9dc
mov r13, qword [rdi + 0x17a0]
mov rax, qword [rdi + 0x1798]
lea rdx, [0x14009f1d2]
mov qword [rsp + 0x38], rbx
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r13
cmovne rcx, rax
mov rax, rdx
test r12, r12
mov qword [rsp + 0x28], rcx
cmovne rax, r12
lea rcx, [rsp + 0x78]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r14
mov r8, rbp
mov qword [rsp + 0x20], rax
call fcn.1400389d0
mov ebx, eax
test r12, r12
je 0x14005da39
mov rcx, r12
call qword [fcn.14006d598]
mov rcx, rbp
call qword [fcn.14006d598]
test ebx, ebx
jne 0x14005da9f
lea r8, [rsp + 0x78]
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14004e590
mov ebx, eax
test eax, eax
jne 0x14005da9f
lea rdx, [0x1400900f0]
lea rcx, [rsp + 0x78]
call fcn.1400389a0
mov r12d, dword [rsp + 0xf8]
mov ebx, eax
test eax, eax
jne 0x14005daa7
lea r8, [rdi + 0x1898]
lea rcx, [rsp + 0x78]
xor r9d, r9d
mov rdx, r15
mov dword [rsp + 0x20], r12d
call fcn.14004ddf0
mov ebx, eax
test eax, eax
je 0x14005dab6
jmp 0x14005daa7
mov r12d, dword [rsp + 0xf8]
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.140037e70
mov r13d, dword [rsp + 0x108]
xor r14d, r14d
lea rcx, [rsp + 0x78]
call fcn.140038850
test ebx, ebx
jne 0x14005e0c7
mov rbx, qword [rsp + 0x40]
mov dword [rsi + 0x30], 1
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.140038e30
test rax, rax
jle 0x14005e263
mov edx, r12d
mov rcx, r15
call fcn.140039ed0
test eax, eax
je 0x14005e24d
cmp dword [rsi + 0x20], 0
mov r12d, r14d
je 0x14005dfe5
nop word [rax + rax]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0xf0]
mov r9d, 1
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140037bc0
mov ebx, eax
cmp eax, 0x51
je 0x14005e24d
mov rcx, r15
call fcn.140056760
test eax, eax
jne 0x14005e0e7
test ebx, ebx
jne 0x14005dfe1
cmp qword [rsp + 0x50], 0
jle 0x14005df9e
cmp dword [rsi + 0x20], 1
jle 0x14005dbe8
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14005db9d
dec rax
mov qword [rsi + 0x28], rax
test rax, rax
jg 0x14005df8e
mov dword [rsi + 0x30], 2
jmp 0x14005dfe1
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0xf0]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], rax
call fcn.14005cd50
cmp eax, 0xffffffff
jne 0x14005df8e
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140037d10
mov dword [rsi + 0x20], r14d
jmp 0x14005df87
lea rdx, [rsp + 0xf0]
mov r8d, 1
mov rcx, rsi
call fcn.140038990
test eax, eax
jne 0x14005e0ce
cmp byte [rsp + 0xf0], 0xa
jne 0x14005df8e
mov rcx, rsi
call fcn.140038a60
mov rcx, rsi
mov rbx, rax
call fcn.140038a70
cmp dword [rdi + 0x1018], 0
mov rbp, rax
je 0x14005dc46
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.140037c50
cmp dword [rdi + 0x1068], 0
jne 0x14005dc79
cmp dword [rdi + 0x1004], 0
mov edx, 2
mov eax, 3
mov r9, rbp
mov r8, rbx
mov rcx, r15
cmovne edx, eax
call fcn.1400383f0
test eax, eax
jne 0x14005e24f
movsxd rax, ebp
add qword [rdi + 0x1890], rax
add qword [rdi + 0x108], rax
movzx eax, byte [rbx]
cmp al, 0xd
je 0x14005ded8
cmp al, 0xa
je 0x14005ded8
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rbx
call fcn.140033f00
test eax, eax
je 0x14005dcc3
mov eax, dword [rdi + 0x150]
cmp eax, 0x191
je 0x14005dce9
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rbx
call fcn.140033f00
test eax, eax
je 0x14005dd30
mov eax, dword [rdi + 0x150]
cmp eax, 0x197
jne 0x14005dd30
cmp eax, 0x197
mov rcx, rbx
mov ebp, r14d
sete bpl
call fcn.14004d1a0
mov rbx, rax
test rax, rax
je 0x14005e0bd
mov r8, rax
mov edx, ebp
mov rcx, r15
call fcn.14004d990
mov rcx, rbx
mov ebp, eax
call qword [fcn.14006d598]
test ebp, ebp
je 0x14005decb
mov eax, ebp
jmp 0x14005e24f
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rbx
call fcn.140033f00
test eax, eax
je 0x14005dda3
mov r8d, dword [rdi + 0x150]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14005dd83
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140037d10
mov rcx, rsi
call fcn.140038970
jmp 0x14005df8e
xor edx, edx
lea r9, [rsi + 0x28]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14005c540
mov rcx, rsi
call fcn.140038970
jmp 0x14005df8e
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rbx
call fcn.14004e060
test eax, eax
je 0x14005ddd1
mov rcx, rsi
mov dword [rsi + 0x38], 1
call fcn.140038970
jmp 0x14005df8e
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rdx, rbx
call fcn.140033f00
test eax, eax
je 0x14005de71
mov r8d, dword [rdi + 0x150]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x14005de28
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.140037d10
mov rcx, rsi
call fcn.140038970
jmp 0x14005df8e
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.14004e060
test eax, eax
je 0x14005decb
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.140037d10
mov rcx, r15
mov dword [rsi + 0x34], 1
call fcn.14005cd20
mov rcx, rsi
call fcn.140038970
jmp 0x14005df8e
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.14004e060
test eax, eax
je 0x14005de9f
mov rcx, rsi
mov dword [rsi + 0x38], 1
call fcn.140038970
jmp 0x14005df8e
lea r9, [rdi + 0x150]
lea r8, [rsp + 0x48]
lea rdx, str.HTTP_1._d__d
mov rcx, rbx
call fcn.14006fb8c
cmp eax, 2
jne 0x14005decb
mov eax, dword [rdi + 0x150]
mov dword [rdi + 0x187c], eax
mov rcx, rsi
call fcn.140038970
jmp 0x14005df8e
cmp dword [rdi + 0x150], 0x197
jne 0x14005df7c
cmp dword [rdi + 0x17fc], 0
jne 0x14005df7c
mov r8, qword [rsi + 0x28]
mov dword [rsi + 0x20], 2
test r8, r8
je 0x14005df16
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.140037d10
jmp 0x14005df80
cmp dword [rsi + 0x34], 0
je 0x14005df7c
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.140037d10
lea rax, [rbx + 1]
mov dword [rdi + 0x64c], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x50]
mov r8d, 1
cmove rbx, rax
lea rax, [rsp + 0x60]
mov rcx, r15
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rax
call fcn.14005cd50
cmp eax, 0xffffffff
jne 0x14005df80
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.140037d10
mov dword [rsi + 0x30], 2
mov dword [rsi + 0x20], r14d
cmp qword [rsi + 0x28], 0
jne 0x14005df8e
mov dword [rsi + 0x30], 2
cmp dword [rsi + 0x20], 0
je 0x14005dfe5
mov rbx, qword [rsp + 0x40]
jmp 0x14005db20
cmp dword [rdi + 0x6b0], 0
je 0x14005dfcc
cmp dword [rdi + 0x13c8], 0
je 0x14005dfcc
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rdi
mov dword [r15 + 0x680], 1
call fcn.140037d10
jmp 0x14005dfe1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.140037e70
mov dword [rsi + 0x20], r14d
mov rcx, r15
call fcn.140056760
test eax, eax
jne 0x14005e0e7
test r12d, r12d
jne 0x14005e0dd
mov eax, 0x51eb851f
imul dword [rdi + 0x187c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14005e038
mov rcx, r15
call fcn.1400503d0
test eax, eax
jne 0x14005e24f
cmp dword [r15 + 0x684], eax
je 0x14005e038
mov dword [rsi + 0x38], 1
cmp dword [rsi + 0x38], 0
je 0x14005e04c
cmp qword [rdi + 0x190], 0
jne 0x14005e0f1
cmp qword [rdi + 0x190], 0
je 0x14005e114
cmp dword [rsi + 0x30], 2
jne 0x14005e082
mov rbx, qword [r15 + 0xb68]
mov rcx, rbx
call fcn.140038970
mov dword [rbx + 0x30], r14d
mov dword [rbx + 0x20], 1
mov qword [rbx + 0x28], r14
mov dword [rbx + 0x38], r14d
cmp qword [rdi + 0x190], 0
je 0x14005e114
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x100]
mov r12d, dword [rsp + 0xf8]
jmp 0x14005d840
mov rcx, rbp
call qword [fcn.14006d598]
lea rcx, [rsp + 0x78]
call fcn.140038850
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14005e24f
mov eax, ebx
jmp 0x14005e24f
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.140037e70
mov eax, gethostname
jmp 0x14005e24f
mov eax, Ordinal_45
jmp 0x14005e24f
mov rbx, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [r15 + rbx*8 + 0x4c0]
call fcn.140039cc0
mov qword [r15 + rbx*8 + 0x4c0], 0xffffffffffffffff
jmp 0x14005e119
mov rbx, qword [rsp + 0x58]
mov eax, 0x51eb851f
imul dword [rdi + 0x187c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14005e1f5
cmp dword [rsi + 0x38], 0
je 0x14005e185
cmp qword [rdi + 0x190], 0
je 0x14005e185
lea rdx, str.Connect_me_again_please_n
mov rcx, rdi
mov dword [r15 + 0x680], 1
call fcn.140037d10
mov rcx, qword [r15 + 0xb68]
mov dword [rcx + 0x30], 2
call fcn.140038850
mov rcx, qword [r15]
lea rdx, str.CONNECT_phase_completed__n
call fcn.140037d10
jmp 0x14005e1c2
mov rcx, qword [rdi + 0x190]
call qword [fcn.14006d598]
mov edx, 2
mov rcx, r15
mov qword [rdi + 0x190], r14
call fcn.140039e80
mov rdx, qword [r15 + rbx*8 + 0x4c0]
mov rcx, r15
call fcn.140039cc0
mov qword [r15 + rbx*8 + 0x4c0], 0xffffffffffffffff
mov dword [rsi + 0x30], r14d
cmp dword [r15 + 0x680], 0
jne 0x14005e24d
mov rcx, rsi
call fcn.140038850
mov r8d, dword [rdi + 0x150]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.140037e70
mov eax, gethostname
jmp 0x14005e24f
mov dword [rsi + 0x30], 2
mov rcx, qword [rdi + 0x1798]
call qword [fcn.14006d598]
mov r8d, dword [rdi + 0x187c]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, rdi
mov qword [rdi + 0x1798], r14
mov dword [rdi + 0x13cc], 1
mov dword [rdi + 0x13d0], r14d
call fcn.140037d10
mov dword [rdi + 0x64c], r14d
mov rcx, rsi
mov dword [r15 + 0x6b8], r14d
call fcn.140038850
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.140037e70
mov eax, Ordinal_30
jmp 0x14005e24f