Function at 0x140093260
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 r13, qword [rcx]
mov r12, rcx
add rcx, 0x1a8
movsxd rax, edx
xor r15d, r15d
mov dword [rsp + 0x80], 0
xor bl, bl
mov qword [rsp + 0x58], r15
lea r14, [r12 + 0x790]
mov byte [rsp + 0xf0], bl
mov rdi, qword [r12 + rax*8 + 0x1a8]
lea rcx, [rcx + rax*8]
lea r14, [r14 + rax*4]
mov qword [rsp + 0x90], rcx
xor cl, cl
mov qword [rsp + 0x78], rdi
cmp dword [r14], 2
mov ebp, r9d
mov rsi, r8
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r14
je 0x140093d4b
mov byte [r12 + 0x34d], cl
nop word [rax + rax]
cmp dword [r14], 0
jne 0x14009355f
mov r9d, ebp
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rsi
mov rcx, r13
call fcn.1400706a0
mov rcx, qword [r13 + 0x178]
call qword [case.0x14007de5b.0]
mov qword [r13 + 0x178], 0
call fcn.140076630
mov rdi, rax
test rax, rax
je 0x140093c25
mov r8d, ebp
lea rcx, str._s:_hu
mov rdx, rsi
call fcn.140072780
mov rsi, rax
test rax, rax
je 0x140093c1d
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.140077340
mov rcx, rsi
mov ebx, eax
call qword [case.0x14007de5b.0]
test ebx, ebx
jne 0x140093543
cmp dword [r12 + 0x188], 1
lea rcx, [0x14011ffc6]
mov r8, qword [rsp + 0x100]
lea rax, [0x14012178c]
mov r9, rcx
mov dword [rsp + 0x20], ebp
lea rdx, [0x1401209ec]
mov rsi, rcx
mov r14, rcx
lea r15, [0x140121788]
cmove r15, rax
movzx eax, byte [r12 + 0x33e]
test al, al
lea rax, [0x1401209f0]
cmovne r9, rdx
mov rdx, rcx
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
call fcn.140072780
mov rbp, rax
test rax, rax
je 0x140093c1d
lea rdx, str.Host:
mov rcx, r12
call fcn.140076c20
test rax, rax
jne 0x140093430
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.140072780
mov rsi, rax
test rax, rax
je 0x140093c14
lea rdx, str.Proxy_Connection:
mov rcx, r12
call fcn.140076c20
test rax, rax
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x14011ffc6]
mov rcx, r12
lea rdx, str.User_Agent:
cmovne rbx, rax
call fcn.140076c20
test rax, rax
jne 0x140093479
cmp qword [r13 + 0x548], rax
je 0x140093479
mov r14, qword [r12 + 0x398]
mov rax, qword [r12 + 0x390]
lea rcx, [0x14011ffc6]
mov qword [rsp + 0x38], rbx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
test rax, rax
mov qword [rsp + 0x30], r14
mov r9, r15
mov r8, rbp
cmovne rcx, rax
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140076820
mov ebx, eax
test rsi, rsi
je 0x1400934cd
cmp byte [rsi], 0
je 0x1400934cd
mov rcx, rsi
call qword [case.0x14007de5b.0]
mov rcx, rbp
call qword [case.0x14007de5b.0]
test ebx, ebx
jne 0x140093524
mov r8, rdi
mov dl, 1
mov rcx, r12
call fcn.1400768a0
mov ebx, eax
test eax, eax
jne 0x140093524
lea rdx, [0x14012077c]
mov rcx, rdi
call fcn.140076820
mov ebx, eax
test eax, eax
jne 0x140093524
mov eax, dword [rsp + 0xf8]
lea r8, [r13 + 0x8a40]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rdi
call fcn.140076640
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x140093539
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.1400705e0
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140076600
test ebx, ebx
jne 0x140093c2f
mov rdi, qword [rsp + 0x78]
mov dword [r14], 1
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.140071810
test eax, eax
jle 0x140093d4f
cmp byte [rsp + 0x110], 0
jne 0x140093598
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rdi
call fcn.14006fea0
test eax, eax
je 0x140093d4b
lea rax, [r13 + 0x7c8]
mov qword [rsp + 0x68], 0
mov r14d, 1
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov dword [rsp + 0x44], r14d
mov rbp, rax
mov rsi, rax
xor edi, edi
test r14d, r14d
je 0x140093b63
cmp dword [rsp + 0x50], 0
jne 0x140093d5e
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.140071810
test eax, eax
jle 0x140093d4f
mov rcx, qword [rsp + 0x78]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.14006fea0
cmp eax, 0xffffffff
je 0x140093b28
test eax, eax
je 0x140093b3f
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x68]
mov r8, rbp
mov rcx, r12
call fcn.140070740
cmp eax, 0x51
je 0x140093b4f
test eax, eax
je 0x140093659
xor r14d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x140093b3f
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x1400936a6
xor r14d, r14d
mov dword [rsp + 0x44], r14d
cmp dword [r13 + 0x1e8], r14d
je 0x14009369a
cmp dword [r13 + 0x8940], r14d
je 0x14009369a
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x34d], 1
mov rcx, r13
call fcn.1400706a0
jmp 0x140093b3f
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x140093b2f
add qword [rsp + 0x68], rcx
cmp r14d, 1
jle 0x140093750
xor edx, edx
lea rax, [r13 + 0x7c8]
mov qword [rsp + 0x68], rdx
mov rbp, rax
mov qword [rsp + 0x70], rax
test r15, r15
je 0x1400936ed
sub r15, rcx
mov qword [rsp + 0x58], r15
test r15, r15
jg 0x140093b3f
mov r14d, edx
mov dword [rsp + 0x44], edx
jmp 0x140093b3f
mov qword [rsp + 0x88], rdx
lea r9, [rsp + 0x88]
mov r8, rcx
mov rdx, rax
mov rcx, r12
call fcn.140094f80
mov rcx, r13
cmp eax, 0xffffffff
jne 0x140093737
lea rdx, str.chunk_reading_DONE_n
call fcn.1400706a0
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rax], 2
jmp 0x140093b3f
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400706a0
jmp 0x140093b3f
xor r15d, r15d
test rcx, rcx
jle 0x140093b3f
nop dword [rax]
inc ebx
inc rdi
cmp byte [rbp], 0xa
jne 0x140093978
cmp byte [r13 + 0x448], 0
je 0x140093791
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov qword [rsp + 0x20], r12
mov rcx, r13
call fcn.140070480
cmp byte [r13 + 0x43c], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
cmovne edx, eax
mov r8, rsi
mov rcx, r12
call fcn.140070460
add dword [r13 + 0x8a3c], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x140093d63
movzx eax, byte [rsi]
cmp al, 0xd
je 0x140093999
cmp al, 0xa
je 0x140093999
movzx ebp, byte [rdi + rsi]
lea r14, [rdi + rsi]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [r14], 0
mov rdx, rsi
lea rcx, str.WWW_Authenticate:
call fcn.14007cb10
test eax, eax
je 0x140093810
mov eax, dword [r13 + 0x128]
cmp eax, 0x191
je 0x140093837
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.14007cb10
test eax, eax
je 0x14009387d
mov eax, dword [r13 + 0x128]
cmp eax, 0x197
jne 0x14009387d
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.140076e00
mov rbx, rax
test rax, rax
je 0x140093c25
mov r8, rax
movzx edx, dil
mov rcx, r12
call fcn.1400770f0
mov rcx, rbx
mov edi, eax
call qword [case.0x14007de5b.0]
test edi, edi
je 0x140093963
mov eax, edi
jmp 0x140093d63
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.14007cb10
test eax, eax
je 0x1400938af
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoll
mov qword [rsp + 0x58], rax
jmp 0x140093963
lea r8, [0x140121c28]
mov rcx, rsi
lea rdx, str.Connection:
call fcn.140076d20
test al, al
je 0x1400938d6
mov byte [rsp + 0xf0], 1
jmp 0x140093963
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.140076d20
test al, al
je 0x14009390e
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.1400706a0
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.140094f70
jmp 0x140093963
lea r8, [0x140121c28]
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.140076d20
test al, al
je 0x140093932
mov byte [rsp + 0xf0], 1
jmp 0x140093963
lea r9, [r13 + 0x128]
mov rcx, rsi
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
call fcn.1400020c0
cmp eax, 2
jne 0x140093963
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8a2c], eax
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
mov byte [r14], bpl
xor edi, edi
mov rbp, qword [rsp + 0x70]
lea rsi, [rbp + 1]
inc r15d
inc rbp
movsxd rax, r15d
mov qword [rsp + 0x70], rbp
cmp rax, rcx
jl 0x140093760
mov r14d, dword [rsp + 0x44]
jmp 0x140093b3f
cmp dword [r13 + 0x128], 0x197
lea rax, [r13 + 0x7c8]
mov rbp, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
jne 0x140093ae6
cmp byte [r13 + 0x8948], 0
jne 0x140093ae6
mov r8, qword [rsp + 0x58]
mov r14d, 2
mov dword [rsp + 0x44], r14d
test r8, r8
je 0x140093a2a
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.1400706a0
mov rcx, qword [rsp + 0x58]
movsxd rax, r15d
sub rax, qword [rsp + 0x60]
add rcx, rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rcx
test rcx, rcx
jg 0x140093b20
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x140093b3f
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x140093ad1
mov r8, qword [rsp + 0x60]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r15d
mov rcx, r13
sub r8, rax
mov byte [r13 + 0x16d], 1
call fcn.1400706a0
cmp byte [rsi + 1], 0xa
jne 0x140093a65
inc rsi
inc r15d
mov r8, qword [rsp + 0x60]
lea rdx, [rsi + 1]
movsxd rax, r15d
lea r9, [rsp + 0x60]
sub r8, rax
mov rcx, r12
call fcn.140094f80
mov rcx, r13
cmp eax, 0xffffffff
jne 0x140093ab3
lea rdx, str.chunk_reading_DONE_n
call fcn.1400706a0
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rax], 2
mov dword [rax], 2
jmp 0x140093b3f
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400706a0
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x140093b3f
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rax], 2
jmp 0x140093b3f
xor r14d, r14d
cmp dword [r13 + 0x8a2c], 0xc8
mov dword [rsp + 0x44], r14d
jne 0x140093b1b
mov r8, qword [rsp + 0x60]
lea eax, [r15 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x140093b1b
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.1400705e0
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x140093b3f
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x50], 1
call fcn.1400705e0
mov rcx, r12
call fcn.14007b0b0
test eax, eax
jne 0x140093c36
cmp qword [rsp + 0x68], 0x4000
mov r15, qword [rsp + 0x58]
jb 0x1400935c2
cmp dword [rsp + 0x50], 0
jne 0x140093d5e
cmp dword [r13 + 0x8a2c], 0xc8
je 0x140093ba0
mov rcx, r12
call fcn.140076f00
test eax, eax
jne 0x140093d63
cmp byte [r12 + 0x338], al
je 0x140093ba0
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x140093bac
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x140093bba
cmp qword [r13 + 0x178], 0
jne 0x140093c40
cmp qword [r13 + 0x178], 0
mov r14, qword [rsp + 0x48]
je 0x140093c5c
cmp dword [r14], 2
jne 0x140093bec
xor r8d, r8d
mov dword [r14], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r13
call fcn.1400706a0
cmp qword [r13 + 0x178], 0
je 0x140093c5c
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
jmp 0x140093300
mov rcx, rbp
call qword [case.0x14007de5b.0]
mov rcx, rdi
call fcn.140076600
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140093d63
mov eax, ebx
jmp 0x140093d63
mov eax, Ordinal_46
jmp 0x140093d63
mov rdi, qword [rsp + 0x90]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.140070d60
mov qword [rdi], 0xffffffffffffffff
jmp 0x140093c64
mov rdi, qword [rsp + 0x90]
cmp dword [r13 + 0x128], 0xc8
je 0x140093cfe
test bl, bl
je 0x140093c9d
cmp qword [r13 + 0x178], 0
je 0x140093c9d
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x34d], 1
mov rcx, r13
call fcn.1400706a0
jmp 0x140093cd0
mov rcx, qword [r13 + 0x178]
call qword [case.0x14007de5b.0]
mov qword [r13 + 0x178], 0
mov rcx, r12
mov byte [r12 + 0x338], 1
mov rdx, qword [rdi]
call fcn.140070d60
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r12 + 0x34d], 0
jne 0x140093d4b
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.1400705e0
jmp 0x140093d5e
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
mov rcx, qword [r12 + 0x390]
call qword [case.0x14007de5b.0]
mov qword [r12 + 0x390], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r13
mov byte [r13 + 0x8944], 1
call fcn.1400706a0
mov byte [r13 + 0x16d], 0
mov byte [r12 + 0x347], 0
xor eax, eax
jmp 0x140093d63
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.1400705e0
mov eax, gethostname
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret