Function at 0x1400802f0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [rcx]
mov r15, rdx
mov rsi, qword [rcx + 0x10]
mov r12, rcx
mov qword [rbp - 0x68], rsi
mov r13d, dword [rax + 8]
mov r14, qword [rsi + 0x30]
and r13d, 0xa
mov rax, qword [rcx + 0x18]
mov dword [rbp + 0x2f8], r13d
cmp r13d, 0xa
jne 0x140080352
lea rdi, [rax + 0x390]
lea rbx, [rax + 0x350]
jmp 0x140080360
lea rdi, [rax + 0x320]
lea rbx, [rax + 0x2e0]
xor r8d, r8d
mov qword [rsp + 0x60], 0
mov edx, 1
mov dword [rsp + 0x20], 1
mov ecx, 5
call fcn.14007ee20
test al, al
je 0x140080396
lea rdx, str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc.
mov rcx, r15
call fcn.140077a60
cmp qword [rsi + 0x28], 0
je 0x1400804b1
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400804b1
cmp byte [reloc.WS2_32.dll_accept], al
je 0x1400803fa
lea rcx, [0x140150880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlVerifyVersionInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140163e98], rax
mov byte [reloc.WS2_32.dll_accept], 0
xor edx, edx
lea rcx, [rbp + 0x74]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
mov r8b, 3
mov dword [rbp + 0x60], 0x11c
mov edx, 2
mov dword [rbp + 0x64], 6
xor ecx, ecx
mov qword [rbp + 0x68], 3
mov dword [rbp + 0x70], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r9, qword [0x140163e98]
lea rcx, [rbp + 0x60]
mov r8, rax
mov edx, 0x3b
test r9, r9
je 0x14008049e
call r9
test eax, eax
sete al
jmp 0x1400804a9
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne al
test al, al
je 0x1400804b1
mov al, 1
jmp 0x1400804b3
xor al, al
mov byte [r14 + 0x6b], al
cmp qword [rbx], 0
jne 0x1400804cc
cmp qword [rdi], 0
jne 0x1400804cc
xor al, al
xor edi, edi
jmp 0x1400805cd
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140080500
lea rcx, [0x140150880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlVerifyVersionInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140163e98], rax
mov byte [reloc.WS2_32.dll_accept], 0
xor edx, edx
lea rcx, [rbp + 0x194]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
mov r8b, 3
mov dword [rbp + 0x180], 0x11c
mov edx, 2
mov dword [rbp + 0x184], 6
xor ecx, ecx
mov qword [rbp + 0x188], 1
xor edi, edi
mov dword [rbp + 0x190], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r9, qword [0x140163e98]
lea rcx, [rbp + 0x180]
mov r8, rax
mov edx, 0x3b
test r9, r9
je 0x1400805b8
call r9
test eax, eax
sete al
jmp 0x1400805c3
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne al
test al, al
je 0x140080a7f
mov al, 1
mov byte [r14 + 0x6c], al
cmp r13d, 0xa
mov eax, 0x65c
mov qword [r14], rdi
mov ecx, 0x5a4
cmovne eax, ecx
cmp byte [rax + r15], 0
je 0x140080677
mov r9, qword [r15 + 0xf8]
test r9, r9
je 0x140080620
test byte [r9 + 4], 0x10
je 0x140080620
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140080620
mov r9, qword [r9 + 0x20]
mov edx, 4
mov r8d, 2
mov rcx, r15
call rax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.14005ec80
test al, al
jne 0x140080647
mov rax, qword [rsp + 0x60]
mov qword [r14], rax
inc dword [rax + 0x28]
mov r8, qword [r15 + 0xf8]
test r8, r8
je 0x140080671
test byte [r8 + 4], 0x10
je 0x140080671
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x140080671
mov r8, qword [r8 + 0x20]
mov edx, 4
mov rcx, r15
call rax
cmp qword [r14], 0
jne 0x1400806b6
mov rdx, r15
mov rcx, r12
call fcn.14007f0e0
mov dword [rbp + 0x2f0], eax
test eax, eax
jne 0x140080a93
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x14008069c
mov rcx, qword [rsi]
call fcn.14007e8e0
mov rcx, qword [r14]
mov qword [rcx + 0x18], rax
mov rax, qword [r14]
cmp qword [rax + 0x18], 0
je 0x14008090d
cmp dword [rsi + 0x18], 0
je 0x1400806cb
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
mov rcx, r15
call fcn.140077a60
cmp byte [r14 + 0x6b], 0
mov r13, 0xffffffffffffffff
je 0x140080876
xor eax, eax
mov dword [rbp - 0x1c], 2
mov r12, qword [rsi + 0x28]
xorps xmm0, xmm0
mov qword [rbp - 0x40], rax
mov ebx, edi
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
test r12, r12
je 0x140080778
cmp rdi, qword [r12 + 0x20]
jae 0x140080774
lea rax, [rdi + rdi*4]
mov rcx, r13
lea rdx, [r12 + rax*2]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140080712
cmp rcx, 0xa
jae 0x140080751
movzx esi, cl
lea eax, [rsi + 1]
add eax, ebx
cmp eax, 0x21
jge 0x140080751
movsxd rax, ebx
inc ebx
movzx r8d, cl
mov byte [rbp + rax - 0x60], cl
lea rcx, [rbp - 0x60]
movsxd rax, ebx
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add ebx, esi
inc rdi
jmp 0x140080700
lea rdx, str.Error_setting_ALPN
mov dword [rbp + 0x2f0], 2
mov rcx, r15
call fcn.140077850
mov eax, 0x23
jmp 0x140080a93
mov rsi, qword [rbp - 0x68]
xor r12d, r12d
movsxd r8, ebx
lea rdx, [rbp - 0x60]
mov dword [rbp + 0x2f0], r12d
lea rcx, [rbp - 0x16]
mov dword [rbp - 0x3c], ebx
call sub.VCRUNTIME140.dll_memcpy
lea edx, [rbx + 0xa]
mov dword [rsp + 0x6c], reloc.WS2_32.dll_select
lea eax, [rdx - 0xa]
mov dword [rsp + 0x68], edx
movzx ecx, ax
xorps xmm0, xmm0
lea rax, [rbp - 0x20]
mov word [rbp - 0x18], cx
mov qword [rsp + 0x70], rax
add ecx, 6
lea rax, [rsp + 0x68]
mov dword [rbp - 0x20], ecx
mov qword [rbp - 0x70], rax
mov edi, r12d
xor eax, eax
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x74], 1
mov rsi, qword [rsi + 0x28]
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
test rsi, rsi
je 0x14008084c
lea rax, [rsi + 0x20]
mov qword [rsp + 0x60], rax
cmp r12, qword [rax]
jae 0x14008084c
mov rbx, r13
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140080800
cmp rbx, 0xa
jae 0x140080854
lea rax, [rdi + 2]
add rax, rbx
cmp rax, 0x21
jae 0x140080854
test rdi, rdi
je 0x140080829
mov byte [rbp + rdi - 0x60], 0x2c
inc rdi
lea rcx, [rbp - 0x60]
mov r8, rbx
add rcx, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x60]
add rdi, rbx
inc r12
add rsi, 0xa
jmp 0x1400807f7
mov byte [rbp + rdi - 0x60], 0
mov dword [rbp - 0x3c], edi
lea r8, [rbp - 0x60]
mov rcx, r15
lea rdx, str.ALPN:_curl_offers__s
call fcn.140077a60
mov rsi, qword [rbp - 0x68]
xor edi, edi
mov r12, qword [rbp + 0x2e0]
jmp 0x140080897
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], 0
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x70], rdi
mov dword [rbp - 0x78], edi
mov dword [rbp - 0x74], 1
cmp dword [rbp + 0x2f8], 0xa
lea rax, [rsp + 0x78]
mov qword [rbp - 0x30], rax
mov ecx, 0x5ef
mov eax, 0x6a7
mov qword [rsp + 0x78], 0
cmovne eax, ecx
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x38], edi
mov dword [rbp - 0x34], 1
mov dword [r14 + 0x5c], 0x811c
cmp byte [rax + r15], 0
jne 0x1400808e2
mov dword [r14 + 0x5c], 0x819c
mov edx, 0x18
mov ecx, 1
call qword [case.0x140071f61.1]
mov qword [r14 + 8], rax
mov r9, rax
test rax, rax
jne 0x140080917
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r15
call fcn.140077850
mov eax, 0x1b
jmp 0x140080a93
mov rcx, qword [r14]
lea rdx, [r14 + 0x60]
add rax, 0x10
lea r8, [rbp - 0x78]
cmp byte [r14 + 0x6b], 0
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x50], rdx
cmove r8, rdi
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [0x140163d58]
mov qword [rsp + 0x40], r9
mov r9d, dword [r14 + 0x5c]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], r8
mov r8, qword [rcx + 0x18]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [rax + 0x30]
mov ebx, eax
cmp eax, 0x90312
je 0x1400809e6
mov rcx, qword [r14 + 8]
call qword [0x1401630a8]
lea rdx, [rbp + 0x60]
mov qword [r14 + 8], rdi
mov ecx, ebx
call fcn.14005b210
mov r8, rax
mov rcx, r15
cmp ebx, 0x80090300
je 0x1400809d0
cmp ebx, 0x80090322
je 0x1400809ba
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.140077850
mov eax, 0x23
jmp 0x140080a93
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
call fcn.140077850
mov eax, 0x3c
jmp 0x140080a93
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.140077850
mov eax, 0x1b
jmp 0x140080a93
mov rcx, qword [r12 + 8]
mov r9d, dword [rsp + 0x78]
test rcx, rcx
je 0x140080a18
mov rax, qword [rcx]
lea rdx, [rbp + 0x2f0]
mov r8, qword [rbp - 0x80]
mov qword [rsp + 0x28], rdx
mov rdx, r15
mov byte [rsp + 0x20], 0
call qword [rax + 0x48]
mov r13, rax
jmp 0x140080a22
mov dword [rbp + 0x2f0], 0x37
mov rax, qword [0x140163d58]
mov rcx, qword [rbp - 0x80]
call qword [rax + 0x80]
cmp dword [rbp + 0x2f0], 0
mov r9d, dword [rsp + 0x78]
jne 0x140080a66
cmp r9, r13
jne 0x140080a66
mov dword [r14 + 0x64], edi
xor eax, eax
mov word [r14 + 0x68], 0
mov byte [r14 + 0x6a], 0
mov byte [r14 + 0x58], 0
mov dword [rsi + 0x54], 1
jmp 0x140080a93
mov r8, r13
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, r15
call fcn.140077850
mov eax, 0x23
jmp 0x140080a93
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, r15
call fcn.140077850
mov eax, 0x4d
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret