Function at 0x14007f21c
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6b0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
xor r13d, r13d
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov rcx, qword [str.P5_n_]
lea r14, str.P5_n_
lea edi, [r13 + 5]
lea r15, [0x140008cb0]
lea r12d, [r13 + 2]
cmp rcx, r14
je 0x14007f2a1
test byte [rcx + 0x1c], r12b
je 0x14007f2a1
cmp byte [rcx + 0x19], dil
jb 0x14007f2a1
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x10]
mov r8, r15
call fcn.14000ffa8
mov rcx, qword [str.P5_n_]
cmp rsi, r13
je 0x14007f660
cmp rbp, r13
je 0x14007f660
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, edi
je 0x14007f2c9
cmp ecx, 6
jne 0x14007f49e
call fcn.14007cf4c
cmp eax, r13d
jne 0x14007f49e
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], r13d
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_memset
mov ebx, 0x208
lea rcx, [rsp + 0x82]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x80], r13w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x290], r13w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x80]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, r13d
jne 0x14007f37b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f688
test byte [rcx + 0x1c], r12b
je 0x14007f688
cmp byte [rcx + 0x19], r12b
jb 0x14007f688
mov edx, 0x17
mov r9d, eax
jmp 0x14007f67c
lea r9, [rsp + 0x80]
lea r8, [0x14000d7e0]
lea rcx, [rsp + 0x290]
mov rdx, rbx
call fcn.1400118ac
cmp eax, r13d
jge 0x14007f3d5
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f3cb
test byte [rcx + 0x1c], r12b
je 0x14007f3cb
cmp byte [rcx + 0x19], r12b
jb 0x14007f3cb
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov r9d, eax
mov r8, r15
call fcn.1400100e0
mov eax, 0x10b
jmp 0x14007f68a
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x290]
mov dword [rsp + 0x50], 0x14
call fcn.140077584
mov ebx, eax
cmp eax, r13d
je 0x14007f429
cmp eax, r12d
je 0x14007f429
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f688
test byte [rcx + 0x1c], r12b
je 0x14007f688
cmp byte [rcx + 0x19], r12b
jb 0x14007f688
mov edx, 0x19
jmp 0x14007f373
cmp di, word [rsp + 0x58]
jne 0x14007f49e
cmp r12w, word [rsp + 0x5a]
jne 0x14007f49e
mov eax, 0x6f0
cmp ax, word [rsp + 0x5c]
je 0x14007f450
mov eax, 0xa28
cmp ax, word [rsp + 0x5c]
jne 0x14007f49e
call fcn.14007f0a0
cmp rax, r13
jne 0x14007f490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f688
test byte [rcx + 0x1c], r12b
je 0x14007f688
cmp byte [rcx + 0x19], r12b
jb 0x14007f688
mov edx, 0x1a
jmp 0x14007f373
mov qword [rbp], r13
mov qword [rsi], rax
xor eax, eax
jmp 0x14007f68a
lea rax, [rsp + 0x40]
lea rdx, [0x14000a280]
mov r9d, 0x111
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r13d
je 0x14007f4fa
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f688
test byte [rcx + 0x1c], r12b
je 0x14007f688
cmp byte [rcx + 0x19], r12b
jb 0x14007f688
mov edx, 0x1b
jmp 0x14007f373
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea ebx, [r9 + 1]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
cmp rax, r13
jne 0x14007f54c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f62a
test byte [rcx + 0x1c], r12b
je 0x14007f62a
cmp byte [rcx + 0x19], r12b
jb 0x14007f62a
mov edx, 0x1c
jmp 0x14007f61b
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov r9, rax
lea r8d, [rdx + 4]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
cmp eax, r13d
je 0x14007f599
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f62a
test byte [rcx + 0x1c], r12b
je 0x14007f62a
cmp byte [rcx + 0x19], r12b
jb 0x14007f62a
mov edx, 0x1d
jmp 0x14007f61b
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [0x14000a1c8]
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call fcn.14007edfc
mov ebx, eax
cmp eax, r13d
jne 0x14007f640
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14007ef9c
cmp dword [rsp + 0x48], 4
jne 0x14007f62f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, r13d
jne 0x14007f62f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007f62a
test byte [rcx + 0x1c], r12b
je 0x14007f62a
cmp byte [rcx + 0x19], r12b
jb 0x14007f62a
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
cmp ebx, r13d
jne 0x14007f640
mov rax, qword [rsp + 0x40]
mov qword [rsi], rdi
mov qword [rbp], rax
jmp 0x14007f497
cmp rdi, r13
je 0x14007f64e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x14007f688
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007f688
mov ebx, 0x57
cmp rcx, r14
je 0x14007f688
test byte [rcx + 0x1c], r12b
je 0x14007f688
cmp byte [rcx + 0x19], r12b
jb 0x14007f688
lea edx, [rbx - 0x41]
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.1400100e0
mov eax, ebx
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14008c5b0
mov rbx, qword [rsp + 0x700]
add rsp, 0x6b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret