Function at 0x1401dac90
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.1402a90d0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1180], rbx
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov r13d, edx
mov dword [rsp + 0x68], edx
mov r14, rcx
mov qword [rsp + 0x70], rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x1401db19d
mov rsi, qword [0x1403ec168]
lea rax, [0x140323de0]
test rsi, rsi
jne 0x1401dad1c
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x50], rdi
jmp 0x1401dad35
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401dad20
xor edi, edi
mov qword [rsp + 0x50], rdi
test ebx, ebx
jne 0x1401dad3c
mov qword [rsp + 0x48], rax
jmp 0x1401dad61
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
nop
mov dword [rsp + 0x64], edi
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, r12
call qword [0x1403fd7e8]
mov esi, edi
test eax, eax
cmove esi, dword [rbp - 0x18]
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x5c], esi
lea rbx, [r14 + 0x20]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400dfa60
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401db680
mov r9d, 0x800
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1401dae43
lea rax, [rbp + 0x20]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401dadf0
test ebx, ebx
jle 0x1401dae26
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x20]
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
jmp 0x1401dae2d
cmp dword [rsp + 0x54], 0
jle 0x1401dae39
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
lea rdx, [rsp + 0x48]
call fcn.1401da1e0
mov r15, rdi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401dafe9
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401dae60
test rax, rax
je 0x1401dafe9
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [r14 + 8]
call fcn.1400f9eb0
mov r15, rax
test rax, rax
je 0x1401dafe9
mov r9, qword [r14 + 8]
mov r8d, esi
mov edx, r13d
mov rcx, rax
call fcn.1400d6400
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1401daf4f
mov qword [rbp - 0x80], 0x40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, r12
call qword [0x1403fd7e8]
test eax, eax
jne 0x1401daf4f
test byte [rbp - 0x48], 1
je 0x1401daf4f
mov qword [rsp + 0x40], 0
lea edx, [rax + 9]
lea rcx, [rsp + 0x38]
call fcn.1401e9030
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 9
lea r8, str.Protected
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, 9
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b7c0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401daf4f
mov rcx, qword [rsp + 0x38]
call fcn.140298600
mov dword [rsp + 0x58], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x19]
mov rcx, r12
call qword [0x1403fd7e8]
test eax, eax
jne 0x1401dafe9
cmp dword [rsp + 0x58], eax
je 0x1401dafe9
mov qword [rsp + 0x40], 0
lea edx, [rax + 8]
lea rcx, [rsp + 0x38]
call fcn.1401e9030
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Critical
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b7c0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401dafe9
mov rcx, qword [rsp + 0x38]
call fcn.140298600
test r15, r15
sete bl
mov byte [rsp + 0x30], bl
mov r13, rdi
mov r14, rdi
mov r9d, 0x30
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1401db177
nop word [rax + rax]
mov eax, dword [rbp + 0x18]
cmp eax, 0x40000
je 0x1401db035
cmp eax, 0x1000000
jne 0x1401db14f
mov rax, qword [rbp - 8]
cmp rax, r13
je 0x1401db14f
mov r13, rax
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x58]
mov rdx, r14
mov rcx, r12
call fcn.1401dab90
mov rsi, qword [rsp + 0x58]
test eax, eax
js 0x1401db13b
test rsi, rsi
jne 0x1401db075
mov ebx, edi
mov qword [rsp + 0x40], rsi
jmp 0x1401db097
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401db080
mov qword [rsp + 0x40], 0
test ebx, ebx
jne 0x1401db0a5
lea rax, [0x140323de0]
mov qword [rsp + 0x38], rax
jmp 0x1401db0ca
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx + 8]
call fcn.1400f9a30
lea rdx, [rsp + 0x38]
call fcn.1401da1e0
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 8]
call fcn.1400f9eb0
test rax, rax
je 0x1401db123
cmp rax, r15
jne 0x1401db117
mov bl, 1
mov byte [rsp + 0x30], bl
jmp 0x1401db128
mov edx, dword [rsp + 0x68]
mov rcx, rax
call fcn.1401da070
movzx ebx, byte [rsp + 0x30]
cmp dword [rsp + 0x40], 0
jle 0x1401db140
mov rcx, qword [rsp + 0x38]
call fcn.140298600
jmp 0x1401db140
movzx ebx, byte [rsp + 0x30]
test rsi, rsi
je 0x1401db154
mov rcx, rsi
call fcn.140298600
jmp 0x1401db154
movzx ebx, byte [rsp + 0x30]
add r14, qword [rbp + 8]
mov r9d, 0x30
lea r8, [rbp - 0x10]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x1401db020
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1401db18c
or qword [r15 + 0x40], 0x40000000
cmp dword [rsp + 0x50], 0
jle 0x1401db19d
mov rcx, qword [rsp + 0x48]
call fcn.140298600
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x1180]
add rsp, 0x1130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret