Function at 0x14005b300
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 - 0x168]
sub rsp, 0x268
mov rax, qword [0x1400ae038]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, r9
mov r12, r8
mov qword [rbp + 0xf8], r8
mov r14, rdx
mov qword [rsp + 0x30], rdx
mov rsi, rcx
mov rdi, qword [rbp + 0x1d8]
xor ebx, ebx
mov dword [rbp + 0x100], ebx
mov qword [rsp + 0x20], rdi
movzx r9d, byte [rbp + 0x1d0]
call fcn.140059620
test al, al
je 0x14005ba17
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
test al, al
je 0x14005b3c4
cmp qword [rsi + 0x2c8], rbx
je 0x14005b38d
cmp dword [rsi + 0x2d8], 0xffffffff
jne 0x14005b3c4
mov r8d, 1
lea rdx, [rbp + 0xf0]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.libssl_3_x64.dll_SSL_peek]
test eax, eax
jne 0x14005b3c4
xor edx, edx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.libssl_3_x64.dll_SSL_get_error]
cmp eax, 6
jne 0x14005b3c4
mov dword [rdi], select
jmp 0x14005ba17
mov r9, r15
mov r8, r12
mov rdx, r14
call fcn.1400565d0
test al, al
je 0x14005ba11
lea rdx, [r15 + 0x48]
mov rcx, r14
call fcn.1400509c0
test al, al
je 0x14005ba11
mov r13d, dword [r15 + 0x20]
cmp r13d, 0xcc
je 0x14005b7e9
mov r14, qword [r12 + 0x10]
mov rcx, r12
mov r12, qword [r12 + 0x18]
cmp r12, 0x10
jb 0x14005b415
mov rcx, qword [rcx]
cmp r14, 4
jne 0x14005b432
mov r8, r14
lea rdx, str.HEAD
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b7e2
mov rcx, qword [rbp + 0xf8]
cmp r12, 0x10
mov r12, rcx
jb 0x14005b445
mov rcx, qword [rcx]
cmp r14, 7
jne 0x14005b462
mov r8, r14
lea rdx, str.CONNECT
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b7e9
lea eax, [r13 - 0x12d]
cmp eax, 0x62
ja 0x14005b47a
cmp byte [rsi + 0x241], bl
je 0x14005b47a
mov al, 1
jmp 0x14005b47c
xor al, al
mov byte [rbp + 0xf0], al
mov rcx, qword [r12 + 0x1e0]
test rcx, rcx
je 0x14005b4ab
test al, al
jne 0x14005b4ab
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x14005b4ab
mov dword [rdi], 7
jmp 0x14005ba17
cmp qword [r12 + 0x220], rbx
je 0x14005b4fa
lea rax, [0x140099fb8]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], rdi
lea rax, [rbp + 0x70]
mov qword [rbp + 0xa8], rax
lea r14, [rbp + 0x70]
mov ebx, 1
lea r12, [rbp + 0xa8]
mov rcx, qword [rbp + 0x28]
jmp 0x14005b51e
lea rax, [0x140099f38]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r15
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x28], rcx
lea r14, [rbp - 0x10]
mov ebx, 2
lea r12, [rbp + 0x28]
xor r13d, r13d
mov r8d, r13d
mov qword [rbp + 0x148], r13
mov r9, qword [r14 + 0x38]
test r9, r9
je 0x14005b587
cmp r9, r14
jne 0x14005b575
mov rax, qword [r9]
lea rdx, [rbp + 0x110]
mov rcx, r9
call qword [rax + ioctlsocket]
mov r8, rax
mov qword [rbp + 0x148], rax
mov rcx, qword [r12]
test rcx, rcx
je 0x14005b583
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov r8, qword [rbp + 0x148]
jmp 0x14005b583
mov r8, r9
mov qword [rbp + 0x148], r9
mov qword [r12], r13
mov rcx, qword [rbp + 0x28]
test bl, 2
je 0x14005b5af
and ebx, 0xfffffffd
test rcx, rcx
je 0x14005b5af
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x28], r13
mov r8, qword [rbp + 0x148]
test bl, 1
je 0x14005b5da
and ebx, 0xfffffffe
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14005b5da
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r8, qword [rbp + 0x148]
movzx r14d, byte [rsi + 0x291]
mov rcx, r13
mov qword [rbp - 0x20], rcx
test r8, r8
je 0x14005b641
lea rax, [rbp + 0x110]
mov rcx, r8
cmp r8, rax
jne 0x14005b636
mov rax, qword [r8]
lea rdx, [rbp - 0x58]
call qword [rax + ioctlsocket]
mov rcx, rax
mov qword [rbp - 0x20], rax
mov r8, qword [rbp + 0x148]
test r8, r8
je 0x14005b641
mov rax, qword [r8]
lea rcx, [rbp + 0x110]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x20]
jmp 0x14005b63a
mov qword [rbp - 0x20], rcx
mov qword [rbp + 0x148], r13
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
lea rax, [0x14009a5f8]
mov qword [rbp + 0x30], rax
mov r12, qword [rbp + 0xf8]
mov qword [rbp + 0x38], r12
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdi
lea rax, [rbp + 0x30]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0xf8], 0xffffffffffffffff
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0xe8], r13
test rcx, rcx
je 0x14005b709
lea rax, [rbp - 0x58]
cmp rcx, rax
jne 0x14005b6fe
mov rax, qword [rcx]
lea rdx, [rbp + 0xb0]
call qword [rax + ioctlsocket]
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14005b709
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14005b705
mov qword [rbp + 0xe8], rcx
mov qword [rbp - 0x20], r13
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
movzx r9d, r14b
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x100]
mov rcx, r15
call fcn.140074480
movzx r14d, al
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14005b770
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp + 0x30]
cmp rcx, rax
setne dl
call r8
mov qword [rbp + 0x68], r13
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14005b789
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
test r14b, r14b
jne 0x14005b7c1
cmp dword [rdi], 7
je 0x14005b799
mov dword [rdi], 4
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x14005ba17
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14005ba17
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x14005b7e9
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14005b7e9
mov r12, qword [rbp + 0xf8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rsp + 0x40]
call fcn.140006aa0
nop
or ebx, 4
mov dword [rbp + 0x100], ebx
lea rdx, [rsp + 0x40]
lea rcx, [r15 + 0x48]
call fcn.1400508c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14005b840
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140006aa0
or ebx, 0x18
lea rcx, [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
mov r13, qword [rbp - 0x78]
cmp r13, 0x10
cmovae rcx, rdi
mov r8, qword [rbp - 0x80]
cmp r8, 5
jne 0x14005b88a
lea rdx, str.close
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b8d9
mov r8, qword [r15 + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14005b89b
mov rcx, qword [r15]
cmp r8, 8
jne 0x14005b8de
lea rdx, str.HTTP_1.0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005b8de
lea rcx, [r15 + 0x28]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14005b8c3
mov rcx, qword [rcx]
cmp r8, 0x16
jne 0x14005b8d9
lea rdx, str.Connection_established
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b8de
mov r14b, 1
jmp 0x14005b8e1
xor r14b, r14b
test bl, 8
je 0x14005b924
and ebx, 0xfffffff7
cmp r13, 0x10
jb 0x14005b924
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14005b91b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b91b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14008bba0
nop
test bl, 4
je 0x14005b969
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14005b969
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b964
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b964
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bba0
test r14b, r14b
je 0x14005b9f5
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14005b994
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 0x14005b9af
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 0x14005b9d4
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsi + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14005b9ec
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 0x14005ba0d
mov rax, qword [rcx]
mov r8, r15
mov rdx, r12
call qword [rax + reloc.WS2_32.dll_recv]
mov al, 1
jmp 0x14005ba19
mov dword [rdi], 4
xor al, al
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14008bb80
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret