Function at 0x140016fb0
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 [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x258]
test rdi, rdi
jne 0x140017000
xor eax, eax
jmp 0x140017712
xor r15d, r15d
mov dword [rcx + 0x260], r15d
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x24], r15d
cmp qword [rcx + 0x240], r15
jne 0x140017024
xor eax, eax
jmp 0x140017712
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.14022ec70
xor edx, edx
lea r8d, [rdx + 0x38]
mov rcx, rdi
call fcn.14022ec70
mov r13, r15
mov r12, r15
lea rdi, [0x140000000]
mov r14d, 0x18
nop
nop
mov rcx, qword [rbx + 0x258]
mov eax, dword [r13 + rdi + 0x3214a0]
mov dword [r12 + rcx], eax
mov ebp, r15d
lea rsi, reloc.OLEAUT32.dll_VariantClear
nop
mov eax, dword [0x14032f0e4]
test eax, eax
jne 0x1400170a7
mov dword [0x14032f0e0], 0x114
lea rcx, [0x14032f0e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x14032f0e4]
cmp eax, 6
jne 0x1400170ba
cmp dword [0x14032f0e8], r15d
jne 0x1400170ba
mov eax, r14d
jmp 0x1400170bf
mov eax, 0x1b
cmp ebp, eax
jge 0x140017354
cmp word [rsi], 0x20
jne 0x140017129
call fcn.1401ffea8
test rax, rax
je 0x140017348
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140017348
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140017348
add dword [rcx + 0x1b70], 1
bt dword [rcx + 0x1d4], 0x1b
jae 0x140017348
add dword [rcx + 0x1b70], 0xffffffff
jne 0x140017129
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.14022ec70
mov dword [rsp + 0xc0], 0x52
mov dword [rsp + 0xc8], r15d
lea rcx, [rsp + 0xd0]
mov rax, qword [rdi + 0x279998]
mov qword [rcx], rax
mov rax, qword [rdi + 0x2799a0]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xe0]
mov rax, qword [rdi + 0x2799a8]
mov qword [rcx], rax
mov rax, qword [rdi + 0x2799b0]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xf0]
mov rax, qword [rdi + 0x2799b8]
mov qword [rcx], rax
mov rax, qword [rdi + 0x2799c0]
mov qword [rcx + 8], rax
mov word [rsp + 0x100], 0xfffe
movzx edx, word [r13 + rdi + 0x3214a4]
mov word [rsp + 0x102], dx
mov edi, dword [rsi - 4]
mov dword [rsp + 0x104], edi
movzx r8d, word [rsi]
lea eax, [r8 - 0x11]
movzx ecx, r8w
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], r8w
lea rdi, [0x140000000]
mov eax, dword [r13 + rdi + 0x3214a8]
mov dword [rsp + 0x114], eax
lea rcx, [rsp + 0x118]
mov rax, qword [rdi + 0x2799a8]
mov qword [rcx], rax
mov rax, qword [rdi + 0x2799b0]
mov qword [rcx + 8], rax
mov dword [rsp + 0x20], r15d
mov rcx, qword [rbx + 0x240]
mov rax, qword [rcx]
lea r9, [rsp + 0x20]
mov r8d, 0x68
lea rdx, [rsp + 0xc0]
call qword [rax + 0x18]
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0xc0]
mov r8d, 0x68
call fcn.14022e920
movzx edx, word [rsp + 0x10e]
cmp dx, 0x10
jbe 0x1400172bf
movzx ecx, word [rsp + 0x17e]
cmp dx, 0x20
cmovbe cx, r14w
mov word [rsp + 0x17e], cx
jmp 0x1400172c7
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], r15d
mov rcx, qword [rbx + 0x240]
mov rax, qword [rcx]
lea r9, [rsp + 0x24]
mov r8d, 0x68
lea rdx, [rsp + 0x130]
call qword [rax + 0x18]
cmp dword [rsp + 0x20], r15d
jne 0x14001732b
cmp dword [rsp + 0x24], r15d
je 0x140017348
mov rcx, qword [rbx + 0x258]
mov eax, dword [rsi - 8]
or dword [r12 + rcx + 4], eax
mov eax, dword [r13 + rdi + 0x3214a0]
or dword [rbx + 0x260], eax
add ebp, 1
add rsi, 0x14
jmp 0x140017080
add r12, 8
add r13, r14
cmp r12, 0x38
jl 0x140017060
test byte [rbx + 0x260], 0x20
je 0x1400173d0
call fcn.1401ffea8
test rax, rax
je 0x1400173c9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x1400173bb
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x1400173c2
add dword [rcx + 0x1b70], 1
or dword [rcx + 8], 0x200
add dword [rcx + 0x1b70], 0xffffffff
jne 0x1400173d7
mov rax, qword [rcx]
mov ebp, 1
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400173dc
mov ebp, 1
jmp 0x1400173dc
mov ebp, 1
jmp 0x1400173dc
mov ebp, 1
jmp 0x1400173dc
mov ebp, 1
jmp 0x1400173dc
mov ebp, 1
cmp dword [rbx + 0xc8], 9
jne 0x140017646
lea rcx, [rsp + 0x30]
call fcn.140166ed0
nop
lea r12, method.CArray_int__int_const____ptr64_.virtual_0
mov qword [rsp + 0x30], r12
call fcn.1401ff164
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140017420
mov ecx, 0x80004005
call fcn.140002bc0
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], r15
mov dword [rsp + 0xa8], r15d
mov dword [rsp + 0xb8], r15d
mov dword [rsp + 0xbc], r15d
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.14000b770
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.1400b56b0
call fcn.1401ffea8
test rax, rax
je 0x14001754b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x14001754b
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x14001754b
add dword [rcx + 0x1b70], 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 + 0xc8]
cmp eax, 1
je 0x14001752e
cmp eax, 3
jne 0x14001753a
bt dword [rcx + 8], 0x12
cmovb edx, ebp
mov dword [rsp + 0x68], edx
add dword [rcx + 0x1b70], 0xffffffff
jne 0x14001754b
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsp + 0xb8], 0
je 0x14001755f
or dword [rbx + 0x260], 0x80
cmp dword [rsp + 0xbc], 0
je 0x140017573
or dword [rbx + 0x260], 0x100
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400175ad
lea rdi, [rcx - 8]
lea r9, [fcn.1400e7390]
mov r8d, dword [rdi]
mov edx, 0x48
call fcn.14022c800
mov rcx, rdi
call fcn.1401f0b88
mov qword [rsp + 0xa0], r15
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400175d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, method.CArray_int__int_const____ptr64_.virtual_0
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 0x1400175fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, method.CArray_int__int_const____ptr64_.virtual_0
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 0x140017628
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 0x140017646
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbx + 0x260], 0
jne 0x1400176a1
cmp dword [rbx + 0x60], 1
jne 0x1400176a1
call fcn.1401ffea8
test rax, rax
je 0x1400176a1
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x1400176a1
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x1400176a1
add dword [rcx + 0x1b70], 1
test byte [rcx + 0x38], 0x20
je 0x140017690
xor eax, eax
jmp 0x140017712
add dword [rcx + 0x1b70], 0xffffffff
jne 0x1400176a1
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x260]
test eax, eax
jne 0x1400176b4
cmp dword [rbx + 0xc8], 9
je 0x140017712
test eax, eax
jne 0x140017710
cmp dword [rbx + 0xc8], 4
jne 0x140017710
cmp dword [rbx + 0x60], 1
jne 0x140017710
call fcn.1401ffea8
test rax, rax
je 0x140017710
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140017710
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140017710
add dword [rcx + 0x1b70], 1
test byte [rcx + 0x34], 0x20
je 0x1400176ff
xor eax, eax
jmp 0x140017712
add dword [rcx + 0x1b70], 0xffffffff
jne 0x140017710
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.14022b9b0
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