Function at 0x1006ce40
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
mov rax, rsp
sub rsp, 0xb8
mov qword [rax - 8], rbx
mov rbx, qword [rcx + 0x7b0]
mov qword [rax - 0x10], rbp
mov rbp, qword [rcx]
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
movsxd r12, edx
mov qword [rax - 0x40], r15
xor r15d, r15d
mov rsi, qword [rcx + r12*8 + 0x238]
mov r14d, r9d
mov rdi, r8
mov r13, rcx
mov dword [rax - 0x78], r15d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x48], rsi
call fcn.1006cd40
test eax, eax
jne 0x1006d96f
mov dword [rcx + 0x3f8], r15d
cmp dword [rbx + 0x4024], 0
jne 0x1006d19b
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r14d
mov r8, rdi
mov rcx, rbp
call fcn.1004b790
mov rcx, qword [rbp + 0x1e0]
call qword [fcn.10021fb0]
mov qword [rbp + 0x1e0], r15
call fcn.10066710
test rax, rax
mov r12, rax
je 0x1006d800
lea rcx, str._s:_d
mov r8d, r14d
mov rdx, rdi
call fcn.1006f260
test rax, rax
mov rsi, rax
je 0x1006d7f8
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r13
call fcn.100661b0
mov rcx, rsi
mov edi, eax
call qword [fcn.10021fb0]
test edi, edi
jne 0x1006d16d
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xd0]
mov r13, r15
cmp dword [rdi + 0x164], 1
lea rcx, [0x10090588]
lea r15, [0x1009058c]
cmove r15, rcx
cmp rsi, qword [rdi + 0xd0]
mov ecx, dword [rdi + 0x3b8]
lea rax, [0x100a16d0]
mov r14, rax
je 0x1006cfb1
mov edx, Ordinal_60
mov rcx, rsi
call fcn.10023230
xor ecx, ecx
test rax, rax
lea rax, [0x100a16d0]
setne cl
mov r9, rax
test ecx, ecx
lea rdx, [0x100a164c]
cmovne r9, rdx
mov rdx, rax
lea rax, [0x100a1648]
test ecx, ecx
lea rcx, str._s_s_s:_d
mov r8, rsi
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call fcn.1006f260
test rax, rax
mov rsi, rax
je 0x1006d7f8
lea rdx, str.Host
mov rcx, rdi
call fcn.10065a90
test rax, rax
jne 0x1006d026
lea rcx, str.Host:__s_r_n
mov rdx, rsi
call fcn.1006f260
test rax, rax
mov r13, rax
je 0x1006d7ef
lea rdx, str.Proxy_Connection
mov rcx, rdi
call fcn.10065a90
mov rcx, qword [rsp + 0xc0]
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea rax, [0x100a16d0]
lea rdx, str.User_Agent
cmovne rdi, rax
call fcn.10065a90
test rax, rax
jne 0x1006d087
cmp qword [rbp + 0x958], rax
je 0x1006d07d
mov rax, qword [rsp + 0xc0]
mov r14, qword [rax + 0x470]
jmp 0x1006d08f
mov rax, qword [rsp + 0xc0]
jmp 0x1006d08f
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x468]
lea rdx, [0x100a16d0]
mov qword [rsp + 0x38], rdi
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r14
cmovne rcx, rax
mov rax, rdx
test r13, r13
mov qword [rsp + 0x28], rcx
cmovne rax, r13
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r15
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.10067480
test r13, r13
mov edi, eax
je 0x1006d0ea
mov rcx, r13
call qword [fcn.10021fb0]
mov rcx, rsi
call qword [fcn.10021fb0]
test edi, edi
jne 0x1006d14c
mov r13, qword [rsp + 0xc0]
lea edx, [rdi + 1]
mov r8, r12
mov rcx, r13
call fcn.10067710
test eax, eax
mov edi, eax
jne 0x1006d154
lea rdx, [0x100887e0]
mov rcx, r12
call fcn.10067480
test eax, eax
mov edi, eax
jne 0x1006d154
mov eax, dword [rsp + 0xc8]
lea r8, [rbp + 0x1188]
xor r9d, r9d
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.10066750
mov edi, eax
jmp 0x1006d154
mov r13, qword [rsp + 0xc0]
xor r15d, r15d
test edi, edi
mov r12, r15
je 0x1006d16d
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbp
call fcn.1004b840
mov rcx, r12
call fcn.10066720
test edi, edi
jne 0x1006d80a
mov rsi, qword [rsp + 0x48]
mov r12d, dword [rsp + 0xc8]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r15d
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 1]
call fcn.100519f0
test rax, rax
jle 0x1006d973
mov edx, r12d
mov rcx, r13
call fcn.10052970
test eax, eax
je 0x1006d96f
cmp dword [rbx + 0x4004], 0
mov r14d, r15d
je 0x1006d73f
lea r12, [rbx + 0x4000]
nop
mov r8, qword [rbx + 0x4010]
cmp r8, r12
jae 0x1006d822
lea rax, [rsp + 0x50]
mov r9d, 1
mov rdx, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1004b550
cmp eax, 0x51
mov edi, eax
je 0x1006d96f
mov rcx, r13
call fcn.10070120
test eax, eax
jne 0x1006d818
test edi, edi
jne 0x1006d730
cmp qword [rsp + 0x50], 0
jle 0x1006d6cd
cmp dword [rbx + 0x4004], 1
jle 0x1006d2d5
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x1006d28c
add rax, 0xffffffffffffffff
test rax, rax
mov qword [rbx + 0x4018], rax
jg 0x1006d6b6
mov r12d, dword [rsp + 0xc8]
mov dword [rbx + 0x4004], r15d
mov dword [rbx + 0x4024], 2
jmp 0x1006d73f
lea r9, [rsp + 0x60]
mov r8d, 1
mov rdx, rbx
mov rcx, r13
mov qword [rsp + 0x60], r15
call fcn.100760f0
cmp eax, 0xffffffff
jne 0x1006d6b6
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbp
call fcn.1004b790
mov dword [rbx + 0x4004], r15d
mov dword [rbx + 0x4024], 2
jmp 0x1006d6b6
mov rax, qword [rbx + 0x4010]
add dword [r12], 1
cmp byte [rax], 0xa
je 0x1006d2f6
add rax, 1
mov qword [rbx + 0x4010], rax
jmp 0x1006d6b6
cmp dword [rbp + 0x7cc], 0
je 0x1006d317
movsxd r9, dword [r12]
mov r8, qword [rbx + 0x4008]
mov edx, 1
mov rcx, rbp
call fcn.1004b6c0
cmp dword [rbp + 0xa8c], 0
jne 0x1006d34f
cmp dword [rbp + 0x7b4], 0
movsxd r9, dword [r12]
mov r8, qword [rbx + 0x4008]
mov edx, 2
mov eax, 3
mov rcx, r13
cmovne edx, eax
call fcn.1004bd50
test eax, eax
jne 0x1006d987
mov eax, dword [r12]
add dword [rbp + 0x1184], eax
mov eax, dword [r12]
add dword [rbp + 0x108], eax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x1006d5c6
cmp al, 0xa
je 0x1006d5c6
movsxd rax, dword [r12]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], 0
mov rdx, qword [rbx + 0x4008]
lea rcx, str.WWW_Authenticate:
call fcn.1004aad0
test eax, eax
je 0x1006d3af
mov eax, dword [rbp + 0x180]
cmp eax, 0x191
je 0x1006d3d9
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.1004aad0
test eax, eax
je 0x1006d427
mov eax, dword [rbp + 0x180]
cmp eax, 0x197
jne 0x1006d427
mov rcx, qword [rbx + 0x4008]
cmp eax, 0x197
mov esi, r15d
sete sil
call fcn.10065b40
test rax, rax
mov rdi, rax
je 0x1006d800
mov r8, rax
mov edx, esi
mov rcx, r13
call fcn.10066320
mov rcx, rdi
mov esi, eax
call qword [fcn.10021fb0]
test esi, esi
jne 0x1006d811
mov rsi, qword [rsp + 0x48]
jmp 0x1006d5af
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.1004aad0
test eax, eax
je 0x1006d498
mov r8d, dword [rbp + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1006d476
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbp
call fcn.1004b790
jmp 0x1006d5af
mov rcx, qword [rbx + 0x4008]
xor edx, edx
lea r9, [rbx + 0x4018]
lea r8d, [rdx + 0xa]
add rcx, 0xf
call fcn.10075a00
jmp 0x1006d5af
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.10066ae0
test eax, eax
je 0x1006d4c5
mov dword [rbx + 0x4028], 1
jmp 0x1006d5af
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.1004aad0
test eax, eax
je 0x1006d555
mov r8d, dword [rbp + 0x180]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1006d514
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbp
call fcn.1004b790
jmp 0x1006d5af
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.10066ae0
test eax, eax
je 0x1006d5af
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbp
call fcn.1004b790
mov rcx, r13
mov dword [rbx + 0x4020], 1
call fcn.100760e0
jmp 0x1006d5af
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.10066ae0
test eax, eax
je 0x1006d57f
mov dword [rbx + 0x4028], 1
jmp 0x1006d5af
mov rcx, qword [rbx + 0x4008]
lea r9, [rbp + 0x180]
lea r8, [rsp + 0x40]
lea rdx, str.HTTP_1._d__d
call fcn.100228e0
cmp eax, 2
jne 0x1006d5af
mov eax, dword [rbp + 0x180]
mov dword [rbp + 0x116c], eax
mov dword [r12], r15d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x1006d6b6
mov qword [rbx + 0x4010], rbx
cmp dword [rbp + 0x180], 0x197
jne 0x1006d69b
cmp dword [rbp + 0xe30], 0
jne 0x1006d69b
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x1006d614
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbp
call fcn.1004b790
jmp 0x1006d6a2
cmp dword [rbx + 0x4020], 0
je 0x1006d692
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbp
call fcn.1004b790
mov dword [rbp + 0x1d0], 1
mov rax, qword [rbx + 0x4008]
add rax, 1
cmp byte [rax], 0xa
jne 0x1006d64d
mov qword [rbx + 0x4008], rax
mov rdx, qword [rbx + 0x4008]
lea r9, [rsp + 0x50]
mov r8d, 1
add rdx, 1
mov rcx, r13
call fcn.100760f0
cmp eax, 0xffffffff
jne 0x1006d6a2
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbp
call fcn.1004b790
mov dword [rbx + 0x4004], r15d
mov dword [rbx + 0x4024], 2
jmp 0x1006d6a2
mov dword [rbx + 0x4004], r15d
jmp 0x1006d6a2
mov dword [rbx + 0x4004], r15d
cmp qword [rbx + 0x4018], 0
jne 0x1006d6b6
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], 0
jne 0x1006d1e0
mov r12d, dword [rsp + 0xc8]
jmp 0x1006d73f
cmp dword [rbp + 0x258], 0
je 0x1006d70a
cmp dword [rbp + 0xe20], 0
je 0x1006d70a
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rbp
mov dword [r13 + 0x3f8], 1
call fcn.1004b790
mov r12d, dword [rsp + 0xc8]
mov dword [rbx + 0x4004], r15d
jmp 0x1006d73f
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbp
mov r14d, 1
call fcn.1004b840
mov r12d, dword [rsp + 0xc8]
mov dword [rbx + 0x4004], r15d
jmp 0x1006d73f
mov r12d, dword [rsp + 0xc8]
mov dword [rbx + 0x4004], r15d
mov rcx, r13
call fcn.10070120
test eax, eax
jne 0x1006d818
test r14d, r14d
jne 0x1006d831
mov eax, 0x51eb851f
imul dword [rbp + 0x116c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1006d795
mov rcx, r13
call fcn.10067250
test eax, eax
jne 0x1006d987
cmp dword [r13 + 0x394], eax
je 0x1006d795
mov dword [rbx + 0x4028], 1
cmp dword [rbx + 0x4028], 0
je 0x1006d7ac
cmp qword [rbp + 0x1e0], 0
jne 0x1006d83b
cmp qword [rbp + 0x1e0], 0
je 0x1006d7cc
cmp dword [rbx + 0x4024], 2
jne 0x1006d7cc
mov edx, 1
mov rcx, r13
call fcn.1006cd80
cmp qword [rbp + 0x1e0], 0
je 0x1006d85e
mov rdi, qword [rsp + 0xd0]
mov r14d, dword [rsp + 0xd8]
jmp 0x1006cec0
mov rcx, rsi
call qword [fcn.10021fb0]
mov rcx, r12
call fcn.10066720
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1006d987
mov eax, edi
jmp 0x1006d987
mov eax, esi
jmp 0x1006d987
mov eax, Ordinal_46
jmp 0x1006d987
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbp
call fcn.1004b840
mov eax, reloc.WS2_32.dll_getservbyport
jmp 0x1006d987
mov rdi, qword [rsp + 0x58]
mov rcx, r13
mov rdx, qword [r13 + rdi*8 + 0x238]
call fcn.10052770
mov qword [r13 + rdi*8 + 0x238], 0xffffffffffffffff
jmp 0x1006d863
mov rdi, qword [rsp + 0x58]
mov eax, 0x51eb851f
imul dword [rbp + 0x116c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1006d923
cmp dword [rbx + 0x4028], 0
je 0x1006d8b8
cmp qword [rbp + 0x1e0], 0
je 0x1006d8b8
lea rdx, str.Connect_me_again_please_n
mov rcx, rbp
mov dword [r13 + 0x3f8], 1
call fcn.1004b790
mov rcx, r13
call fcn.1006ce20
jmp 0x1006d8f5
mov rcx, qword [rbp + 0x1e0]
call qword [fcn.10021fb0]
mov edx, 2
mov rcx, r13
mov qword [rbp + 0x1e0], r15
call fcn.10052920
mov rdx, qword [r13 + rdi*8 + 0x238]
mov rcx, r13
call fcn.10052770
mov qword [r13 + rdi*8 + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x4024], r15d
cmp dword [r13 + 0x3f8], 0
jne 0x1006d96f
mov r8d, dword [rbp + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbp
call fcn.1004b840
mov eax, reloc.WS2_32.dll_getservbyport
jmp 0x1006d987
mov dword [rbx + 0x4024], 2
mov rcx, qword [r13 + 0x468]
call qword [fcn.10021fb0]
mov qword [r13 + 0x468], r15
mov r8d, dword [rbp + 0x116c]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, rbp
mov dword [rbp + 0xe24], 1
call fcn.1004b790
mov dword [rbp + 0x1d0], r15d
mov dword [r13 + 0x3dc], r15d
xor eax, eax
jmp 0x1006d987
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbp
call fcn.1004b840
mov eax, Ordinal_30
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0xb8
ret