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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e4340]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
call fcn.140045550
test al, al
jne 0x14004b6a5
lea rdx, str.API_MS_WIN_
mov rcx, rdi
call fcn.140018aa0
test al, al
je 0x14004b453
mov dword [rsp + 0x70], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x74]
call fcn.140075c60
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14004b453
mov eax, dword [rsp + 0x74]
cmp eax, 6
ja 0x14004b6a5
cmp eax, 6
jne 0x14004b453
cmp dword [rsp + 0x78], 2
jae 0x14004b6a5
mov ecx, 0x400
call fcn.1400235c0
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1400725d0
mov rsi, rax
mov word [rax], 0
mov qword [rsp + 0x48], rax
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, r14d
jb 0x14004b4ad
mov rcx, rsi
call fcn.140073030
xor eax, eax
jmp 0x14004b711
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
mov r9d, r12d
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140049000
nop
mov r15, qword [rsp + 0x38]
xor eax, eax
mov rcx, r12
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, r12
lea rdi, [0x1400bd100]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
mov qword [rsp + 0x58], rcx
lea ecx, [rcx + r13 + 1]
cmp ecx, r14d
jle 0x14004b566
call fcn.1400235c0
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.1400725d0
mov rdi, rax
lea ecx, [r14 - 1]
movsxd r8, ecx
mov rdx, rsi
mov rcx, rax
call fcn.140078b40
mov word [rdi + r14*2 - 2], bp
mov rcx, rsi
call fcn.140073030
mov rsi, rdi
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x58]
movsxd rdi, eax
lea r8, [rdi + rdi]
movsxd rbx, r13d
lea rcx, [rsi + rbx*2]
test r8, r8
jle 0x14004b585
lea rdx, [0x1400bd100]
call fcn.140074230
lea rax, [rbx + rdi]
mov word [rsi + rax*2], 0
test rsi, rsi
je 0x14004b5a8
xor eax, eax
mov rcx, r12
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
jmp 0x14004b5ab
mov r13d, ebp
test r15, r15
je 0x14004b5c4
xor eax, eax
mov rcx, r12
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
jmp 0x14004b5c6
mov ebx, ebp
lea ecx, [rbx + r13 + 1]
test rsi, rsi
je 0x14004b5d5
cmp ecx, r14d
jle 0x14004b62f
call fcn.1400235c0
movsxd r14, eax
mov dword [rsp + 0x50], r14d
mov eax, 2
mul r14
cmovo rax, r12
mov rcx, rax
call fcn.1400725d0
mov rdi, rax
test rsi, rsi
je 0x14004b622
lea edx, [r14 - 1]
movsxd r8, edx
mov rdx, rsi
mov rcx, rax
call fcn.140078b40
mov word [rdi + r14*2 - 2], 0
mov rcx, rsi
call fcn.140073030
jmp 0x14004b627
mov word [rax], 0
mov rsi, rdi
mov qword [rsp + 0x48], rdi
movsxd rdi, ebx
lea r8, [rdi + rdi]
movsxd rbx, r13d
lea rcx, [rsi + rbx*2]
test r8, r8
jle 0x14004b64a
mov rdx, r15
call fcn.140074230
lea rax, [rbx + rdi]
mov word [rsi + rax*2], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp byte [rsp + 0x40], 0
je 0x14004b685
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004b68a
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.14001e970
mov rcx, qword [rsp + 0x38]
jmp 0x14004b68a
mov rcx, qword [rsp + 0x38]
call fcn.140073030
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call fcn.140073030
mov rax, rdi
jmp 0x14004b711
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140049000
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp byte [rsp + 0x40], bpl
je 0x14004b704
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004b709
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.14001e970
mov rcx, qword [rsp + 0x38]
jmp 0x14004b709
mov rcx, qword [rsp + 0x38]
call fcn.140073030
mov rax, rdi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400755f0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret