Function at 0x1401f4340
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.1402cec90
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1180], rbx
mov rax, qword [0x14041da10]
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 0x1401f484d
mov rsi, qword [0x14041eee8]
lea rax, [0x14034d1a0]
test rsi, rsi
jne 0x1401f43cc
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x50], rdi
jmp 0x1401f43e5
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401f43d0
xor edi, edi
mov qword [rsp + 0x50], rdi
test ebx, ebx
jne 0x1401f43ec
mov qword [rsp + 0x48], rax
jmp 0x1401f4411
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140203bb0
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 [0x140430cb0]
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.1400e4310
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401f4d40
mov r9d, 0x800
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1401f44f3
lea rax, [rbp + 0x20]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f44a0
test ebx, ebx
jle 0x1401f44d6
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x20]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
jmp 0x1401f44dd
cmp dword [rsp + 0x54], 0
jle 0x1401f44e9
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140203bb0
lea rdx, [rsp + 0x48]
call fcn.1401f3890
mov r15, rdi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401f4699
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401f4510
test rax, rax
je 0x1401f4699
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [r14 + 8]
call fcn.1400fa8d0
mov r15, rax
test rax, rax
je 0x1401f4699
mov r9, qword [r14 + 8]
mov r8d, esi
mov edx, r13d
mov rcx, rax
call fcn.1400dacb0
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1401f45ff
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 [0x140430cb0]
test eax, eax
jne 0x1401f45ff
test byte [rbp - 0x48], 1
je 0x1401f45ff
mov qword [rsp + 0x40], 0
lea edx, [rax + 9]
lea rcx, [rsp + 0x38]
call fcn.1402028a0
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 9
lea r8, str.Protected
mov rcx, qword [rsp + 0x38]
call fcn.1402c06dc
mov edx, 9
lea rcx, [rsp + 0x38]
call fcn.140203bb0
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b8f0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401f45ff
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
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 [0x140430cb0]
test eax, eax
jne 0x1401f4699
cmp dword [rsp + 0x58], eax
je 0x1401f4699
mov qword [rsp + 0x40], 0
lea edx, [rax + 8]
lea rcx, [rsp + 0x38]
call fcn.1402028a0
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, str.Critical
mov rcx, qword [rsp + 0x38]
call fcn.1402c06dc
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.140203bb0
nop
lea r8, [rsp + 0x38]
mov edx, 0xf
mov rcx, r15
call fcn.14000b8f0
nop
cmp dword [rsp + 0x40], 0
jle 0x1401f4699
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
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 0x1401f4827
nop word [rax + rax]
mov eax, dword [rbp + 0x18]
cmp eax, 0x40000
je 0x1401f46e5
cmp eax, 0x1000000
jne 0x1401f47ff
mov rax, qword [rbp - 8]
cmp rax, r13
je 0x1401f47ff
mov r13, rax
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x58]
mov rdx, r14
mov rcx, r12
call fcn.1401f4240
mov rsi, qword [rsp + 0x58]
test eax, eax
js 0x1401f47eb
test rsi, rsi
jne 0x1401f4725
mov ebx, edi
mov qword [rsp + 0x40], rsi
jmp 0x1401f4747
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401f4730
mov qword [rsp + 0x40], 0
test ebx, ebx
jne 0x1401f4755
lea rax, [0x14034d1a0]
mov qword [rsp + 0x38], rax
jmp 0x1401f477a
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x38]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx + 8]
call fcn.1400fa450
lea rdx, [rsp + 0x38]
call fcn.1401f3890
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 8]
call fcn.1400fa8d0
test rax, rax
je 0x1401f47d3
cmp rax, r15
jne 0x1401f47c7
mov bl, 1
mov byte [rsp + 0x30], bl
jmp 0x1401f47d8
mov edx, dword [rsp + 0x68]
mov rcx, rax
call fcn.1401f3720
movzx ebx, byte [rsp + 0x30]
cmp dword [rsp + 0x40], 0
jle 0x1401f47f0
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
jmp 0x1401f47f0
movzx ebx, byte [rsp + 0x30]
test rsi, rsi
je 0x1401f4804
mov rcx, rsi
call fcn.1402bd0e0
jmp 0x1401f4804
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 0x1401f46d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1401f483c
or qword [r15 + 0x40], 0x40000000
cmp dword [rsp + 0x50], 0
jle 0x1401f484d
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x1180]
add rsp, 0x1130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret