Function at 0x1401f0d00
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.1402cb740
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1180], rbx
mov rax, qword [0x140418a10]
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 0x1401f120d
mov rsi, qword [0x14041a158]
lea rax, [0x140348ca0]
test rsi, rsi
jne 0x1401f0d8c
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x50], rdi
jmp 0x1401f0da5
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401f0d90
xor edi, edi
mov qword [rsp + 0x50], rdi
test ebx, ebx
jne 0x1401f0dac
mov qword [rsp + 0x48], rax
jmp 0x1401f0dd1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140200570
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 [0x14042bbe8]
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.1400e2e90
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401f1700
mov r9d, 0x800
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1401f0eb3
lea rax, [rbp + 0x20]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f0e60
test ebx, ebx
jle 0x1401f0e96
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x20]
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
jmp 0x1401f0e9d
cmp dword [rsp + 0x54], 0
jle 0x1401f0ea9
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140200570
lea rdx, [rsp + 0x48]
call fcn.1401f0250
mov r15, rdi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401f1059
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401f0ed0
test rax, rax
je 0x1401f1059
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [r14 + 8]
call fcn.1400f92f0
mov r15, rax
test rax, rax
je 0x1401f1059
mov r9, qword [r14 + 8]
mov r8d, esi
mov edx, r13d
mov rcx, rax
call fcn.1400d9830
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1401f0fbf
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 [0x14042bbe8]
test eax, eax
jne 0x1401f0fbf
test byte [rbp - 0x48], 1
je 0x1401f0fbf
mov qword [rsp + 0x40], 0
lea edx, [rax + 9]
lea rcx, [rsp + 0x38]
call fcn.1401ff260
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 9
lea r8, str.Protected
mov rcx, qword [rsp + 0x38]
call fcn.1402bd21c
mov edx, 9
lea rcx, [rsp + 0x38]
call fcn.140200570
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b8f0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401f0fbf
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
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 [0x14042bbe8]
test eax, eax
jne 0x1401f1059
cmp dword [rsp + 0x58], eax
je 0x1401f1059
mov qword [rsp + 0x40], 0
lea edx, [rax + 8]
lea rcx, [rsp + 0x38]
call fcn.1401ff260
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Critical
mov rcx, qword [rsp + 0x38]
call fcn.1402bd21c
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.140200570
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b8f0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401f1059
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
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 0x1401f11e7
nop word [rax + rax]
mov eax, dword [rbp + 0x18]
cmp eax, 0x40000
je 0x1401f10a5
cmp eax, 0x1000000
jne 0x1401f11bf
mov rax, qword [rbp - 8]
cmp rax, r13
je 0x1401f11bf
mov r13, rax
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x58]
mov rdx, r14
mov rcx, r12
call fcn.1401f0c00
mov rsi, qword [rsp + 0x58]
test eax, eax
js 0x1401f11ab
test rsi, rsi
jne 0x1401f10e5
mov ebx, edi
mov qword [rsp + 0x40], rsi
jmp 0x1401f1107
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401f10f0
mov qword [rsp + 0x40], 0
test ebx, ebx
jne 0x1401f1115
lea rax, [0x140348ca0]
mov qword [rsp + 0x38], rax
jmp 0x1401f113a
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x38]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140200570
nop
lea rdx, [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx + 8]
call fcn.1400f8e70
lea rdx, [rsp + 0x38]
call fcn.1401f0250
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 8]
call fcn.1400f92f0
test rax, rax
je 0x1401f1193
cmp rax, r15
jne 0x1401f1187
mov bl, 1
mov byte [rsp + 0x30], bl
jmp 0x1401f1198
mov edx, dword [rsp + 0x68]
mov rcx, rax
call fcn.1401f00e0
movzx ebx, byte [rsp + 0x30]
cmp dword [rsp + 0x40], 0
jle 0x1401f11b0
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
jmp 0x1401f11b0
movzx ebx, byte [rsp + 0x30]
test rsi, rsi
je 0x1401f11c4
mov rcx, rsi
call fcn.1402b9c20
jmp 0x1401f11c4
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 0x1401f1090
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1401f11fc
or qword [r15 + 0x40], 0x40000000
cmp dword [rsp + 0x50], 0
jle 0x1401f120d
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x1180]
add rsp, 0x1130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret