Function at 0x1800b0860
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 0x1800b12dd
cmp dword [rsi + 0x30], 2
je 0x1800b12dd
mov dword [rcx + 0x680], r14d
nop dword [rax + rax]
cmp dword [rsi + 0x30], 0
jne 0x1800b0b6f
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r13d
mov r8, rbp
mov rcx, rdi
call fcn.1800831b0
mov rcx, qword [rdi + 0x190]
call qword [fcn.1800cb340]
lea rcx, str._s:_d
mov r8d, r13d
mov rdx, rbp
mov qword [rdi + 0x190], r14
call fcn.180088f00
mov rbp, rax
test rax, rax
je 0x1800b114d
lea rcx, [rsp + 0x78]
mov edx, 0x20000
call fcn.1800846a0
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rbp
mov rcx, r15
call fcn.18009d5e0
mov rcx, rbp
mov ebx, eax
call qword [fcn.1800cb340]
test ebx, ebx
jne 0x1800b0b51
cmp dword [r15 + 0x3dc], 1
mov rbx, qword [rsp + 0x100]
mov ecx, dword [r15 + 0x6a0]
mov r12, r14
lea rax, [0x180115cd8]
lea r14, [0x180115cdc]
lea rbp, [0x18012eb74]
cmove r14, rax
mov r13, rbp
cmp rbx, qword [r15 + 0x340]
je 0x1800b09af
mov edx, Ordinal_60
mov rcx, rbx
call fcn.1800cc864
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x180110c28]
mov r9, rbp
cmovne r9, rax
lea rax, [0x180110c24]
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.180088f00
mov rbp, rax
test rax, rax
je 0x1800b1143
lea rdx, str.Host
mov rcx, r15
call fcn.18009ce50
test rax, rax
jne 0x1800b0a24
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.180088f00
mov r12, rax
test rax, rax
je 0x1800b113a
lea rdx, str.Proxy_Connection
mov rcx, r15
call fcn.18009ce50
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent
test rax, rax
lea rax, [0x18012eb74]
mov rcx, r15
cmovne rbx, rax
call fcn.18009ce50
test rax, rax
jne 0x1800b0a6c
cmp qword [rdi + 0xd78], rax
je 0x1800b0a6c
mov r13, qword [rdi + 0x17a0]
mov rax, qword [rdi + 0x1798]
lea rdx, [0x18012eb74]
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.180084840
mov ebx, eax
test r12, r12
je 0x1800b0ac9
mov rcx, r12
call qword [fcn.1800cb340]
mov rcx, rbp
call qword [fcn.1800cb340]
test ebx, ebx
jne 0x1800b0b2f
lea r8, [rsp + 0x78]
lea edx, [rbx + 1]
mov rcx, r15
call fcn.18009e380
mov ebx, eax
test eax, eax
jne 0x1800b0b2f
lea rdx, [0x180111380]
lea rcx, [rsp + 0x78]
call fcn.180084810
mov r12d, dword [rsp + 0xf8]
mov ebx, eax
test eax, eax
jne 0x1800b0b37
lea r8, [rdi + 0x1898]
lea rcx, [rsp + 0x78]
xor r9d, r9d
mov rdx, r15
mov dword [rsp + 0x20], r12d
call fcn.18009db90
mov ebx, eax
test eax, eax
je 0x1800b0b46
jmp 0x1800b0b37
mov r12d, dword [rsp + 0xf8]
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.180083310
mov r13d, dword [rsp + 0x108]
xor r14d, r14d
lea rcx, [rsp + 0x78]
call fcn.1800846c0
test ebx, ebx
jne 0x1800b1157
mov rbx, qword [rsp + 0x40]
mov dword [rsi + 0x30], 1
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.180084cb0
test rax, rax
jle 0x1800b12f3
mov edx, r12d
mov rcx, r15
call fcn.180085e70
test eax, eax
je 0x1800b12dd
cmp dword [rsi + 0x20], 0
mov r12d, r14d
je 0x1800b1075
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.180083060
mov ebx, eax
cmp eax, 0x51
je 0x1800b12dd
mov rcx, r15
call fcn.1800a7700
test eax, eax
jne 0x1800b1177
test ebx, ebx
jne 0x1800b1071
cmp qword [rsp + 0x50], 0
jle 0x1800b102e
cmp dword [rsi + 0x20], 1
jle 0x1800b0c78
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1800b0c2d
dec rax
mov qword [rsi + 0x28], rax
test rax, rax
jg 0x1800b101e
mov dword [rsi + 0x30], 2
jmp 0x1800b1071
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.1800afc30
cmp eax, 0xffffffff
jne 0x1800b101e
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.1800831b0
mov dword [rsi + 0x20], r14d
jmp 0x1800b1017
lea rdx, [rsp + 0xf0]
mov r8d, 1
mov rcx, rsi
call fcn.180084800
test eax, eax
jne 0x1800b115e
cmp byte [rsp + 0xf0], 0xa
jne 0x1800b101e
mov rcx, rsi
call fcn.1800848d0
mov rcx, rsi
mov rbx, rax
call fcn.1800848f0
cmp dword [rdi + 0x1018], 0
mov rbp, rax
je 0x1800b0cd6
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1800830f0
cmp dword [rdi + 0x1068], 0
jne 0x1800b0d09
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.180083890
test eax, eax
jne 0x1800b12df
movsxd rax, ebp
add qword [rdi + 0x1890], rax
add qword [rdi + 0x108], rax
movzx eax, byte [rbx]
cmp al, 0xd
je 0x1800b0f68
cmp al, 0xa
je 0x1800b0f68
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rbx
call fcn.18007d110
test eax, eax
je 0x1800b0d53
mov eax, dword [rdi + 0x150]
cmp eax, 0x191
je 0x1800b0d79
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rbx
call fcn.18007d110
test eax, eax
je 0x1800b0dc0
mov eax, dword [rdi + 0x150]
cmp eax, 0x197
jne 0x1800b0dc0
cmp eax, 0x197
mov rcx, rbx
mov ebp, r14d
sete bpl
call fcn.18009cee0
mov rbx, rax
test rax, rax
je 0x1800b114d
mov r8, rax
mov edx, ebp
mov rcx, r15
call fcn.18009d730
mov rcx, rbx
mov ebp, eax
call qword [fcn.1800cb340]
test ebp, ebp
je 0x1800b0f5b
mov eax, ebp
jmp 0x1800b12df
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rbx
call fcn.18007d110
test eax, eax
je 0x1800b0e33
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 0x1800b0e13
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1800831b0
mov rcx, rsi
call fcn.1800847e0
jmp 0x1800b101e
xor edx, edx
lea r9, [rsi + 0x28]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1800af350
mov rcx, rsi
call fcn.1800847e0
jmp 0x1800b101e
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rbx
call fcn.18009de00
test eax, eax
je 0x1800b0e61
mov rcx, rsi
mov dword [rsi + 0x38], 1
call fcn.1800847e0
jmp 0x1800b101e
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rdx, rbx
call fcn.18007d110
test eax, eax
je 0x1800b0f01
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 0x1800b0eb8
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1800831b0
mov rcx, rsi
call fcn.1800847e0
jmp 0x1800b101e
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.18009de00
test eax, eax
je 0x1800b0f5b
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.1800831b0
mov rcx, r15
mov dword [rsi + 0x34], 1
call fcn.1800afc00
mov rcx, rsi
call fcn.1800847e0
jmp 0x1800b101e
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.18009de00
test eax, eax
je 0x1800b0f2f
mov rcx, rsi
mov dword [rsi + 0x38], 1
call fcn.1800847e0
jmp 0x1800b101e
lea r9, [rdi + 0x150]
lea r8, [rsp + 0x48]
lea rdx, str.HTTP_1._d__d
mov rcx, rbx
call fcn.1800ca3a4
cmp eax, 2
jne 0x1800b0f5b
mov eax, dword [rdi + 0x150]
mov dword [rdi + 0x187c], eax
mov rcx, rsi
call fcn.1800847e0
jmp 0x1800b101e
cmp dword [rdi + 0x150], 0x197
jne 0x1800b100c
cmp dword [rdi + 0x17fc], 0
jne 0x1800b100c
mov r8, qword [rsi + 0x28]
mov dword [rsi + 0x20], 2
test r8, r8
je 0x1800b0fa6
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.1800831b0
jmp 0x1800b1010
cmp dword [rsi + 0x34], 0
je 0x1800b100c
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.1800831b0
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.1800afc30
cmp eax, 0xffffffff
jne 0x1800b1010
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.1800831b0
mov dword [rsi + 0x30], 2
mov dword [rsi + 0x20], r14d
cmp qword [rsi + 0x28], 0
jne 0x1800b101e
mov dword [rsi + 0x30], 2
cmp dword [rsi + 0x20], 0
je 0x1800b1075
mov rbx, qword [rsp + 0x40]
jmp 0x1800b0bb0
cmp dword [rdi + 0x6b0], 0
je 0x1800b105c
cmp dword [rdi + 0x13c8], 0
je 0x1800b105c
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, rdi
mov dword [r15 + 0x680], 1
call fcn.1800831b0
jmp 0x1800b1071
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.180083310
mov dword [rsi + 0x20], r14d
mov rcx, r15
call fcn.1800a7700
test eax, eax
jne 0x1800b1177
test r12d, r12d
jne 0x1800b116d
mov eax, 0x51eb851f
imul dword [rdi + 0x187c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1800b10c8
mov rcx, r15
call fcn.1800a0440
test eax, eax
jne 0x1800b12df
cmp dword [r15 + 0x684], eax
je 0x1800b10c8
mov dword [rsi + 0x38], 1
cmp dword [rsi + 0x38], 0
je 0x1800b10dc
cmp qword [rdi + 0x190], 0
jne 0x1800b1181
cmp qword [rdi + 0x190], 0
je 0x1800b11a4
cmp dword [rsi + 0x30], 2
jne 0x1800b1112
mov rbx, qword [r15 + 0xb68]
mov rcx, rbx
call fcn.1800847e0
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 0x1800b11a4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x100]
mov r12d, dword [rsp + 0xf8]
jmp 0x1800b08d0
mov rcx, rbp
call qword [fcn.1800cb340]
lea rcx, [rsp + 0x78]
call fcn.1800846c0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1800b12df
mov eax, ebx
jmp 0x1800b12df
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.180083310
mov eax, gethostname
jmp 0x1800b12df
mov eax, Ordinal_45
jmp 0x1800b12df
mov rbx, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [r15 + rbx*8 + 0x4c0]
call fcn.180085c60
mov qword [r15 + rbx*8 + 0x4c0], 0xffffffffffffffff
jmp 0x1800b11a9
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 0x1800b1285
cmp dword [rsi + 0x38], 0
je 0x1800b1215
cmp qword [rdi + 0x190], 0
je 0x1800b1215
lea rdx, str.Connect_me_again_please_n
mov rcx, rdi
mov dword [r15 + 0x680], 1
call fcn.1800831b0
mov rcx, qword [r15 + 0xb68]
mov dword [rcx + 0x30], 2
call fcn.1800846c0
mov rcx, qword [r15]
lea rdx, str.CONNECT_phase_completed__n
call fcn.1800831b0
jmp 0x1800b1252
mov rcx, qword [rdi + 0x190]
call qword [fcn.1800cb340]
mov edx, 2
mov rcx, r15
mov qword [rdi + 0x190], r14
call fcn.180085e20
mov rdx, qword [r15 + rbx*8 + 0x4c0]
mov rcx, r15
call fcn.180085c60
mov qword [r15 + rbx*8 + 0x4c0], 0xffffffffffffffff
mov dword [rsi + 0x30], r14d
cmp dword [r15 + 0x680], 0
jne 0x1800b12dd
mov rcx, rsi
call fcn.1800846c0
mov r8d, dword [rdi + 0x150]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.180083310
mov eax, gethostname
jmp 0x1800b12df
mov dword [rsi + 0x30], 2
mov rcx, qword [rdi + 0x1798]
call qword [fcn.1800cb340]
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.1800831b0
mov dword [rdi + 0x64c], r14d
mov rcx, rsi
mov dword [r15 + 0x6b8], r14d
call fcn.1800846c0
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.180083310
mov eax, Ordinal_32
jmp 0x1800b12df