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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c42d8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rcx
call fcn.140022000
test al, al
jne 0x14002a5f8
lea rdx, str.API_MS_WIN_
mov rcx, r14
call fcn.140004690
test al, al
je 0x14002a490
mov dword [rsp + 0x60], 0x114
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x64]
call fcn.14003fce0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002a490
cmp dword [rsp + 0x64], 6
ja 0x14002a5f8
jne 0x14002a490
cmp dword [rsp + 0x68], 2
jae 0x14002a5f8
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
mov ecx, 0x400
call fcn.14000e0f0
mov dword [rsp + 0x38], eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.14003d3c8
mov rsi, rax
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14002a4fe
mov ecx, dword [rsp + 0x38]
dec ecx
movsxd r8, ecx
mov rcx, rax
call fcn.140064d58
mov ecx, dword [rsp + 0x38]
dec ecx
movsxd rdx, ecx
mov word [rsi + rdx*2], di
mov rcx, qword [rsp + 0x30]
call fcn.14003cadc
jmp 0x14002a501
mov word [rax], di
mov qword [rsp + 0x30], rsi
mov ebx, dword [rsp + 0x38]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jb 0x14002a521
mov rbx, rdi
jmp 0x14002a5ec
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x20], 1
mov r9d, r15d
mov r8d, 0xfde9
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000e8d0
nop
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14002a56c
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14002a560
jmp 0x14002a56e
mov ebx, edi
lea edx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.14002a340
movsxd rcx, ebx
mov rax, qword [rsp + 0x30]
lea r9, [rax + rcx*2]
movzx eax, word [0x14009fe64]
mov word [r9], ax
movsxd rcx, ebx
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2 + 2], di
mov r8d, r15d
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14002a100
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, qword [rsp + 0x48]
cmp byte [rsp + 0x50], 0
je 0x14002a5de
test rcx, rcx
je 0x14002a5de
movsxd rdx, dword [rsp + 0x40]
add rdx, rdx
call fcn.140004df0
mov rcx, qword [rsp + 0x48]
call fcn.14003cadc
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x30]
call fcn.14003cadc
jmp 0x14002a65c
xor edi, edi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x50], dil
mov byte [rsp + 0x20], 1
lea r9, [rdi - 1]
mov r8d, 0xfde9
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000e8d0
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, qword [rsp + 0x48]
cmp byte [rsp + 0x50], dil
je 0x14002a656
test rcx, rcx
je 0x14002a656
movsxd rdx, dword [rsp + 0x40]
add rdx, rdx
call fcn.140004df0
mov rcx, qword [rsp + 0x48]
call fcn.14003cadc
nop
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14003cb80
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret