Function at 0x140001af0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
sar rax, 3
mov r15d, 2
cmp rax, r15
jae 0x140001b69
mov edx, 0xe12305b6
lea rcx, [rbp + 0x18]
call fcn.140010050
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
int3
mov rdi, qword [rdi + 8]
or r14d, 0xffffffff
mov dword [rsp + 0x28], r14d
lea rax, str.List
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
lea r13d, [r14 + 2]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x1400021df
mov dword [rsp + 0x28], r14d
lea rax, [0x140051be4]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x1400021df
mov dword [rsp + 0x28], r14d
lea rax, [0x140051be8]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x140001ca3
mov dword [rsp + 0x28], r14d
lea rax, [0x140051bf4]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r13d
mov esi, 0x409
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x140001ca3
mov dword [rsp + 0x28], r14d
lea rax, [0x140051bf8]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r13d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x140001c9e
mov dword [rsp + 0x28], r14d
lea rax, [0x140051c04]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r13d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, r15d
je 0x140001c9e
mov r9, rdi
mov r8d, r13d
mov edx, 0xe12305b7
lea rcx, [rbp + 0x18]
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
int3
mov r14d, r13d
jmp 0x140001ca6
xor r14d, r14d
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 3
cmp rax, 4
jae 0x140001cd9
mov edx, 0xe12305b8
lea rcx, [rbp + 0x18]
call fcn.140010050
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
int3
xor esi, esi
dec rax
cmp rax, r15
jbe 0x140001e7a
lea edi, [rsi + 0x10]
or ecx, 0xffffffff
mov dword [rsp + 0x28], ecx
lea rax, [0x140051c08]
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, qword [rdx + rdi]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140001e20
mov rax, qword [rbx]
or r9d, 0xffffffff
mov dword [rsp + 0x28], r9d
lea rcx, [0x140051c24]
mov qword [rsp + 0x20], rcx
mov r8, qword [rdi + rax]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140001e20
mov rax, qword [rbx]
or edx, 0xffffffff
mov dword [rsp + 0x28], edx
lea rcx, str.SampleProfiling
mov qword [rsp + 0x20], rcx
mov r9d, edx
mov r8, qword [rdi + rax]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140001e19
mov rax, qword [rbx]
or edx, 0xffffffff
mov dword [rsp + 0x28], edx
lea rcx, [0x140051c50]
mov qword [rsp + 0x20], rcx
mov r9d, edx
mov r8, qword [rdi + rax]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140001e19
mov rax, qword [rbx]
or edx, 0xffffffff
mov dword [rsp + 0x28], edx
lea rcx, str.FullAccess
mov qword [rsp + 0x20], rcx
mov r9d, edx
mov r8, qword [rdi + rax]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140001e12
mov rax, qword [rbx]
or edx, 0xffffffff
mov dword [rsp + 0x28], edx
lea rcx, [0x140051c58]
mov qword [rsp + 0x20], rcx
mov r9d, edx
mov r8, qword [rdi + rax]
mov edx, r13d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x140001e4a
mov eax, 0xf
jmp 0x140001e23
mov eax, 4
jmp 0x140001e23
mov eax, r13d
or esi, eax
add r15d, r13d
add rdi, 8
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, rdx
sar rcx, 3
sub rcx, r13
movsxd rax, r15d
cmp rax, rcx
jae 0x140001e7a
jmp 0x140001cea
movsxd rdx, r15d
mov rcx, rbx
call fcn.1400030d8
mov r9, qword [rax]
mov r8d, r13d
mov edx, 0xe12305b9
lea rcx, [rbp + 0x18]
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
int3
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, rax
sar rdx, 3
mov rdx, qword [rax + rdx*8 - 8]
lea rcx, [rbp + 0xf0]
call fcn.140010b6c
nop
lea rcx, [rsp + 0x30]
call fcn.14002423c
mov r8d, eax
test eax, eax
jns 0x140001eef
lea rcx, [rbp - 8]
call fcn.1400032c4
nop
lea rdx, [rbp - 8]
mov ecx, r8d
call fcn.140001678
lea rcx, [rbp - 8]
call fcn.140003178
mov r9, rax
mov r8d, r13d
mov edx, 0xe12305bb
lea rcx, [rbp + 0x18]
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
nop
mov rdi, qword [rsp + 0x30]
mov rax, qword [rdi]
xor r9d, r9d
lea r8, [rsp + 0x38]
lea edx, [r9 + 4]
mov rcx, rdi
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
jns 0x140001f5b
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
lea rcx, [rbp - 8]
call fcn.1400032c4
nop
lea rdx, [rbp - 8]
mov ecx, ebx
call fcn.140001678
lea rcx, [rbp - 8]
call fcn.140003178
mov r9, rax
mov r8d, r13d
mov edx, 0xe12305bb
lea rcx, [rbp + 0x18]
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp + 0x18]
call fcn.140028338
nop
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140010808
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x40], esi
lea eax, [r14 + 2]
mov dword [rsp + 0x44], eax
and dword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], r13d
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x68], rax
mov dword [rbp + 0x50], 0x9c
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp - 0x80], 0
je 0x140002031
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x140002031
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov ecx, r13d
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x14000203a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
jne 0x140002006
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002036
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidAcl]
test eax, eax
je 0x140002024
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140010a70
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140002097
mov eax, 0x53a
test eax, eax
je 0x140002097
cmp ebx, 5
jne 0x14000204b
mov eax, 0x2e4
cmp dword [rbp + 0x54], 6
cmovae ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea rcx, [rbp - 8]
call fcn.1400032c4
nop
lea rdx, [rbp - 8]
mov ecx, ebx
call fcn.140001678
lea rcx, [rbp - 8]
call fcn.140003178
mov r9, rax
mov r8d, r13d
mov edx, 0xe12305bc
lea rcx, [rbp + 0x18]
call fcn.1400012f0
lea rdx, [0x1400625c8]
lea rcx, [rbp + 0x18]
call fcn.140028338
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140002f60
nop
mov rax, qword [rbp]
mov rsi, qword [rbp - 8]
sub rax, rsi
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x1400020da
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400020dc
xor eax, eax
test eax, eax
je 0x14000213d
cmp eax, 5
jne 0x1400020f1
mov eax, 0x2e4
cmp dword [rbp + 0x54], 6
cmovae ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea rcx, [rbp + 0x18]
call fcn.1400032c4
nop
lea rdx, [rbp + 0x18]
mov ecx, ebx
call fcn.140001678
lea rcx, [rbp + 0x18]
call fcn.140003178
mov r9, rax
mov r8d, r13d
mov edx, 0xe12305bc
lea rcx, [rbp - 0x40]
call fcn.1400012f0
lea rdx, [0x1400625c8]
lea rcx, [rbp - 0x40]
call fcn.140028338
nop
mov rax, qword [rdi]
mov r8, rsi
mov edx, 4
mov rcx, rdi
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
jns 0x1400021b3
cmp eax, 0x80070005
jne 0x140002167
mov eax, 0x2e4
cmp dword [rbp + 0x54], 6
cmovae ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea rcx, [rbp + 0x18]
call fcn.1400032c4
nop
lea rdx, [rbp + 0x18]
mov ecx, ebx
call fcn.140001678
lea rcx, [rbp + 0x18]
call fcn.140003178
mov r9, rax
mov r8d, r13d
mov edx, 0xe12305bc
lea rcx, [rbp - 0x40]
call fcn.1400012f0
lea rdx, [0x1400625c8]
lea rcx, [rbp - 0x40]
call fcn.140028338
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
lea rcx, [rbp - 8]
call fcn.140002ee4
nop
lea rcx, [rbp - 0x80]
call fcn.140010870
nop
lea rcx, [rbp + 0xf0]
call fcn.140010c40
jmp 0x1400021e7
mov rcx, rsi
call fcn.1400016ac
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret