Function at 0x14004e2f0
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 r15, qword [rcx]
mov r12, rcx
movsxd rax, edx
mov rdi, qword [r12 + rax*8 + 0x1d0]
add rcx, 0x1d0
xor r13d, r13d
lea rcx, [rcx + rax*8]
xor bl, bl
lea r14, [r12 + 0x810]
lea r14, [r14 + rax*4]
mov qword [rsp + 0x90], rcx
xor cl, cl
cmp dword [r14], 2
mov esi, r9d
mov rbp, r8
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x48], r13
mov byte [rsp + 0xf0], bl
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x50], r14
je 0x14004ee15
mov byte [r12 + 0x3d0], cl
nop word [rax + rax]
cmp dword [r14], 0
jne 0x14004e5ea
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, esi
mov r8, rbp
mov rcx, r15
call fcn.14002b6a0
mov rcx, qword [r15 + 0x178]
call qword [0x140072048]
mov qword [r15 + 0x178], 0
call fcn.140032e10
mov rdi, rax
test rax, rax
je 0x14004ecef
lea rcx, str._s:_hu
mov r8d, esi
mov rdx, rbp
call fcn.14002d650
mov rsi, rax
test rax, rax
je 0x14004ece7
lea rdx, str.CONNECT
mov r9b, 1
mov r8, rax
mov rcx, r12
call fcn.140033b50
mov rcx, rsi
mov ebx, eax
call qword [0x140072048]
test ebx, ebx
jne 0x14004e5ce
cmp dword [r12 + 0x1b0], 1
lea rax, [0x14005c194]
lea rbx, [0x14005c190]
cmove rbx, rax
movzx eax, byte [r12 + 0x3c1]
lea rsi, [0x14005a2a6]
lea r14, [0x14005a2a6]
cmp rbp, qword [r12 + 0xb8]
je 0x14004e46e
mov edx, Ordinal_60
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
setne al
test al, al
lea rax, [0x14005ad60]
lea rcx, [0x14005ad5c]
lea rdx, [0x14005a2a6]
lea r9, [0x14005a2a6]
mov r8, rbp
cmovne rdx, rax
mov eax, dword [rsp + 0x108]
cmovne r9, rcx
lea rcx, str._s_s_s:_hu
mov dword [rsp + 0x20], eax
call fcn.14002d650
mov rbp, rax
test rax, rax
je 0x14004ece7
lea rdx, str.Host:
mov rcx, r12
call fcn.140033410
test rax, rax
jne 0x14004e4e9
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.14002d650
mov rsi, rax
test rax, rax
je 0x14004ecde
lea rdx, str.User_Agent:
mov rcx, r12
call fcn.140033410
test rax, rax
jne 0x14004e50e
cmp qword [r15 + 0x558], rax
je 0x14004e50e
mov r14, qword [r12 + 0x418]
mov rax, qword [r12 + 0x410]
mov qword [rsp + 0x30], r14
lea rcx, [0x14005a2a6]
test rax, rax
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
mov r9, rbx
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140033000
mov ebx, eax
test rsi, rsi
je 0x14004e55d
cmp byte [rsi], 0
je 0x14004e55d
mov rcx, rsi
call qword [0x140072048]
mov rcx, rbp
call qword [0x140072048]
test ebx, ebx
jne 0x14004e5b4
mov r8, rdi
mov dl, 1
mov rcx, r12
call fcn.140033080
mov ebx, eax
test eax, eax
jne 0x14004e5b4
lea rdx, [0x14005aaec]
mov rcx, rdi
call fcn.140033000
mov ebx, eax
test eax, eax
jne 0x14004e5b4
mov eax, dword [rsp + 0xf8]
lea r8, [r15 + 0x8a90]
xor r9d, r9d
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140032e20
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x14004e5c9
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r15
call fcn.14002b5e0
mov r14, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140032de0
test ebx, ebx
jne 0x14004ecf9
mov rdi, qword [rsp + 0x70]
mov dword [r14], 1
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.14002c860
test eax, eax
jle 0x14004ee19
cmp byte [rsp + 0x110], 0
jne 0x14004e623
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.14002af10
test eax, eax
je 0x14004ee15
lea rax, [r15 + 0x7e8]
mov r14d, 1
xor ebx, ebx
mov qword [rsp + 0x68], 0
xor edi, edi
mov rbp, rax
mov qword [rsp + 0x78], rax
mov rsi, rax
mov dword [rsp + 0x44], r14d
nop dword [rax]
test r14d, r14d
je 0x14004ea5a
cmp dword [rsp + 0x58], 0
jne 0x14004ee28
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.14002c860
test eax, eax
jle 0x14004ee19
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.14002af10
cmp eax, 0xffffffff
je 0x14004ec53
test eax, eax
je 0x14004ea3b
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r9d, 0x4000
sub r9, qword [rsp + 0x68]
mov r8, rbp
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14002b740
cmp eax, 0x51
je 0x14004ea4b
test eax, eax
je 0x14004e6e7
xor r14d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x14004ea3b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x14004e744
xor r14d, r14d
mov dword [rsp + 0x44], r14d
cmp dword [r15 + 0x1e8], r14d
je 0x14004e728
cmp dword [r15 + 0x8968], r14d
je 0x14004e728
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r15
mov byte [r12 + 0x3d0], 1
call fcn.14002b6a0
jmp 0x14004ea3b
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r15
mov dword [rsp + 0x58], 1
call fcn.14002b5e0
jmp 0x14004ea3b
add qword [rsp + 0x68], rcx
cmp r14d, 1
jle 0x14004e7ee
lea rax, [r15 + 0x7e8]
xor edx, edx
mov rbp, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], rdx
test r13, r13
je 0x14004e78b
sub r13, rcx
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x14004ea3b
mov r14d, edx
mov dword [rsp + 0x44], edx
jmp 0x14004ea3b
mov qword [rsp + 0x88], rdx
mov r8, rcx
lea r9, [rsp + 0x88]
mov rdx, rax
mov rcx, r12
call fcn.14004f2e0
mov rcx, r15
cmp eax, 0xffffffff
jne 0x14004e7d5
lea rdx, str.chunk_reading_DONE_n
call fcn.14002b6a0
mov rax, qword [rsp + 0x50]
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x14004ea3b
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.14002b6a0
jmp 0x14004ea3b
xor r13d, r13d
test rcx, rcx
jle 0x14004ea36
nop word [rax + rax]
inc ebx
inc rdi
cmp byte [rbp], 0xa
jne 0x14004ea1a
cmp byte [r15 + 0x458], 0
je 0x14004e831
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r15
mov qword [rsp + 0x20], r12
call fcn.14002b4d0
cmp byte [r15 + 0x44c], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r12
cmovne edx, eax
call fcn.14002b4b0
add dword [r15 + 0x8a8c], ebx
add dword [r15 + 0xc0], ebx
test eax, eax
jne 0x14004ee2d
movzx eax, byte [rsi]
cmp al, 0xd
je 0x14004eaa2
cmp al, 0xa
je 0x14004eaa2
movzx ebp, byte [rdi + rsi]
lea r14, [rdi + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rsi
mov byte [r14], 0
call fcn.140037920
test eax, eax
je 0x14004e8b0
mov eax, dword [r15 + 0x128]
cmp eax, 0x191
je 0x14004e8d7
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.140037920
test eax, eax
je 0x14004e91d
mov eax, dword [r15 + 0x128]
cmp eax, 0x197
jne 0x14004e91d
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.140033600
mov rbx, rax
test rax, rax
je 0x14004ecef
mov r8, rax
movzx edx, dil
mov rcx, r12
call fcn.140033900
mov rcx, rbx
mov edi, eax
call qword [0x140072048]
test edi, edi
je 0x14004ea05
mov eax, edi
jmp 0x14004ee2d
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.140037920
test eax, eax
je 0x14004e950
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call qword [sym.imp.MSVCR120.dll_strtoll]
mov qword [rsp + 0x48], rax
jmp 0x14004ea05
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.140033510
test al, al
je 0x14004e977
mov byte [rsp + 0xf0], 1
jmp 0x14004ea05
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.140033510
test al, al
je 0x14004e9af
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r15
call fcn.14002b6a0
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.14004f2d0
jmp 0x14004ea05
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.140033510
test al, al
je 0x14004e9d3
mov byte [rsp + 0xf0], 1
jmp 0x14004ea05
lea r9, [r15 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_sscanf]
cmp eax, 2
jne 0x14004ea05
mov eax, dword [r15 + 0x128]
mov dword [r15 + 0x8a7c], eax
mov rcx, qword [rsp + 0x60]
mov byte [r14], bpl
mov rbp, qword [rsp + 0x78]
xor ebx, ebx
xor edi, edi
lea rsi, [rbp + 1]
inc r13d
inc rbp
movsxd rax, r13d
mov qword [rsp + 0x78], rbp
cmp rax, rcx
jl 0x14004e800
mov r14d, dword [rsp + 0x44]
mov r13, qword [rsp + 0x48]
mov rcx, r12
call fcn.140035e00
test eax, eax
jne 0x14004ed00
cmp qword [rsp + 0x68], 0x4000
jb 0x14004e650
cmp dword [rsp + 0x58], 0
jne 0x14004ee28
cmp dword [r15 + 0x8a7c], 0xc8
je 0x14004ec6f
mov rcx, r12
call fcn.140033710
test eax, eax
jne 0x14004ee2d
cmp byte [r12 + 0x3b9], al
je 0x14004ec6f
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x14004ec7b
cmp dword [r15 + 0x128], 0x197
lea rax, [r15 + 0x7e8]
mov qword [rsp + 0x68], 0
mov rbp, rax
mov qword [rsp + 0x78], rax
jne 0x14004ec09
cmp byte [r15 + 0x8970], 0
jne 0x14004ec09
mov r8, qword [rsp + 0x48]
mov r14d, 2
mov dword [rsp + 0x44], r14d
test r8, r8
je 0x14004eb33
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r15
call fcn.14002b6a0
movsxd rax, r13d
mov r13, qword [rsp + 0x48]
sub rax, qword [rsp + 0x60]
add r13, rax
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x14004ec43
mov rax, qword [rsp + 0x50]
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x14004ea3b
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x14004ebee
mov r8, qword [rsp + 0x60]
movsxd rax, r13d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r15
sub r8, rax
mov byte [r15 + 0x16d], 1
call fcn.14002b6a0
cmp byte [rsi + 1], 0xa
jne 0x14004eb6e
inc rsi
inc r13d
mov r8, qword [rsp + 0x60]
movsxd rax, r13d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x60]
mov rcx, r12
sub r8, rax
call fcn.14004f2e0
mov rcx, r15
cmp eax, 0xffffffff
jne 0x14004ebc8
lea rdx, str.chunk_reading_DONE_n
call fcn.14002b6a0
mov r13, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov dword [r13], 2
mov r13, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x14004ea3b
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.14002b6a0
mov rax, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x14004ea3b
mov rax, qword [rsp + 0x50]
xor r14d, r14d
mov r13, r8
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x14004ea3b
xor r14d, r14d
cmp dword [r15 + 0x8a7c], 0xc8
mov dword [rsp + 0x44], r14d
jne 0x14004ec3e
mov r8, qword [rsp + 0x60]
lea eax, [r13 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x14004ec3e
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r15
call fcn.14002b5e0
mov r13, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov dword [rax], 2
jmp 0x14004ea3b
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r15
mov dword [rsp + 0x58], 1
call fcn.14002b5e0
jmp 0x14004ea3b
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x14004ec89
cmp qword [r15 + 0x178], 0
jne 0x14004ed0a
cmp qword [r15 + 0x178], 0
mov r14, qword [rsp + 0x50]
je 0x14004ed26
cmp dword [r14], 2
jne 0x14004ecbb
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r15
mov dword [r14], 0
call fcn.14002b6a0
cmp qword [r15 + 0x178], 0
je 0x14004ed26
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x100]
mov esi, dword [rsp + 0x108]
jmp 0x14004e390
mov rcx, rbp
call qword [0x140072048]
mov rcx, rdi
call fcn.140032de0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004ee2d
mov eax, ebx
jmp 0x14004ee2d
mov eax, Ordinal_46
jmp 0x14004ee2d
mov rdi, qword [rsp + 0x90]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.14002bf20
mov qword [rdi], 0xffffffffffffffff
jmp 0x14004ed2e
mov rdi, qword [rsp + 0x90]
cmp dword [r15 + 0x128], 0xc8
je 0x14004edc8
test bl, bl
je 0x14004ed67
cmp qword [r15 + 0x178], 0
je 0x14004ed67
lea rdx, str.Connect_me_again_please_n
mov rcx, r15
mov byte [r12 + 0x3d0], 1
call fcn.14002b6a0
jmp 0x14004ed9a
mov rcx, qword [r15 + 0x178]
call qword [0x140072048]
mov qword [r15 + 0x178], 0
mov byte [r12 + 0x3b9], 1
mov rdx, qword [rdi]
mov rcx, r12
call fcn.14002bf20
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
cmp byte [r12 + 0x3d0], 0
jne 0x14004ee15
mov r8d, dword [r15 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r15
call fcn.14002b5e0
jmp 0x14004ee28
mov rax, qword [rsp + 0x50]
mov dword [rax], 2
mov rcx, qword [r12 + 0x410]
call qword [0x140072048]
mov qword [r12 + 0x410], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r15
mov byte [r15 + 0x896c], 1
call fcn.14002b6a0
mov byte [r15 + 0x16d], 0
mov byte [r12 + 0x3ca], 0
xor eax, eax
jmp 0x14004ee2d
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r15
call fcn.14002b5e0
mov eax, gethostname
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret