Function at 0x180049c80
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 r15, qword [rcx]
mov r12, rcx
add rcx, 0x1a8
movsxd rax, edx
xor r13d, r13d
mov dword [rsp + 0x80], 0
xor bl, bl
mov qword [rsp + 0x48], r13
lea r14, [r12 + 0x7a0]
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], r13d
mov qword [rsp + 0x58], r14
je 0x18004a783
mov byte [r12 + 0x35e], cl
nop word [rax + rax]
cmp dword [r14], 0
jne 0x180049f5a
mov r9d, ebp
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rsi
mov rcx, r15
call fcn.180028610
mov rcx, qword [r15 + 0x178]
call qword [fcn.18009ae1c]
mov qword [r15 + 0x178], 0
call fcn.18002e180
mov rdi, rax
test rax, rax
je 0x18004a65d
mov r8d, ebp
lea rcx, str._s:_hu
mov rdx, rsi
call fcn.18002a570
mov rsi, rax
test rax, rax
je 0x18004a655
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.18002eea0
mov rcx, rsi
mov ebx, eax
call qword [fcn.18009ae1c]
test ebx, ebx
jne 0x180049f3e
cmp dword [r12 + 0x188], 1
lea rax, [0x1800c810c]
mov r8, qword [rsp + 0x100]
lea rcx, [0x1800c7224]
lea r14, [0x1800c8108]
mov dword [rsp + 0x20], ebp
cmove r14, rax
lea r9, [0x1800e2695]
movzx eax, byte [r12 + 0x34f]
lea rdx, [0x1800e2695]
test al, al
lea rsi, [0x1800e2695]
lea rax, [0x1800c7228]
cmovne r9, rcx
lea rbx, [0x1800e2695]
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
call fcn.18002a570
mov rbp, rax
test rax, rax
je 0x18004a655
lea rdx, str.Host:
mov rcx, r12
call fcn.18002e780
test rax, rax
jne 0x180049e59
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.18002a570
mov rsi, rax
test rax, rax
je 0x18004a64c
lea rdx, str.User_Agent:
mov rcx, r12
call fcn.18002e780
test rax, rax
jne 0x180049e7e
cmp qword [r15 + 0x548], rax
je 0x180049e7e
mov rbx, qword [r12 + 0x3a8]
mov rax, qword [r12 + 0x3a0]
lea rcx, [0x1800e2695]
test rax, rax
mov qword [rsp + 0x30], rbx
mov r9, r14
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.18002e370
mov ebx, eax
test rsi, rsi
je 0x180049ecd
cmp byte [rsi], 0
je 0x180049ecd
mov rcx, rsi
call qword [fcn.18009ae1c]
mov rcx, rbp
call qword [fcn.18009ae1c]
test ebx, ebx
jne 0x180049f24
mov r8, rdi
mov dl, 1
mov rcx, r12
call fcn.18002e3f0
mov ebx, eax
test eax, eax
jne 0x180049f24
lea rdx, [0x1800c6fec]
mov rcx, rdi
call fcn.18002e370
mov ebx, eax
test eax, eax
jne 0x180049f24
mov eax, dword [rsp + 0xf8]
lea r8, [r15 + 0x8a70]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rdi
call fcn.18002e190
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x180049f39
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r15
call fcn.180028550
mov r14, qword [rsp + 0x58]
mov rcx, rdi
call fcn.18002e150
test ebx, ebx
jne 0x18004a667
mov rdi, qword [rsp + 0x78]
mov dword [r14], 1
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.180029690
test eax, eax
jle 0x18004a787
cmp byte [rsp + 0x110], 0
jne 0x180049f93
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rdi
call fcn.180027e80
test eax, eax
je 0x18004a783
lea rax, [r15 + 0x7d8]
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
nop dword [rax]
test r14d, r14d
je 0x18004a3c8
cmp dword [rsp + 0x50], 0
jne 0x18004a796
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.180029690
test eax, eax
jle 0x18004a787
mov rcx, qword [rsp + 0x78]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.180027e80
cmp eax, 0xffffffff
je 0x18004a5c1
test eax, eax
je 0x18004a3a9
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.1800286b0
cmp eax, 0x51
je 0x18004a3b9
test eax, eax
je 0x18004a057
xor r14d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x18004a3a9
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x18004a0b4
xor r14d, r14d
mov dword [rsp + 0x44], r14d
cmp dword [r15 + 0x1e8], r14d
je 0x18004a098
cmp dword [r15 + 0x8950], r14d
je 0x18004a098
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x35e], 1
mov rcx, r15
call fcn.180028610
jmp 0x18004a3a9
lea rdx, str.Proxy_CONNECT_aborted
mov dword [rsp + 0x50], 1
mov rcx, r15
call fcn.180028550
jmp 0x18004a3a9
add qword [rsp + 0x68], rcx
cmp r14d, 1
jle 0x18004a15e
xor edx, edx
lea rax, [r15 + 0x7d8]
mov qword [rsp + 0x68], rdx
mov rbp, rax
mov qword [rsp + 0x70], rax
test r13, r13
je 0x18004a0fb
sub r13, rcx
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x18004a3a9
mov r14d, edx
mov dword [rsp + 0x44], edx
jmp 0x18004a3a9
mov qword [rsp + 0x88], rdx
lea r9, [rsp + 0x88]
mov r8, rcx
mov rdx, rax
mov rcx, r12
call fcn.18004b800
mov rcx, r15
cmp eax, 0xffffffff
jne 0x18004a145
lea rdx, str.chunk_reading_DONE_n
call fcn.180028610
mov rax, qword [rsp + 0x58]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rax], 2
jmp 0x18004a3a9
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180028610
jmp 0x18004a3a9
xor r13d, r13d
test rcx, rcx
jle 0x18004a3a4
nop word [rax + rax]
inc ebx
inc rdi
cmp byte [rbp], 0xa
jne 0x18004a388
cmp byte [r15 + 0x448], 0
je 0x18004a1a1
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov qword [rsp + 0x20], r12
mov rcx, r15
call fcn.180028440
cmp byte [r15 + 0x43c], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
cmovne edx, eax
mov r8, rsi
mov rcx, r12
call fcn.180028420
add dword [r15 + 0x8a6c], ebx
add dword [r15 + 0xc0], ebx
test eax, eax
jne 0x18004a79b
movzx eax, byte [rsi]
cmp al, 0xd
je 0x18004a410
cmp al, 0xa
je 0x18004a410
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.1800347a0
test eax, eax
je 0x18004a220
mov eax, dword [r15 + 0x128]
cmp eax, 0x191
je 0x18004a247
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.1800347a0
test eax, eax
je 0x18004a28d
mov eax, dword [r15 + 0x128]
cmp eax, 0x197
jne 0x18004a28d
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.18002e960
mov rbx, rax
test rax, rax
je 0x18004a65d
mov r8, rax
movzx edx, dil
mov rcx, r12
call fcn.18002ec50
mov rcx, rbx
mov edi, eax
call qword [fcn.18009ae1c]
test edi, edi
je 0x18004a373
mov eax, edi
jmp 0x18004a79b
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.1800347a0
test eax, eax
je 0x18004a2bf
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.18009f500
mov qword [rsp + 0x48], rax
jmp 0x18004a373
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.18002e880
test al, al
je 0x18004a2e6
mov byte [rsp + 0xf0], 1
jmp 0x18004a373
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.18002e880
test al, al
je 0x18004a31e
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r15
call fcn.180028610
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.18004b7f0
jmp 0x18004a373
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.18002e880
test al, al
je 0x18004a342
mov byte [rsp + 0xf0], 1
jmp 0x18004a373
lea r9, [r15 + 0x128]
mov rcx, rsi
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
call fcn.18001f540
cmp eax, 2
jne 0x18004a373
mov eax, dword [r15 + 0x128]
mov dword [r15 + 0x8a5c], 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 r13d
inc rbp
movsxd rax, r13d
mov qword [rsp + 0x70], rbp
cmp rax, rcx
jl 0x18004a170
mov r14d, dword [rsp + 0x44]
mov r13, qword [rsp + 0x48]
mov rcx, r12
call fcn.180032cc0
test eax, eax
jne 0x18004a66e
cmp qword [rsp + 0x68], 0x4000
jb 0x180049fc0
cmp dword [rsp + 0x50], 0
jne 0x18004a796
cmp dword [r15 + 0x8a5c], 0xc8
je 0x18004a5dd
mov rcx, r12
call fcn.18002ea60
test eax, eax
jne 0x18004a79b
cmp byte [r12 + 0x349], al
je 0x18004a5dd
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x18004a5e9
cmp dword [r15 + 0x128], 0x197
lea rax, [r15 + 0x7d8]
mov rbp, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
jne 0x18004a577
cmp byte [r15 + 0x8958], 0
jne 0x18004a577
mov r8, qword [rsp + 0x48]
mov r14d, 2
mov dword [rsp + 0x44], r14d
test r8, r8
je 0x18004a4a1
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r15
call fcn.180028610
movsxd rax, r13d
sub rax, qword [rsp + 0x60]
mov r13, qword [rsp + 0x48]
add r13, rax
mov qword [rsp + 0x48], r13
test r13, r13
jg 0x18004a5b1
mov rax, qword [rsp + 0x58]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rax], 2
jmp 0x18004a3a9
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x18004a55c
mov r8, qword [rsp + 0x60]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r13d
mov rcx, r15
sub r8, rax
mov byte [r15 + 0x16d], 1
call fcn.180028610
cmp byte [rsi + 1], 0xa
jne 0x18004a4dc
inc rsi
inc r13d
mov r8, qword [rsp + 0x60]
lea rdx, [rsi + 1]
movsxd rax, r13d
lea r9, [rsp + 0x60]
sub r8, rax
mov rcx, r12
call fcn.18004b800
mov rcx, r15
cmp eax, 0xffffffff
jne 0x18004a536
lea rdx, str.chunk_reading_DONE_n
call fcn.180028610
mov r13, qword [rsp + 0x58]
xor r14d, r14d
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x44], r14d
mov dword [r13], 2
mov r13, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x18004a3a9
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.180028610
mov rax, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x18004a3a9
mov rax, qword [rsp + 0x58]
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov r13, r8
mov dword [rax], 2
jmp 0x18004a3a9
xor r14d, r14d
cmp dword [r15 + 0x8a5c], 0xc8
mov dword [rsp + 0x44], r14d
jne 0x18004a5ac
mov r8, qword [rsp + 0x60]
lea eax, [r13 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x18004a5ac
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r15
call fcn.180028550
mov r13, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov dword [rax], 2
jmp 0x18004a3a9
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [rsp + 0x50], 1
mov rcx, r15
call fcn.180028550
jmp 0x18004a3a9
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x18004a5f7
cmp qword [r15 + 0x178], 0
jne 0x18004a678
cmp qword [r15 + 0x178], 0
mov r14, qword [rsp + 0x58]
je 0x18004a694
cmp dword [r14], 2
jne 0x18004a629
xor r8d, r8d
mov dword [r14], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r15
call fcn.180028610
cmp qword [r15 + 0x178], 0
je 0x18004a694
mov rdi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
jmp 0x180049d20
mov rcx, rbp
call qword [fcn.18009ae1c]
mov rcx, rdi
call fcn.18002e150
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18004a79b
mov eax, ebx
jmp 0x18004a79b
mov eax, Ordinal_46
jmp 0x18004a79b
mov rdi, qword [rsp + 0x90]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.180028ce0
mov qword [rdi], 0xffffffffffffffff
jmp 0x18004a69c
mov rdi, qword [rsp + 0x90]
cmp dword [r15 + 0x128], 0xc8
je 0x18004a736
test bl, bl
je 0x18004a6d5
cmp qword [r15 + 0x178], 0
je 0x18004a6d5
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x35e], 1
mov rcx, r15
call fcn.180028610
jmp 0x18004a708
mov rcx, qword [r15 + 0x178]
call qword [fcn.18009ae1c]
mov qword [r15 + 0x178], 0
mov rcx, r12
mov byte [r12 + 0x349], 1
mov rdx, qword [rdi]
call fcn.180028ce0
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x58]
mov dword [rax], 0
cmp byte [r12 + 0x35e], 0
jne 0x18004a783
mov r8d, dword [r15 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r15
call fcn.180028550
jmp 0x18004a796
mov rax, qword [rsp + 0x58]
mov dword [rax], 2
mov rcx, qword [r12 + 0x3a0]
call qword [fcn.18009ae1c]
mov qword [r12 + 0x3a0], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r15
mov byte [r15 + 0x8954], 1
call fcn.180028610
mov byte [r15 + 0x16d], 0
mov byte [r12 + 0x358], 0
xor eax, eax
jmp 0x18004a79b
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r15
call fcn.180028550
mov eax, gethostname
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret