Function at 0x1801381b0
Capabilities:
Check http status code

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0xc0
mov rdi, qword [rcx]
mov r15, rcx
mov ecx, 0x36ee80
mov dword [rsp + 0x78], 0
mov eax, dword [rdi + 0x268]
test eax, eax
cmovne ecx, eax
movsxd rax, edx
mov dword [rsp + 0x74], ecx
xor r13d, r13d
xor ebx, ebx
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], ebx
lea rcx, [rax + 0x32]
mov qword [rsp + 0x90], rcx
lea rdx, [rax + 0x176]
mov rcx, qword [r15 + rcx*8]
mov qword [rsp + 0x80], rcx
xor ecx, ecx
cmp dword [r15 + rdx*4], 2
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x60], rdx
jne 0x18013824b
xor eax, eax
add rsp, 0xc0
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xa8], r14
mov dword [r15 + 0x298], ecx
nop word [rax + rax]
cmp dword [r15 + rdx*4], 0
je 0x1801389aa
xor ebp, ebp
mov qword [rsp + 0x68], 0
mov esi, 1
lea r12, [rdi + 0x780]
xor r14d, r14d
mov dword [rsp + 0x40], esi
lea rbx, [rdi + 0x780]
test esi, esi
je 0x180138669
test ecx, ecx
jne 0x18013894a
call fcn.180110cd0
mov rdx, qword [r15 + 0x17c]
mov rcx, rax
call fcn.180110c40
mov ecx, dword [rsp + 0x74]
sub ecx, eax
test ecx, ecx
jle 0x1801388b3
mov r9d, 0x3e8
mov rdx, 0xffffffffffffffff
cmp ecx, r9d
mov r8, rdx
cmovl r9d, ecx
mov rcx, qword [rsp + 0x80]
call fcn.180118320
cmp eax, 0xffffffff
je 0x18013882f
test eax, eax
je 0x180138646
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x68]
mov r8, r12
mov rcx, r15
call fcn.180118aa0
cmp eax, 0x51
je 0x180138656
test eax, eax
je 0x180138347
xor esi, esi
mov dword [rsp + 0x40], esi
jmp 0x180138646
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x180138393
xor esi, esi
mov dword [rsp + 0x40], esi
cmp dword [rdi + 0x190], esi
je 0x180138377
cmp dword [rdi + 0x8880], esi
je 0x180138377
mov dword [r15 + 0x298], 1
jmp 0x180138646
lea rdx, str.Proxy_CONNECT_aborted
mov dword [rsp + 0x54], 1
mov rcx, rdi
call fcn.180118930
jmp 0x180138646
add qword [rsp + 0x68], rcx
cmp esi, 1
jle 0x180138438
xor edx, edx
lea r12, [rdi + 0x780]
mov qword [rsp + 0x68], rdx
test r13, r13
je 0x1801383d0
sub r13, rcx
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x180138646
mov esi, edx
mov dword [rsp + 0x40], edx
jmp 0x180138646
mov qword [rsp + 0x88], rdx
lea r9, [rsp + 0x88]
mov r8, rcx
lea rdx, [rdi + 0x780]
mov rcx, r15
call fcn.18013a5f0
mov rcx, rdi
cmp eax, 0xffffffff
jne 0x18013841f
lea rdx, str.chunk_reading_DONE_n
call fcn.180118a00
mov rax, qword [rsp + 0x60]
xor esi, esi
mov ecx, 2
mov dword [rsp + 0x40], esi
mov dword [r15 + rax*4], ecx
jmp 0x180138646
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180118a00
jmp 0x180138646
xor r13d, r13d
test rcx, rcx
jle 0x180138641
nop dword [rax]
nop dword [rax + rax]
inc ebp
inc r14
cmp byte [r12], 0xa
jne 0x18013862b
cmp dword [rdi + 0x41c], 0
movsxd rsi, ebp
je 0x180138484
mov r9, rsi
mov qword [rsp + 0x20], r15
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.180118820
xor edx, edx
mov r9, rsi
cmp dword [rdi + 0x400], edx
mov r8, rbx
mov rcx, r15
setne dl
add edx, 2
call fcn.180118680
add dword [rdi + 0x8994], ebp
add dword [rdi + 0x60], ebp
test eax, eax
jne 0x180138af6
movzx eax, byte [rbx]
cmp al, 0xd
je 0x1801386ac
cmp al, 0xa
je 0x1801386ac
movzx ebp, byte [r14 + rbx]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [r14 + rbx], 0
mov rdx, rbx
call fcn.1801243e0
test eax, eax
je 0x1801384f5
mov edx, dword [rdi + 0xc8]
cmp edx, 0x191
je 0x18013851c
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rbx
call fcn.1801243e0
test eax, eax
je 0x180138534
mov edx, dword [rdi + 0xc8]
cmp edx, 0x197
jne 0x180138534
mov r8, rbx
mov rcx, r15
call fcn.18011d610
test eax, eax
jne 0x180138af6
jmp 0x180138618
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rbx
call fcn.1801243e0
test eax, eax
je 0x180138566
xor edx, edx
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.18016abd0
mov qword [rsp + 0x48], rax
jmp 0x180138618
lea r8, str.close
mov rcx, rbx
lea rdx, str.Connection:
call fcn.18011d330
test eax, eax
je 0x18013858d
mov dword [rsp + 0x50], 1
jmp 0x180138618
lea r8, str.chunked
mov rcx, rbx
lea rdx, str.Transfer_Encoding:
call fcn.18011d330
test eax, eax
je 0x1801385c8
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.180118a00
mov rcx, r15
mov dword [rsp + 0x70], 1
call fcn.18013a5d0
jmp 0x180138618
lea r8, str.close
mov rcx, rbx
lea rdx, str.Proxy_Connection:
call fcn.18011d330
test eax, eax
je 0x1801385ec
mov dword [rsp + 0x50], 1
jmp 0x180138618
lea r9, [rdi + 0xc8]
mov rcx, rbx
lea r8, [rsp + 0x78]
lea rdx, str.HTTP_1._d__d
call fcn.18000eef0
cmp eax, 2
jne 0x180138618
mov eax, dword [rdi + 0xc8]
mov dword [rdi + 0x8984], eax
mov rcx, qword [rsp + 0x58]
mov byte [r14 + rbx], bpl
xor ebp, ebp
xor r14d, r14d
lea rbx, [r12 + 1]
inc r13d
inc r12
movsxd rax, r13d
cmp rax, rcx
jl 0x180138450
mov esi, dword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rcx, r15
call fcn.180121010
test eax, eax
jne 0x1801388a9
cmp qword [rsp + 0x68], 0x4000
mov ecx, dword [rsp + 0x54]
jb 0x1801382a0
test ecx, ecx
jne 0x18013894a
cmp dword [rdi + 0x8984], 0xc8
je 0x18013884b
mov rcx, r15
call fcn.18011d420
test eax, eax
jne 0x180138af6
cmp dword [r15 + 0x240], eax
je 0x18013884b
mov ebx, 1
mov dword [rsp + 0x50], ebx
jmp 0x180138853
cmp dword [rdi + 0xc8], 0x197
lea r12, [rdi + 0x780]
mov qword [rsp + 0x68], 0
jne 0x1801387e5
cmp dword [rdi + 0x8890], 0
jne 0x1801387e5
mov r8, qword [rsp + 0x48]
mov dword [rsp + 0x40], 2
test r8, r8
je 0x180138733
lea rdx, str.Ignore__lld_bytes_of_response_body_n
mov rcx, rdi
call fcn.180118a00
movsxd rax, r13d
xor esi, esi
sub rax, qword [rsp + 0x58]
mov ecx, 2
mov r13, qword [rsp + 0x48]
add r13, rax
mov eax, 2
test r13, r13
mov qword [rsp + 0x48], r13
cmovg esi, eax
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x40], esi
mov dword [r15 + rax*4], ecx
jmp 0x180138646
cmp dword [rsp + 0x70], 0
je 0x1801387c9
mov r8, qword [rsp + 0x58]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r13d
mov rcx, rdi
sub r8, rax
mov dword [rdi + 0x110], 1
call fcn.180118a00
cmp byte [rbx + 1], 0xa
lea rax, [rbx + 1]
mov r8, qword [rsp + 0x58]
lea r9, [rsp + 0x58]
cmovne rax, rbx
mov rcx, r15
mov rbx, rax
lea eax, [r13 + 1]
cmovne eax, r13d
cdqe
sub r8, rax
lea rdx, [rbx + 1]
call fcn.18013a5f0
mov rcx, rdi
cmp eax, 0xffffffff
jne 0x1801387b2
lea rdx, str.chunk_reading_DONE_n
call fcn.180118a00
xor eax, eax
mov dword [rsp + 0x40], eax
mov esi, eax
jmp 0x180138817
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180118a00
mov esi, dword [rsp + 0x40]
jmp 0x180138817
mov rax, qword [rsp + 0x60]
xor esi, esi
mov ecx, 2
mov dword [rsp + 0x40], esi
mov r13, r8
mov dword [r15 + rax*4], ecx
jmp 0x180138646
xor esi, esi
cmp dword [rdi + 0x8984], 0xc8
mov dword [rsp + 0x40], esi
jne 0x180138817
mov r8, qword [rsp + 0x58]
lea eax, [r13 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x180138817
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, rdi
call fcn.180118930
mov rax, qword [rsp + 0x60]
mov ecx, 2
mov r13, qword [rsp + 0x48]
mov dword [r15 + rax*4], ecx
jmp 0x180138646
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [rsp + 0x54], 1
mov rcx, rdi
call fcn.180118930
jmp 0x180138646
mov ebx, dword [rsp + 0x50]
test ebx, ebx
je 0x18013885d
cmp qword [rdi + 0x120], 0
jne 0x1801388cc
mov rax, qword [rdi + 0x120]
mov rdx, qword [rsp + 0x60]
test rax, rax
je 0x1801388e8
cmp dword [r15 + rdx*4], 2
jne 0x18013889b
mov dword [r15 + rdx*4], 0
xor r8d, r8d
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, rdi
call fcn.180118a00
mov rax, qword [rdi + 0x120]
mov rdx, qword [rsp + 0x60]
test rax, rax
je 0x1801388e8
mov ecx, dword [rsp + 0x54]
jmp 0x180138270
mov eax, Ordinal_46
jmp 0x180138af6
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.180118930
mov eax, gethostname
jmp 0x180138af6
mov rsi, qword [rsp + 0x90]
mov rcx, r15
mov rdx, qword [r15 + rsi*8]
call fcn.1801190b0
mov qword [r15 + rsi*8], 0xffffffffffffffff
mov r8d, dword [rdi + 0xc8]
cmp r8d, 0xc8
je 0x180138954
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.180118930
test ebx, ebx
je 0x180138920
cmp qword [rdi + 0x120], 0
je 0x180138920
mov dword [r15 + 0x298], 1
mov rcx, qword [rdi + 0x120]
test rcx, rcx
je 0x18013893d
call qword [fcn.18015d8ec]
mov qword [rdi + 0x120], 0
mov rax, qword [rsp + 0x60]
mov dword [r15 + rax*4], 0
mov eax, gethostname
jmp 0x180138af6
mov rax, qword [rsp + 0x60]
mov ecx, 2
mov dword [r15 + rax*4], ecx
mov rcx, qword [r15 + 0x2e0]
test rcx, rcx
je 0x180138974
call qword [fcn.18015d8ec]
xor ebx, ebx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r15 + 0x2e0], rbx
mov rcx, rdi
mov dword [rdi + 0x8884], 1
call fcn.180118a00
mov dword [rdi + 0x110], ebx
xor eax, eax
mov dword [r15 + 0x27c], ebx
jmp 0x180138af6
movzx r14d, word [rsp + 0x108]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov rbp, qword [rsp + 0x100]
mov r9d, r14d
mov r8, rbp
mov rcx, rdi
call fcn.180118a00
mov rcx, qword [rdi + 0x120]
test rcx, rcx
je 0x1801389ed
call qword [fcn.18015d8ec]
mov qword [rdi + 0x120], 0
call fcn.18011cd60
mov rsi, rax
test rax, rax
je 0x180138af1
mov r8d, r14d
lea rcx, str._s:_hu
mov rdx, rbp
call sym.WebKeyAPICPPDLLx64.dll_curl_maprintf
mov rbp, rax
test rax, rax
je 0x180138ae8
mov r9d, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r15
call fcn.18011d7d0
mov rcx, rbp
mov ebx, eax
call qword [fcn.18015d8ec]
test ebx, ebx
jne 0x180138c3f
cmp dword [r15 + 0x170], 1
lea rbx, [0x1801ca568]
mov r8, qword [rsp + 0x100]
lea rax, [0x1801b0cec]
lea rcx, [0x1801b017c]
mov dword [rsp + 0x20], r14d
lea r12, [0x1801b0ce8]
mov r9, rbx
cmove r12, rax
mov rdx, rbx
mov eax, dword [r15 + 0x258]
mov rbp, rbx
test eax, eax
mov r13, rbx
cmovne r9, rcx
lea rcx, [0x1801b0180]
cmovne rdx, rcx
lea rcx, str._s_s_s:_hu
call sym.WebKeyAPICPPDLLx64.dll_curl_maprintf
mov r14, rax
test rax, rax
je 0x180138ae8
lea rdx, str.Host:
mov rcx, rdi
call fcn.18011d2b0
test rax, rax
jne 0x180138b1d
mov rdx, r14
lea rcx, str.Host:__s_r_n
call sym.WebKeyAPICPPDLLx64.dll_curl_maprintf
mov rbp, rax
test rax, rax
jne 0x180138b1d
mov rcx, r14
call qword [fcn.18015d8ec]
mov rcx, rsi
call qword [fcn.18015d8ec]
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov r12, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xa8]
add rsp, 0xc0
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.18011d2b0
test rax, rax
lea r15, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
mov rcx, rdi
cmovne r15, rbx
call fcn.18011d2b0
test rax, rax
mov rax, qword [rsp + 0xf0]
jne 0x180138b67
cmp qword [rdi + 0x540], 0
je 0x180138b67
mov r13, qword [rax + 0x2e8]
mov rax, qword [rax + 0x2e0]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov qword [rsp + 0x38], r15
test rax, rax
mov qword [rsp + 0x30], r13
mov r9, r12
cmovne rbx, rax
mov r8, r14
mov qword [rsp + 0x28], rbx
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call fcn.18011cf50
mov ebx, eax
test rbp, rbp
je 0x180138bb4
cmp byte [rbp], 0
je 0x180138bb4
mov rcx, rbp
call qword [fcn.18015d8ec]
mov rcx, r14
call qword [fcn.18015d8ec]
test ebx, ebx
jne 0x180138c29
mov r14, qword [rsp + 0xf0]
mov rdx, rsi
mov rcx, r14
call fcn.18011cfe0
mov ebx, eax
test eax, eax
jne 0x180138c29
lea rdx, [0x1801cca18]
mov rcx, rsi
call fcn.18011cf50
mov ebx, eax
test eax, eax
jne 0x180138c29
mov eax, dword [rsp + 0xf8]
lea r8, [rdi + 0x8998]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r14
mov rcx, rsi
call fcn.18011cd70
mov ebx, eax
test eax, eax
jne 0x180138c29
mov rax, qword [rsp + 0x60]
mov dword [r14 + rax*4], 1
xor eax, eax
jmp 0x180138af6
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.180118930
mov eax, ebx
jmp 0x180138af6
mov rcx, rsi
call qword [fcn.18015d8ec]
mov eax, ebx
jmp 0x180138af6