Function at 0x14000c1f0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0x64], 0x200
xor esi, esi
mov dword [rsp + 0x78], esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x70], rax
mov byte [rsp + 0x60], sil
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9d, [rsi + 2]
mov r8d, 0x400
mov rdx, qword [rdi + 8]
lea ecx, [rsi + 1]
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x14000c4a0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x64]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.14000c5c0
movzx ebx, al
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.CRYPT32.dll_CryptMsgClose]
test bl, bl
je 0x14000c49a
cmp byte [rsp + 0x60], sil
je 0x14000c2f0
or qword [rdi + 0x40], 0x20000
mov rcx, qword [rdi + 8]
call fcn.14000c820
movzx r14d, al
test al, al
jne 0x14000c376
mov eax, dword [0x140416c08]
test eax, eax
jns 0x14000c343
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
cmp ecx, 6
jae 0x14000c329
mov dword [0x140416c08], 1
jmp 0x14000c345
jne 0x14000c33b
test al, al
jne 0x14000c33b
mov dword [0x140416c08], 1
jmp 0x14000c345
mov dword [0x140416c08], esi
jmp 0x14000c36e
jle 0x14000c36e
lea rcx, [rbp - 0x80]
call fcn.14000c4f0
test al, al
je 0x14000c36e
mov r14b, 1
mov r8, qword [rdi + 8]
lea rdx, str.SHA_2
lea rcx, str._s__ls_r_n
call fcn.1402b7a88
jmp 0x14000c376
or qword [rdi + 0x40], 0x10000
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x14000c3ab
lea rcx, [rsp + 0x68]
call fcn.14000b500
nop
mov r8, rax
mov edx, 6
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rsp + 0x70], 0
jle 0x14000c3ab
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
test r14b, r14b
je 0x14000c459
lea rax, [0x140346ce0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
mov esi, dword [rsp + 0x64]
lea edx, [rsi + rsi]
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
lea eax, [rsi - 1]
movsxd rbx, eax
test eax, eax
js 0x14000c3fc
movzx r8d, byte [rbp + rbx - 0x60]
lea rdx, [0x140347118]
lea rcx, [rsp + 0x68]
call fcn.1401fb410
dec rbx
jns 0x14000c3e0
lea rcx, [r15 + 0xa0]
lea r8, [rdi + 8]
lea rdx, [rsp + 0x68]
call fcn.14012a550
nop
cmp dword [rsp + 0x70], 0
jle 0x14000c423
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
mov r8d, esi
lea rdx, [rbp - 0x60]
mov rcx, qword [r15 + 8]
call fcn.1400fa640
test al, al
je 0x14000c454
mov rax, qword [rdi + 0x40]
movabs rcx, 0xffffffbffffffffc
and rax, rcx
movabs rcx, 0x1000000000
jmp 0x14000c48d
mov r8d, esi
jmp 0x14000c45e
mov r8d, dword [rsp + 0x64]
mov r9, rdi
lea rdx, [rbp - 0x60]
mov rcx, qword [r15 + 8]
call fcn.1400fa750
test al, al
je 0x14000c494
movabs rcx, 0xffffffefffffffff
mov rax, qword [rdi + 0x40]
and rax, rcx
movabs rcx, 0x4000000000
or rax, rcx
mov qword [rdi + 0x40], rax
mov rsi, qword [rbp - 0x78]
jmp 0x14000c4a9
mov rsi, qword [rbp - 0x78]
jmp 0x14000c4a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14b, r14b
test rsi, rsi
je 0x14000c4bd
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, r14b
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret