Function at 0x140023a00
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r13d, edx
mov r12, rcx
cmp qword [rcx + 0xc8], 0
je 0x140023e6c
mov rax, qword [rcx + 0xc0]
test rax, rax
je 0x140023e6c
test byte [rax + 8], 8
jne 0x140023e6c
call fcn.1401fa4b0
mov rdx, rax
xor edi, edi
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140023a6c
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
call fcn.1401fa4b0
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140023a9f
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov rsi, qword [r12 + 0xc0]
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [0x140273028]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140273028]
lea rcx, [rsp + 0xa0]
call fcn.140007880
call fcn.1401ed45c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x80a
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.1400d62c0
xor r11d, r11d
lea rdi, [0x140273028]
mov rbx, qword [rsp + 0xa0]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140023b30
sbb r11d, r11d
sbb r11d, ebp
test r11d, r11d
sete al
test al, al
je 0x140023b63
call fcn.1401ed45c
mov r9w, 0x409
mov r8d, 0x80a
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.1400d62c0
mov rbx, qword [rsp + 0xa0]
test r13d, r13d
je 0x140023c19
mov rsi, qword [r12 + 0xc0]
xor eax, eax
mov rcx, rbp
lea rdi, [0x140273028]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140273028]
lea rcx, [rsp + 0x90]
call fcn.140007880
call fcn.1401ed45c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x9d8
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d62c0
xor r11d, r11d
lea rdi, [0x140273028]
mov rsi, qword [rsp + 0x90]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140023be5
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x140023cbd
call fcn.1401ed45c
mov r9w, 0x409
mov r8d, 0x9d8
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d62c0
jmp 0x140023cbd
mov rsi, qword [r12 + 0xc0]
xor eax, eax
mov rcx, rbp
lea rdi, [0x140273028]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140273028]
lea rcx, [rsp + 0x90]
call fcn.140007880
call fcn.1401ed45c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x9d9
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d62c0
xor r11d, r11d
lea rdi, [0x140273028]
mov rsi, qword [rsp + 0x90]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140023c92
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x140023cbd
call fcn.1401ed45c
mov r9w, 0x409
mov r8d, 0x9d9
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d62c0
mov r9d, 4
mov r8, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12 + 0xc8]
call fcn.1401d7aa0
mov eax, dword [0x140326104]
test eax, eax
jne 0x140023d02
mov dword [0x140326100], 0x114
lea rcx, [0x140326100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x140023d14
mov eax, dword [0x140326108]
cmp eax, 2
jne 0x140023d44
jmp 0x140023d4d
test eax, eax
jne 0x140023d35
mov dword [0x140326100], 0x114
lea rcx, [0x140326100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x140023e27
mov eax, dword [0x140326108]
cmp eax, 3
jne 0x140023e27
mov rax, qword [r12 + 0xc0]
test byte [rax + 0x1b4], 4
je 0x140023e27
mov r9d, 1
lea r8, str.JDPopup
lea rdx, str.General
lea rcx, [0x14032a360]
call fcn.1401ffa54
test r13d, r13d
je 0x140023e27
test eax, eax
je 0x140023e27
mov rcx, qword [r12 + 0xc0]
add rcx, 0x530
mov r8d, 0x10a2
lea rdx, [rsp + 0x90]
call fcn.1400e4e50
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rdx, [0x140273028]
lea rcx, [rsp + 0xa8]
call fcn.140007530
mov rsi, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140007410
mov rdi, rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.140007410
nop
mov dword [rsp + 0x20], 0x1f4
mov r9, rsi
mov r8, rdi
mov rdx, rax
mov ecx, 5
call fcn.1401d6d50
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140023e4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140023e6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret