Function at 0x140012b50
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r9
mov r12, r8
mov qword [rsp + 0x38], r8
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov rsi, rcx
mov rdi, qword [rbp + 0x1c8]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rdi
movzx r9d, byte [rbp + 0x1c0]
call fcn.140010c00
test al, al
je 0x140013268
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
test al, al
je 0x140012c0e
cmp qword [rsi + 0x2c8], rbx
je 0x140012bd9
cmp dword [rsi + 0x2d8], 0xffffffff
jne 0x140012c0e
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_peek]
test eax, eax
jne 0x140012c0e
xor edx, edx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_error]
cmp eax, 6
jne 0x140012c0e
mov dword [rdi], select
jmp 0x140013268
mov r9, r15
mov r8, r12
mov rdx, r14
call fcn.14000de00
test al, al
je 0x140013262
lea rdx, [r15 + 0x48]
mov rcx, r14
call fcn.140007fa0
test al, al
je 0x140013262
mov r13d, dword [r15 + 0x20]
cmp r13d, 0xcc
je 0x140013039
mov r14, qword [r12 + 0x10]
mov rcx, r12
mov r12, qword [r12 + 0x18]
cmp r12, 0x10
jb 0x140012c5f
mov rcx, qword [rcx]
cmp r14, 4
jne 0x140012c7c
mov r8, r14
lea rdx, str.HEAD
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140013034
mov rcx, qword [rsp + 0x38]
cmp r12, 0x10
mov r12, rcx
jb 0x140012c8d
mov rcx, qword [rcx]
cmp r14, 7
jne 0x140012caa
mov r8, r14
lea rdx, str.CONNECT
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140013039
lea eax, [r13 - 0x12d]
cmp eax, 0x62
ja 0x140012cc2
cmp byte [rsi + 0x241], bl
je 0x140012cc2
mov al, 1
jmp 0x140012cc4
xor al, al
mov byte [rsp + 0x30], al
mov rcx, qword [r12 + 0x1e0]
test rcx, rcx
je 0x140012cf1
test al, al
jne 0x140012cf1
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140012cf1
mov dword [rdi], 7
jmp 0x140013268
cmp qword [r12 + 0x220], rbx
je 0x140012d4d
lea rax, [0x140086908]
mov qword [rbp + 0x100], rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], rdi
lea rax, [rbp + 0x100]
mov qword [rbp + 0x138], rax
lea r14, [rbp + 0x100]
mov ebx, 1
lea r12, [rbp + 0x138]
mov rcx, qword [rbp + 0xf8]
jmp 0x140012d83
lea rax, [0x140086818]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], r15
lea rcx, [rbp + 0xc0]
mov qword [rbp + 0xf8], rcx
lea r14, [rbp + 0xc0]
mov ebx, 2
lea r12, [rbp + 0xf8]
xor r13d, r13d
mov r8d, r13d
mov qword [rbp + 0xb8], r13
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x140012def
cmp r9, r14
jne 0x140012dda
mov rax, qword [r9]
lea rdx, [rbp + 0x80]
mov rcx, r9
call qword [rax + ioctlsocket]
mov r8, rax
mov qword [rbp + 0xb8], rax
mov rcx, qword [r12]
test rcx, rcx
je 0x140012de8
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov r8, qword [rbp + 0xb8]
jmp 0x140012de8
mov r8, r9
mov qword [rbp + 0xb8], r9
mov qword [r12], r13
mov rcx, qword [rbp + 0xf8]
test bl, 2
je 0x140012e1d
and ebx, 0xfffffffd
test rcx, rcx
je 0x140012e1d
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xf8], r13
mov r8, qword [rbp + 0xb8]
test bl, 1
je 0x140012e4b
and ebx, 0xfffffffe
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140012e4b
mov rax, qword [rcx]
lea rdx, [rbp + 0x100]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r8, qword [rbp + 0xb8]
movzx r14d, byte [rsi + 0x291]
mov rcx, r13
mov qword [rbp - 0x68], rcx
test r8, r8
je 0x140012eb3
lea rax, [rbp + 0x80]
mov rcx, r8
cmp r8, rax
jne 0x140012ea8
mov rax, qword [r8]
lea rdx, [rsp + 0x60]
call qword [rax + ioctlsocket]
mov rcx, rax
mov qword [rbp - 0x68], rax
mov r8, qword [rbp + 0xb8]
test r8, r8
je 0x140012eb3
mov rax, qword [r8]
lea rcx, [rbp + 0x80]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x68]
jmp 0x140012eac
mov qword [rbp - 0x68], rcx
mov qword [rbp + 0xb8], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea rax, [0x1400875d0]
mov qword [rbp - 0x60], rax
mov r12, qword [rsp + 0x38]
mov qword [rbp - 0x58], r12
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdi
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rbp + 0x20], r15
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rbp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x18], r13
test rcx, rcx
je 0x140012f64
lea rax, [rsp + 0x60]
cmp rcx, rax
jne 0x140012f5c
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [rax + ioctlsocket]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140012f64
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140012f60
mov qword [rbp + 0x18], rcx
mov qword [rbp - 0x68], r13
movups xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbp + 0x30]
movaps xmmword [rbp + 0x60], xmm1
movsd xmm0, qword [rbp + 0x40]
movsd qword [rbp + 0x70], xmm0
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
movzx r9d, r14b
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14002c2a0
movzx r14d, al
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140012fc1
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp - 0x60]
cmp rcx, rax
setne dl
call r8
mov qword [rbp - 0x28], r13
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140012fdb
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
test r14b, r14b
jne 0x140013013
cmp dword [rdi], 7
je 0x140012feb
mov dword [rdi], 4
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140013268
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140013268
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140013039
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140013039
mov r12, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], 0xa
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Connection]
movsd qword [rbp + 0x50], xmm0
movzx eax, word [0x140084c28]
mov word [rbp + 0x58], ax
mov byte [rbp + 0x5a], 0
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0x50]
lea rcx, [r15 + 0x48]
call fcn.140007ea0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140013096
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140008810
or ebx, 0x18
lea rcx, [rbp + 0x20]
mov rdi, qword [rbp + 0x20]
mov r13, qword [rbp + 0x38]
cmp r13, 0x10
cmovae rcx, rdi
mov r8, qword [rbp + 0x30]
cmp r8, 5
jne 0x1400130dd
lea rdx, str.close
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001312c
mov r8, qword [r15 + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1400130ee
mov rcx, qword [r15]
cmp r8, 8
jne 0x140013131
lea rdx, str.HTTP_1.0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140013131
lea rcx, [r15 + 0x28]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x140013116
mov rcx, qword [rcx]
cmp r8, 0x16
jne 0x14001312c
lea rdx, str.Connection_established
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140013131
mov r14b, 1
jmp 0x140013134
xor r14b, r14b
test bl, 8
je 0x140013177
and ebx, 0xfffffff7
cmp r13, 0x10
jb 0x140013177
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14001316e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001316e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14005e390
nop
test bl, 4
je 0x1400131ba
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x1400131ba
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400131b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005e390
test r14b, r14b
je 0x140013246
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400131e5
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x140013200
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rax, qword [rsi]
mov r8b, 1
lea rdx, [rsi + 0x50]
mov rcx, rsi
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140013225
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsi + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14001323d
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi + 0x50], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rsi + 0x408]
test rcx, rcx
je 0x14001325e
mov rax, qword [rcx]
mov r8, r15
mov rdx, r12
call qword [rax + reloc.WS2_32.dll_recv]
mov al, 1
jmp 0x14001326a
mov dword [rdi], 4
xor al, al
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14005e370
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret