Function at 0x140022880
Capabilities:
Get common file path
Get file version info
Get startup folder

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rsi + 7]
lea rdx, [0x1400bece8]
lea rcx, [rsp + 0x50]
call fcn.140011700
nop
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x40]
call fcn.140077610
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14002299e
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rcx, qword [rsp + 0x68]
cmp rcx, 8
jae 0x140022964
mov r8, qword [rsp + 0x60]
add r8, 1
je 0x140022971
add r8, r8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140075590
mov rcx, qword [rsp + 0x68]
jmp 0x140022971
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov dword [rsp + 0x30], 1
jmp 0x140022bb4
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
mov r8d, 0xd
lea rdx, str.kernel32.dll
lea rcx, [rbp - 0x80]
call fcn.140011700
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.1400142b0
nop
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400229f9
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140012760
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140022b19
xor eax, eax
mov qword [rsp + 0x78], rax
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1400238c0
nop
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r9, qword [rsp + 0x78]
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x70], esi
xor eax, eax
mov qword [rbp - 0x78], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x48]
lea rdx, [0x1400bf8a4]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140022a9d
cmp dword [rsp + 0x70], 0x34
jne 0x140022a9d
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rbp - 0x20]
call fcn.140077610
mov ecx, dword [rbp - 0x74]
movzx eax, cx
shr ecx, 0x10
mov r8d, dword [rbp - 0x78]
movzx r9d, r8w
shr r8d, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._u._u._u._u
lea rcx, [rbp - 0x20]
call fcn.140023930
cmp word [rbp - 0x20], 0
jne 0x140022ae5
mov r8, rsi
jmp 0x140022afb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140022af0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call fcn.140011700
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140022b19
call fcn.1400560a4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rcx, qword [rsp + 0x68]
cmp rcx, 8
jae 0x140022b55
mov r8, qword [rsp + 0x60]
add r8, 1
je 0x140022b62
add r8, r8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140075590
mov rcx, qword [rsp + 0x68]
jmp 0x140022b62
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov dword [rsp + 0x30], 1
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x140022ba4
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.140012760
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140022bd1
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140012760
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov rax, rbx
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140056080
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret