Function at 0x14004d980
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rdi, qword [rcx]
mov r15, rcx
add rcx, 0x238
movsxd r14, edx
xor r13d, r13d
mov r12d, r9d
mov rsi, r8
mov dword [rsp + 0x40], r13d
mov rbx, qword [r15 + 0x870]
mov rbp, qword [r15 + r14*8 + 0x238]
lea rcx, [rcx + r14*8]
mov qword [rsp + 0x58], rcx
mov rcx, r15
mov qword [rsp + 0x48], rbp
call fcn.14004e3f0
test al, al
jne 0x14004e3b9
mov byte [r15 + 0x3c2], r13b
nop word [rax + rax]
cmp dword [rbx + 0x4024], 0
jne 0x14004dcb7
mov r9d, r12d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rsi
mov rcx, rdi
call fcn.1400401d0
mov rcx, qword [rdi + 0x1d8]
call qword [0x140099030]
mov qword [rdi + 0x1d8], r13
call fcn.140046ec0
mov r14, rax
test rax, rax
je 0x14004e27e
mov r8d, r12d
lea rcx, str._s:_d
mov rdx, rsi
call fcn.140042b90
mov rbp, rax
test rax, rax
je 0x14004e276
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r15
call fcn.140047d10
mov rcx, rbp
mov esi, eax
call qword [0x140099030]
test esi, esi
jne 0x14004dc89
mov rsi, qword [rsp + 0xc0]
lea rax, [0x14007950c]
mov rbp, qword [rsp + 0xd0]
lea r12, [0x140079508]
lea rcx, [0x140077008]
mov r15, r13
mov r13, rcx
cmp dword [rsi + 0x164], 1
cmove r12, rax
movzx eax, byte [rsi + 0x3b2]
cmp rbp, qword [rsi + 0xd0]
je 0x14004daed
mov edx, Ordinal_60
mov rcx, rbp
call sub.VCRUNTIME140.dll_strchr
test rax, rax
lea rcx, [0x140077008]
setne al
test al, al
lea rdx, [0x1400787b4]
mov r9, rcx
lea rax, [0x1400787b8]
cmovne r9, rdx
mov r8, rbp
mov rdx, rcx
lea rcx, str._s_s_s:_d
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call fcn.140042b90
mov rbp, rax
test rax, rax
je 0x14004e276
lea rdx, str.Host
mov rcx, rsi
call fcn.1400475d0
test rax, rax
jne 0x14004db60
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.140042b90
mov r15, rax
test rax, rax
je 0x14004e26d
lea rdx, str.Proxy_Connection
mov rcx, rsi
call fcn.1400475d0
mov rcx, qword [rsp + 0xc0]
lea rsi, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea rdx, str.User_Agent
lea rax, [0x140077008]
cmovne rsi, rax
call fcn.1400475d0
test rax, rax
mov rax, qword [rsp + 0xc0]
jne 0x14004dbb6
cmp qword [rdi + 0x8a0], 0
je 0x14004dbb6
mov r13, qword [rax + 0x420]
mov rax, qword [rax + 0x418]
lea rdx, [0x140077008]
test rax, rax
mov qword [rsp + 0x38], rsi
mov rcx, rdx
mov qword [rsp + 0x30], r13
cmovne rcx, rax
mov r9, r12
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r15, r15
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rbp
mov rcx, r14
cmovne rax, r15
mov qword [rsp + 0x20], rax
call fcn.1400470d0
mov esi, eax
test r15, r15
je 0x14004dc11
mov rcx, r15
call qword [0x140099030]
mov rcx, rbp
call qword [0x140099030]
mov r15, qword [rsp + 0xc0]
test esi, esi
jne 0x14004dc70
mov r8, r14
mov dl, 1
mov rcx, r15
call fcn.140047160
mov esi, eax
test eax, eax
jne 0x14004dc70
lea rdx, [0x140077b80]
mov rcx, r14
call fcn.1400470d0
mov esi, eax
test eax, eax
jne 0x14004dc70
mov eax, dword [rsp + 0xc8]
lea r8, [rdi + 0x5148]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, r14
call fcn.140046ed0
mov esi, eax
xor r13d, r13d
mov r14d, r13d
test esi, esi
je 0x14004dc89
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.1400400c0
mov rcx, r14
call fcn.140046e90
test esi, esi
jne 0x14004e288
mov rbp, qword [rsp + 0x48]
mov r14d, dword [rsp + 0xc8]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r13d
mov r8b, 1
xor edx, edx
mov rcx, rdi
call fcn.140041860
test rax, rax
jle 0x14004e3d3
mov edx, r14d
mov rcx, r15
call fcn.140040d40
test al, al
je 0x14004e3b9
cmp dword [rbx + 0x4004], 0
mov r12d, r13d
je 0x14004e1cd
lea r14, [rbx + 0x4000]
nop word [rax + rax]
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x14004e28f
lea rax, [rsp + 0x50]
mov r9d, 1
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.140040270
mov esi, eax
cmp eax, 0x51
je 0x14004e3b9
mov rcx, r15
call fcn.14004c7a0
test eax, eax
jne 0x14004e3cc
test esi, esi
jne 0x14004e1be
cmp qword [rsp + 0x50], 0
jle 0x14004e17e
cmp dword [rbx + 0x4004], 1
jle 0x14004ddd7
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x14004dd98
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x14004e16f
mov dword [rbx + 0x4024], 2
jmp 0x14004e1be
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.140065b80
cmp eax, 0xffffffff
jne 0x14004e16f
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.1400401d0
mov dword [rbx + 0x4004], r13d
jmp 0x14004e165
mov ecx, dword [r14]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r14], ecx
cmp byte [rax], 0xa
je 0x14004ddfa
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x14004e16f
cmp byte [rdi + 0x750], 0
je 0x14004de1f
mov r8, qword [rbx + 0x4008]
mov edx, 1
movsxd r9, ecx
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.14003ffb0
cmp byte [rdi + 0x9c0], 0
jne 0x14004de52
cmp byte [rdi + 0x746], 0
mov edx, r13d
movsxd r9, dword [r14]
mov rcx, r15
mov r8, qword [rbx + 0x4008]
setne dl
add edx, 2
call fcn.14003ff90
test eax, eax
jne 0x14004e3bb
mov eax, dword [r14]
add dword [rdi + 0x5144], eax
mov eax, dword [r14]
add dword [rdi + 0x108], eax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14004e09b
cmp al, 0xa
je 0x14004e09b
movsxd rax, dword [r14]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], 0
lea rcx, str.WWW_Authenticate:
mov rdx, qword [rbx + 0x4008]
call fcn.140044150
test eax, eax
je 0x14004deb0
mov esi, dword [rdi + 0x180]
cmp esi, 0x191
je 0x14004dedb
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.140044150
test eax, eax
je 0x14004df24
mov esi, dword [rdi + 0x180]
cmp esi, 0x197
jne 0x14004df24
mov rcx, qword [rbx + 0x4008]
call fcn.140047770
mov rbp, rax
test rax, rax
je 0x14004e27e
cmp esi, 0x197
mov r8, rax
mov rcx, r15
sete dl
call fcn.140047a80
mov rcx, rbp
mov esi, eax
call qword [0x140099030]
test esi, esi
jne 0x14004e288
mov rbp, qword [rsp + 0x48]
jmp 0x14004e085
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.140044150
test eax, eax
je 0x14004df8a
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14004df68
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1400401d0
jmp 0x14004e085
mov rcx, qword [rbx + 0x4008]
lea r9, [rbx + 0x4018]
xor edx, edx
add rcx, 0xf
lea r8d, [rdx + 0xa]
call fcn.14004efe0
jmp 0x14004e085
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.140047680
test al, al
jne 0x14004e07e
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.140044150
test eax, eax
je 0x14004e02e
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14004dff0
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1400401d0
jmp 0x14004e085
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.140047680
test al, al
je 0x14004e085
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.1400401d0
mov rcx, r15
mov byte [rbx + 0x4020], 1
call fcn.140065b70
jmp 0x14004e085
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.140047680
test al, al
jne 0x14004e07e
mov rcx, qword [rbx + 0x4008]
lea r9, [rdi + 0x180]
lea r8, [rsp + 0x40]
lea rdx, str.HTTP_1._d__d
call fcn.1400343e0
cmp eax, 2
jne 0x14004e085
mov eax, dword [rdi + 0x180]
mov dword [rdi + 0x512c], eax
jmp 0x14004e085
mov byte [rbx + 0x4028], 1
mov dword [r14], r13d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x14004e16f
mov qword [rbx + 0x4010], rbx
cmp dword [rdi + 0x180], 0x197
jne 0x14004e154
cmp byte [rdi + 0x4df8], 0
jne 0x14004e154
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x14004e0e6
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.1400401d0
jmp 0x14004e15b
cmp byte [rbx + 0x4020], 0
je 0x14004e154
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.1400401d0
mov byte [rdi + 0x1cd], 1
mov rdx, qword [rbx + 0x4008]
cmp byte [rdx + 1], 0xa
lea rax, [rdx + 1]
jne 0x14004e120
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, r15
call fcn.140065b80
cmp eax, 0xffffffff
jne 0x14004e15b
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.1400401d0
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r13d
cmp qword [rbx + 0x4018], 0
jne 0x14004e16f
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], 0
jne 0x14004dd00
jmp 0x14004e1c5
cmp dword [rdi + 0x248], 0
je 0x14004e1a9
cmp dword [rdi + 0x4df0], 0
je 0x14004e1a9
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r15 + 0x3c2], 1
mov rcx, rdi
call fcn.1400401d0
jmp 0x14004e1be
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.1400400c0
mov dword [rbx + 0x4004], r13d
mov r14d, dword [rsp + 0xc8]
mov rcx, r15
call fcn.14004c7a0
test eax, eax
jne 0x14004e3cc
test r12d, r12d
jne 0x14004e29e
mov eax, dword [rdi + 0x512c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14004e216
mov rcx, r15
call fcn.140047880
test eax, eax
jne 0x14004e3bb
cmp byte [r15 + 0x3a9], al
je 0x14004e216
mov byte [rbx + 0x4028], 1
cmp byte [rbx + 0x4028], 0
je 0x14004e229
cmp qword [rdi + 0x1d8], 0
jne 0x14004e2a8
mov rax, qword [rdi + 0x1d8]
test rax, rax
je 0x14004e2c1
cmp dword [rbx + 0x4024], 2
jne 0x14004e253
mov dl, 1
mov rcx, r15
call fcn.14004e660
mov rax, qword [rdi + 0x1d8]
test rax, rax
je 0x14004e2c1
mov rsi, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
jmp 0x14004da00
mov rcx, rbp
call qword [0x140099030]
mov rcx, r14
call fcn.140046e90
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004e3bb
mov eax, esi
jmp 0x14004e3bb
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.1400400c0
mov eax, gethostname
jmp 0x14004e3bb
mov rsi, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [rsi]
call fcn.140040cb0
mov qword [rsi], 0xffffffffffffffff
jmp 0x14004e2c6
mov rsi, qword [rsp + 0x58]
mov eax, dword [rdi + 0x512c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14004e36f
cmp byte [rbx + 0x4028], 0
je 0x14004e30e
cmp qword [rdi + 0x1d8], 0
je 0x14004e30e
lea rdx, str.Connect_me_again_please_n
mov byte [r15 + 0x3c2], 1
mov rcx, rdi
call fcn.1400401d0
mov rcx, r15
call fcn.14004e640
jmp 0x14004e341
mov rcx, qword [rdi + 0x1d8]
call qword [0x140099030]
mov edx, 2
mov qword [rdi + 0x1d8], r13
mov rcx, r15
call fcn.140040e00
mov rdx, qword [rsi]
mov rcx, r15
call fcn.140040cb0
mov qword [rsi], 0xffffffffffffffff
mov dword [rbx + 0x4024], r13d
cmp byte [r15 + 0x3c2], 0
jne 0x14004e3b9
mov r8d, dword [rdi + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.1400400c0
mov eax, gethostname
jmp 0x14004e3bb
mov dword [rbx + 0x4024], 2
mov rcx, qword [r15 + 0x418]
call qword [0x140099030]
mov qword [r15 + 0x418], r13
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov r8d, dword [rdi + 0x512c]
mov rcx, rdi
mov byte [rdi + 0x4df4], 1
call fcn.1400401d0
mov byte [rdi + 0x1cd], 0
mov byte [r15 + 0x3bb], 0
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, Ordinal_46
jmp 0x14004e3bb
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.1400400c0
mov eax, Ordinal_30
jmp 0x14004e3bb