Function at 0x1400124a0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140300da0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x208]
test rdi, rdi
jne 0x1400124f0
xor eax, eax
jmp 0x140012b79
xor eax, eax
mov dword [rcx + 0x210], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], eax
cmp qword [rcx + 0x1f0], rax
je 0x140012b79
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.1402197d0
xor edx, edx
lea r8d, [rdx + 0x38]
mov rcx, rdi
call fcn.1402197d0
xor edi, edi
mov r14, rdi
mov r12, rdi
lea rax, [0x140000000]
lea r15d, [rdi + 0x18]
mov rcx, qword [rbx + 0x208]
mov eax, dword [r14 + rax + 0x303390]
mov dword [r12 + rcx], eax
mov ebp, edi
lea rsi, reloc.OLEAUT32.dll_VariantClear
nop
cmp dword [0x140311024], 0
jne 0x140012580
mov dword [0x140311020], 0x114
lea rcx, [0x140311020]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140311024], 6
jne 0x140012597
cmp dword [0x140311028], 0
jne 0x140012597
mov eax, r15d
jmp 0x14001259c
mov eax, 0x1b
cmp ebp, eax
jge 0x1400127da
movzx r13d, word [rsi]
cmp r13w, 0x20
je 0x1400127ce
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.1402197d0
mov dword [rsp + 0xc0], 0x52
mov dword [rsp + 0xc8], edi
lea rcx, [rsp + 0xd0]
lea r8, [0x140000000]
mov rax, qword [r8 + 0x2609f8]
mov qword [rcx], rax
mov rax, qword [r8 + 0x260a00]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xe0]
mov rax, qword [r8 + 0x260a08]
mov qword [rcx], rax
mov rax, qword [r8 + 0x260a10]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xf0]
mov rax, qword [r8 + 0x260a18]
mov qword [rcx], rax
mov rax, qword [r8 + 0x260a20]
mov qword [rcx + 8], rax
mov word [rsp + 0x100], 0xfffe
movzx edx, word [r14 + r8 + 0x303394]
mov word [rsp + 0x102], dx
mov edi, dword [rsi - 4]
mov dword [rsp + 0x104], edi
lea eax, [r13 - 0x11]
movzx ecx, r13w
cmp ax, 0xf
mov eax, 0x20
cmovbe cx, ax
mov word [rsp + 0x10e], cx
movzx eax, cx
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [rsp + 0x10c], ax
movzx eax, ax
imul eax, edi
mov dword [rsp + 0x108], eax
mov word [rsp + 0x110], 0x16
mov word [rsp + 0x112], r13w
mov eax, dword [r14 + r8 + 0x303398]
mov dword [rsp + 0x114], eax
lea rcx, [rsp + 0x118]
mov rax, qword [r8 + 0x260a08]
mov qword [rcx], rax
mov rax, qword [r8 + 0x260a10]
mov qword [rcx + 8], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov rcx, qword [rbx + 0x1f0]
mov rax, qword [rcx]
lea r9, [rsp + 0x20]
lea r8d, [rdi + 0x68]
lea rdx, [rsp + 0xc0]
call qword [rax + 0x18]
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0xc0]
lea r8d, [rdi + 0x68]
call fcn.140219480
movzx edx, word [rsp + 0x10e]
cmp dx, 0x10
jbe 0x140012741
movzx ecx, word [rsp + 0x17e]
cmp dx, 0x20
cmovbe cx, r15w
mov word [rsp + 0x17e], cx
jmp 0x140012749
mov cx, word [rsp + 0x17e]
movzx eax, word [rsp + 0x172]
movzx ecx, cx
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [rsp + 0x17c], ax
movzx eax, ax
imul eax, dword [rsp + 0x174]
mov dword [rsp + 0x178], eax
mov dword [rsp + 0x24], edi
mov rcx, qword [rbx + 0x1f0]
mov rax, qword [rcx]
lea r9, [rsp + 0x24]
mov r8d, 0x68
lea rdx, [rsp + 0x130]
call qword [rax + 0x18]
cmp dword [rsp + 0x20], edi
jne 0x1400127aa
cmp dword [rsp + 0x24], edi
je 0x1400127ce
mov rcx, qword [rbx + 0x208]
mov eax, dword [rsi - 8]
or dword [r12 + rcx + 4], eax
lea rax, [0x140000000]
mov eax, dword [r14 + rax + 0x303390]
or dword [rbx + 0x210], eax
add ebp, 1
add rsi, 0x14
jmp 0x140012560
add r12, 8
add r14, r15
cmp r12, 0x38
lea rax, [0x140000000]
jl 0x140012541
mov ebp, 1
test byte [rbx + 0x210], 0x20
je 0x140012845
call fcn.1401e9d6c
test rax, rax
je 0x140012845
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012845
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012845
add dword [rcx + 0x1ab4], ebp
or dword [rcx + 8], 0x200
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012845
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbx + 0xb8], 9
jne 0x140012aad
lea rcx, [rsp + 0x30]
call fcn.140150960
nop
lea r12, [0x140270ef8]
mov qword [rsp + 0x30], r12
call fcn.1401e9268
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140012888
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x58], 7
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0xbc], edi
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, str.FormatSettings
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.FormatSettings
lea rcx, [rsp + 0x38]
call fcn.140007720
nop
mov qword [rsp + 0x60], rbx
mov rax, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0xb0]
call qword [rax + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400c07f0
call fcn.1401e9d6c
test rax, rax
je 0x1400129b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x1400129b0
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x1400129b0
add dword [rcx + 0x1ab4], 1
mov edx, dword [rcx + 0x10]
shr edx, 0x12
and edx, 1
mov dword [rsp + 0x68], edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xb8]
cmp eax, 1
je 0x140012993
cmp eax, 3
jne 0x14001299f
bt dword [rcx + 8], 0x12
cmovb edx, ebp
mov dword [rsp + 0x68], edx
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x1400129b0
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsp + 0xb8], 0
je 0x1400129c4
or dword [rbx + 0x210], 0x80
cmp dword [rsp + 0xbc], 0
je 0x1400129d8
or dword [rbx + 0x210], 0x100
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140012a14
lea rdi, [rcx - 8]
lea r9, [fcn.140006b30]
mov r8d, dword [rdi]
mov edx, 0x48
call fcn.140216970
mov rcx, rdi
call fcn.1401dacd8
xor eax, eax
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012a37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x140282bc8]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012a63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x140285850]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012a8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140012aad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbx + 0x210], 0
jne 0x140012b08
cmp dword [rbx + 0x58], 1
jne 0x140012b08
call fcn.1401e9d6c
test rax, rax
je 0x140012b08
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012b08
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012b08
add dword [rcx + 0x1ab4], 1
test byte [rcx + 0x38], 0x20
je 0x140012af7
xor eax, eax
jmp 0x140012b79
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012b08
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x210]
test eax, eax
jne 0x140012b1b
cmp dword [rbx + 0xb8], 9
je 0x140012b79
test eax, eax
jne 0x140012b77
cmp dword [rbx + 0xb8], 4
jne 0x140012b77
cmp dword [rbx + 0x58], 1
jne 0x140012b77
call fcn.1401e9d6c
test rax, rax
je 0x140012b77
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012b77
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012b77
add dword [rcx + 0x1ab4], 1
test byte [rcx + 0x34], 0x20
je 0x140012b66
xor eax, eax
jmp 0x140012b79
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012b77
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140216200
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret