Function at 0x140023740
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 0x140023bac
mov rax, qword [rcx + 0xc0]
test rax, rax
je 0x140023bac
test byte [rax + 8], 8
jne 0x140023bac
call fcn.1401e9268
mov rdx, rax
xor edi, edi
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400237ac
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
call fcn.1401e9268
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x1400237df
mov ecx, 0x80004005
call fcn.140003c70
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, [0x140260b08]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140260b08]
lea rcx, [rsp + 0xa0]
call fcn.140007720
call fcn.1401dc36c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x80a
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.1400d0d70
xor r11d, r11d
lea rdi, [0x140260b08]
mov rbx, qword [rsp + 0xa0]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140023870
sbb r11d, r11d
sbb r11d, ebp
test r11d, r11d
sete al
test al, al
je 0x1400238a3
call fcn.1401dc36c
mov r9w, 0x409
mov r8d, 0x80a
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.1400d0d70
mov rbx, qword [rsp + 0xa0]
test r13d, r13d
je 0x140023959
mov rsi, qword [r12 + 0xc0]
xor eax, eax
mov rcx, rbp
lea rdi, [0x140260b08]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140260b08]
lea rcx, [rsp + 0x90]
call fcn.140007720
call fcn.1401dc36c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x9d8
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d0d70
xor r11d, r11d
lea rdi, [0x140260b08]
mov rsi, qword [rsp + 0x90]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140023925
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x1400239fd
call fcn.1401dc36c
mov r9w, 0x409
mov r8d, 0x9d8
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d0d70
jmp 0x1400239fd
mov rsi, qword [r12 + 0xc0]
xor eax, eax
mov rcx, rbp
lea rdi, [0x140260b08]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140260b08]
lea rcx, [rsp + 0x90]
call fcn.140007720
call fcn.1401dc36c
movzx r9d, word [rsi + 0x53c]
mov r8d, 0x9d9
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d0d70
xor r11d, r11d
lea rdi, [0x140260b08]
mov rsi, qword [rsp + 0x90]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400239d2
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
je 0x1400239fd
call fcn.1401dc36c
mov r9w, 0x409
mov r8d, 0x9d9
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x90]
call fcn.1400d0d70
mov r9d, 4
mov r8, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [r12 + 0xc8]
call fcn.1401c69c0
mov eax, dword [0x140311024]
test eax, eax
jne 0x140023a42
mov dword [0x140311020], 0x114
lea rcx, [0x140311020]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140311024]
cmp eax, 6
jne 0x140023a54
mov eax, dword [0x140311028]
cmp eax, 2
jne 0x140023a84
jmp 0x140023a8d
test eax, eax
jne 0x140023a75
mov dword [0x140311020], 0x114
lea rcx, [0x140311020]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140311024]
cmp eax, 6
jne 0x140023b67
mov eax, dword [0x140311028]
cmp eax, 3
jne 0x140023b67
mov rax, qword [r12 + 0xc0]
test byte [rax + 0x1b4], 4
je 0x140023b67
mov r9d, 1
lea r8, str.JDPopup
lea rdx, str.General
lea rcx, [0x1403149a0]
call fcn.1401ee9b4
test r13d, r13d
je 0x140023b67
test eax, eax
je 0x140023b67
mov rcx, qword [r12 + 0xc0]
add rcx, 0x530
mov r8d, 0x10a2
lea rdx, [rsp + 0x90]
call fcn.1400df750
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rdx, [0x140260b08]
lea rcx, [rsp + 0xa8]
call fcn.1400073d0
mov rsi, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.1400072b0
mov rdi, rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.1400072b0
nop
mov dword [rsp + 0x20], 0x1f4
mov r9, rsi
mov r8, rdi
mov rdx, rax
mov ecx, 5
call fcn.1401c5c70
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 0x140023b8b
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 0x140023bac
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