Function at 0x140041f80
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
xor r13d, r13d
mov rcx, rax
mov qword [rsp + 0x68], rax
xor bl, bl
mov dword [rsp + 0x80], 0
lea rax, [r12 + 0x1d0]
mov qword [rsp + 0x48], r13
mov rdi, qword [rax + rcx*8]
lea rax, [rax + rcx*8]
mov qword [rsp + 0x98], rax
mov r14d, r9d
xor al, al
mov qword [rsp + 0x70], rdi
cmp dword [r12 + rcx*4 + 0x668], 2
mov rbp, r8
mov byte [rsp + 0xf0], bl
mov byte [rsp + 0x40], al
mov dword [rsp + 0x50], r13d
je 0x140042ac5
mov byte [r12 + 0x328], al
lea rax, [r12 + 0x668]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x90], rax
cmp dword [rax], 0
jne 0x140042276
mov r9d, r14d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rbp
mov rcx, r15
call fcn.140037d40
mov rcx, qword [r15 + 0x178]
call qword [fcn.14011e248]
mov qword [r15 + 0x178], 0
call fcn.14002a6e0
mov rsi, rax
test rax, rax
je 0x1400429b1
mov r8d, r14d
lea rcx, str._s:_hu
mov rdx, rbp
call fcn.14003d740
mov rdi, rax
test rax, rax
je 0x1400429a9
mov r9b, 1
lea rdx, [0x140144568]
mov r8, rax
mov rcx, r12
call fcn.14002b3c0
mov rcx, rdi
mov ebx, eax
call qword [fcn.14011e248]
test ebx, ebx
jne 0x140042253
cmp dword [r12 + 0x1b0], 1
lea rax, [0x14017a3a8]
lea rbx, [0x140140428]
cmove rbx, rax
lea rdi, [0x140179ea8]
lea r14, [0x140179ea8]
movzx eax, byte [r12 + 0x319]
cmp rbp, qword [r12 + 0xb8]
je 0x140042103
mov edx, Ordinal_60
mov rcx, rbp
call fcn.1401148dc
test rax, rax
setne al
test al, al
lea rcx, [0x1401402b0]
lea rax, [0x1401402b4]
mov r8, rbp
lea r9, [0x140179ea8]
cmovne r9, rcx
lea rdx, [0x140179ea8]
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x20], eax
call fcn.14003d740
mov rbp, rax
test rax, rax
je 0x1400429a9
lea rdx, str.Host:
mov rcx, r12
call fcn.14002ace0
test rax, rax
jne 0x14004217e
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.14003d740
mov rdi, rax
test rax, rax
je 0x1400429a0
lea rdx, str.User_Agent:
mov rcx, r12
call fcn.14002ace0
test rax, rax
jne 0x1400421a3
cmp qword [r15 + 0x550], rax
je 0x1400421a3
mov r14, qword [r12 + 0x370]
mov rax, qword [r12 + 0x368]
lea rcx, [0x140179ea8]
test rax, rax
mov qword [rsp + 0x30], r14
mov r9, rbx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.14002a8d0
mov ebx, eax
test rdi, rdi
je 0x1400421f2
cmp byte [rdi], 0
je 0x1400421f2
mov rcx, rdi
call qword [fcn.14011e248]
mov rcx, rbp
call qword [fcn.14011e248]
test ebx, ebx
jne 0x140042249
mov r8, rsi
mov dl, 1
mov rcx, r12
call fcn.14002a960
mov ebx, eax
test eax, eax
jne 0x140042249
lea rdx, [0x140140488]
mov rcx, rsi
call fcn.14002a8d0
mov ebx, eax
test eax, eax
jne 0x140042249
mov eax, dword [rsp + 0xf8]
lea r8, [r15 + 0x8a00]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rsi
call fcn.14002a6f0
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x1400429bb
mov rcx, rsi
call fcn.14002a6b0
test ebx, ebx
jne 0x1400429d1
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
mov dword [rax], 1
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.1400360c0
test eax, eax
jle 0x140042adb
cmp byte [rsp + 0x110], 0
jne 0x1400422b2
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rdi
call fcn.1400389c0
test eax, eax
je 0x140042ac5
lea rax, [r15 + 0x7d8]
mov qword [rsp + 0x60], 0
mov ebp, 1
mov qword [rsp + 0x78], rax
xor edi, edi
mov dword [rsp + 0x44], ebp
mov rbx, rax
mov rsi, rax
xor r14d, r14d
nop dword [rax + rax]
test ebp, ebp
je 0x1400426cf
cmp dword [rsp + 0x50], 0
jne 0x140042a6a
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.1400360c0
test eax, eax
jle 0x1400429e2
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
mov rdx, 0xffffffffffffffff
mov r8, rdx
cmovl r9d, eax
call fcn.1400389c0
cmp eax, 0xffffffff
je 0x140042877
test eax, eax
je 0x1400426b0
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x60]
mov r8, rbx
mov rcx, r12
call fcn.140037de0
cmp eax, 0x51
je 0x1400426c0
test eax, eax
je 0x140042377
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x1400426b0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x1400423d2
xor ebp, ebp
mov dword [rsp + 0x44], ebp
cmp dword [r15 + 0x1e8], ebp
je 0x1400423b6
cmp dword [r15 + 0x88d8], ebp
je 0x1400423b6
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x328], 1
mov rcx, r15
call fcn.140037d40
jmp 0x1400426b0
lea rdx, str.Proxy_CONNECT_aborted
mov dword [rsp + 0x50], 1
mov rcx, r15
call fcn.140037c70
jmp 0x1400426b0
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x14004246d
xor edx, edx
lea rax, [r15 + 0x7d8]
mov qword [rsp + 0x60], rdx
mov rbx, rax
mov qword [rsp + 0x78], rax
test r13, r13
je 0x140042417
sub r13, rcx
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x1400426b0
mov ebp, edx
mov dword [rsp + 0x44], edx
jmp 0x1400426b0
mov qword [rsp + 0x88], rdx
lea r9, [rsp + 0x88]
mov r8, rcx
mov rdx, rax
mov rcx, r12
call fcn.140040080
mov rcx, r15
cmp eax, 0xffffffff
jne 0x140042454
lea rdx, str.chunk_reading_DONE_n
call fcn.140037d40
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x140042860
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140037d40
jmp 0x1400426b0
xor r13d, r13d
test rcx, rcx
jle 0x1400426ab
nop dword [rax]
inc edi
inc r14
cmp byte [rbx], 0xa
jne 0x140042690
cmp byte [r15 + 0x450], 0
movsxd rbx, edi
je 0x1400424b3
mov r9, rbx
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 1
mov rcx, r15
call fcn.140037b60
xor edx, edx
mov r9, rbx
cmp byte [r15 + 0x444], dl
mov r8, rsi
mov rcx, r12
setne dl
add edx, 2
call fcn.140037b40
add dword [r15 + 0x89fc], edi
add dword [r15 + 0xc0], edi
test eax, eax
jne 0x140042ac7
movzx eax, byte [rsi]
cmp al, 0xd
je 0x140042717
cmp al, 0xa
je 0x140042717
movzx ebp, byte [r14 + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [r14 + rsi], 0
mov rdx, rsi
call fcn.140041e70
test eax, eax
je 0x14004252b
mov ebx, dword [r15 + 0x128]
cmp ebx, 0x191
je 0x140042553
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.140041e70
test eax, eax
je 0x140042593
mov ebx, dword [r15 + 0x128]
cmp ebx, 0x197
jne 0x140042593
mov rcx, rsi
call fcn.14002aef0
mov rdi, rax
test rax, rax
je 0x1400429b1
cmp ebx, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.14002b1f0
mov rcx, rdi
mov ebx, eax
call qword [fcn.14011e248]
test ebx, ebx
jne 0x1400429d1
jmp 0x140042679
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.140041e70
test eax, eax
je 0x1400425c5
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140125cfc
mov qword [rsp + 0x48], rax
jmp 0x140042679
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.14002ae00
test al, al
je 0x1400425ec
mov byte [rsp + 0xf0], 1
jmp 0x140042679
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.14002ae00
test al, al
je 0x140042624
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r15
call fcn.140037d40
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.140040070
jmp 0x140042679
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.14002ae00
test al, al
je 0x140042648
mov byte [rsp + 0xf0], 1
jmp 0x140042679
lea r9, [r15 + 0x128]
mov rcx, rsi
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
call fcn.1400287e0
cmp eax, 2
jne 0x140042679
mov eax, dword [r15 + 0x128]
mov dword [r15 + 0x89ec], eax
mov rbx, qword [rsp + 0x78]
xor edi, edi
mov rcx, qword [rsp + 0x58]
mov byte [r14 + rsi], bpl
xor r14d, r14d
lea rsi, [rbx + 1]
inc r13d
inc rbx
movsxd rax, r13d
mov qword [rsp + 0x78], rbx
cmp rax, rcx
jl 0x140042480
mov ebp, dword [rsp + 0x44]
mov r13, qword [rsp + 0x48]
mov rcx, r12
call fcn.1400370f0
test eax, eax
jne 0x1400429d8
cmp qword [rsp + 0x60], 0x4000
jb 0x1400422e0
cmp dword [rsp + 0x50], 0
jne 0x140042a6a
cmp dword [r15 + 0x89ec], 0xc8
je 0x140042893
mov rcx, r12
call fcn.14002b000
test eax, eax
jne 0x140042ac7
cmp byte [r12 + 0x311], al
je 0x140042893
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x14004289f
cmp dword [r15 + 0x128], 0x197
lea rax, [r15 + 0x7d8]
mov rbx, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], 0
jne 0x140042828
cmp byte [r15 + 0x88e0], 0
jne 0x140042828
mov r8, qword [rsp + 0x48]
mov eax, 2
mov dword [rsp + 0x44], eax
mov ebp, eax
test r8, r8
je 0x14004279d
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r15
call fcn.140037d40
movsxd rax, r13d
xor ebp, ebp
sub rax, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
add r13, rax
mov eax, 2
test r13, r13
mov qword [rsp + 0x48], r13
cmovg ebp, eax
mov dword [rsp + 0x44], ebp
jmp 0x140042860
cmp byte [rsp + 0x40], 0
je 0x14004281d
mov r8, qword [rsp + 0x58]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r13d
mov rcx, r15
sub r8, rax
mov byte [r15 + 0x16d], 1
call fcn.140037d40
cmp byte [rsi + 1], 0xa
jne 0x1400427d2
inc rsi
inc r13d
mov r8, qword [rsp + 0x58]
lea rdx, [rsi + 1]
movsxd rax, r13d
lea r9, [rsp + 0x58]
sub r8, rax
mov rcx, r12
call fcn.140040080
mov rcx, r15
cmp eax, 0xffffffff
jne 0x14004280a
lea rdx, str.chunk_reading_DONE_n
call fcn.140037d40
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x14004285b
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140037d40
jmp 0x14004285b
xor ebp, ebp
mov r13, r8
mov dword [rsp + 0x44], ebp
jmp 0x140042860
xor ebp, ebp
cmp dword [r15 + 0x89ec], 0xc8
mov dword [rsp + 0x44], ebp
jne 0x14004285b
mov r8, qword [rsp + 0x58]
lea eax, [r13 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x14004285b
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r15
call fcn.140037c70
mov r13, qword [rsp + 0x48]
mov rax, qword [rsp + 0x68]
mov ecx, 2
mov dword [r12 + rax*4 + 0x668], ecx
jmp 0x1400426b0
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [rsp + 0x50], 1
mov rcx, r15
call fcn.140037c70
jmp 0x1400426b0
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x140042910
cmp qword [r15 + 0x178], 0
je 0x14004296e
mov rdi, qword [rsp + 0x98]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.1400356d0
mov qword [rdi], 0xffffffffffffffff
cmp dword [r15 + 0x128], 0xc8
je 0x140042a71
test bl, bl
je 0x1400429fb
cmp qword [r15 + 0x178], 0
je 0x1400429fb
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x328], 1
mov rcx, r15
call fcn.140037d40
mov rbx, qword [rsp + 0x68]
jmp 0x140042a3d
mov rax, qword [r15 + 0x178]
test rax, rax
je 0x1400428c7
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x100]
mov r14d, dword [rsp + 0x108]
cmp dword [r12 + rcx*4 + 0x668], 2
lea rax, [rcx + 0x19a]
lea rax, [r12 + rax*4]
jne 0x140042027
mov dword [r12 + rcx*4 + 0x668], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r15
xor r8d, r8d
call fcn.140037d40
mov rax, qword [r15 + 0x178]
test rax, rax
je 0x1400428c7
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x100]
mov r14d, dword [rsp + 0x108]
mov rax, qword [rsp + 0x90]
jmp 0x140042027
mov rcx, rbp
call qword [fcn.14011e248]
mov rcx, rsi
call fcn.14002a6b0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140042ac7
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r15
call fcn.140037c70
xor ecx, ecx
call fcn.14002a6b0
mov eax, ebx
jmp 0x140042ac7
mov eax, Ordinal_46
jmp 0x140042ac7
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r15
call fcn.140037c70
mov eax, gethostname
jmp 0x140042ac7
mov rcx, qword [r15 + 0x178]
call qword [fcn.14011e248]
mov rbx, qword [rsp + 0x68]
mov rcx, r12
mov qword [r15 + 0x178], 0
mov byte [r12 + 0x311], 1
mov rdx, qword [r12 + rbx*8 + 0x1d0]
call fcn.1400356d0
mov qword [r12 + rbx*8 + 0x1d0], 0xffffffffffffffff
mov dword [r12 + rbx*4 + 0x668], 0
cmp byte [r12 + 0x328], 0
jne 0x140042ac5
mov r8d, dword [r15 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r15
call fcn.140037c70
mov eax, gethostname
jmp 0x140042ac7
mov rax, qword [rsp + 0x68]
mov ecx, 2
mov dword [r12 + rax*4 + 0x668], ecx
mov rcx, qword [r12 + 0x368]
call qword [fcn.14011e248]
mov qword [r12 + 0x368], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r15
mov byte [r15 + 0x88dc], 1
call fcn.140037d40
mov byte [r15 + 0x16d], 0
mov byte [r12 + 0x322], 0
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, r15
call fcn.140037c70
mov eax, gethostname
jmp 0x140042ac7