Function at 0x14003fc90
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.1400fe8d0
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], r15w
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14003fd31
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0xd0]
call fcn.140002fb0
nop
mov rcx, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov rax, rdx
sub rax, rcx
cmp rax, 7
jb 0x14003fda5
lea rdi, [rcx + 7]
mov qword [rbp + 0xe0], rdi
lea rbx, [rbp + 0xd0]
cmp rdx, 8
cmovae rbx, qword [rbp + 0xd0]
lea rcx, [rbx + rcx*2]
mov r8d, 0xe
lea rdx, str.McAfee
call fcn.1400fe220
mov word [rbx + rdi*2], r15w
jmp 0x14003fdcc
mov qword [rsp + 0x20], 7
lea r9, str.McAfee
movzx r8d, byte [rsp + 0x30]
mov edx, 7
lea rcx, [rbp + 0xd0]
call fcn.1400208c0
mov rdx, qword [rbp + 0xe0]
mov r8, qword [rbp + 0xe8]
mov rax, r8
sub rax, rdx
cmp rax, 4
jb 0x14003fe19
lea rcx, [rdx + 4]
mov qword [rbp + 0xe0], rcx
lea rax, [rbp + 0xd0]
cmp r8, 8
cmovae rax, qword [rbp + 0xd0]
movabs r8, 0x5300500057005c
mov qword [rax + rdx*2], r8
mov word [rax + rcx*2], r15w
jmp 0x14003fe40
mov qword [rsp + 0x20], 4
lea r9, str.WPS
movzx r8d, byte [rsp + 0x30]
mov edx, 4
lea rcx, [rbp + 0xd0]
call fcn.1400208c0
mov rcx, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov rax, rdx
sub rax, rcx
cmp rax, 0xc
jb 0x14003fe95
lea rdi, [rcx + 0xc]
mov qword [rbp + 0xe0], rdi
lea rbx, [rbp + 0xd0]
cmp rdx, 8
cmovae rbx, qword [rbp + 0xd0]
lea rcx, [rbx + rcx*2]
mov r8d, 0x18
lea rdx, str.product.cfg
call fcn.1400fe220
mov word [rbx + rdi*2], r15w
jmp 0x14003febc
mov qword [rsp + 0x20], 0xc
lea r9, str.product.cfg
movzx r8d, byte [rsp + 0x30]
mov edx, 0xc
lea rcx, [rbp + 0xd0]
call fcn.1400208c0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
mov ecx, 0x60
call fcn.1400fbb48
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0xf0], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.1400fe8d0
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 8
cmovae rdx, qword [rbp + 0xd0]
lea rcx, [rbp - 0x60]
call fcn.140041820
nop
xor bl, bl
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx - 0x50], 0
jne 0x1400406cc
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x100]
call fcn.1400fe8d0
lea rcx, [0x140000000]
lea rax, [rcx + 0x174b98]
mov qword [rbp + 0x100], rax
lea rax, [rcx + 0x1700e8]
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x1a0], r15
mov qword [rbp + 0x1c8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1d0], xmm0
mov esi, 1
mov dword [rsp + 0x38], esi
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x194], 0x80
mov qword [rbp + 0x108], r15
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x198]
call fcn.140017580
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x10c], edx
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x100], rax
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0xfc], edx
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x100], rax
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xfc], edx
lea rcx, [rbp + 0x118]
call fcn.140017320
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x180], r15
mov dword [rbp + 0x188], r15d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x110]
call fcn.1400408e0
nop
mov qword [rbp + 0xb0], r15
mov r9, r15
mov qword [rbp + 0xc0], r15
mov r11d, 7
mov qword [rbp + 0xc8], r11
mov word [rbp + 0xb0], r15w
mov dword [rsp + 0x38], 0x21
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov ecx, dword [rbp + 0x188]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140040100
mov rax, qword [rbp + 0x158]
mov r8, qword [rax]
test r8, r8
je 0x140040100
mov rax, qword [rbp + 0x138]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x180]
cmovb r8, qword [rbp + 0x180]
sub r8, rdx
sar r8, 1
jmp 0x140040140
test cl, 4
jne 0x140040136
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax]
test rcx, rcx
je 0x140040136
mov rax, qword [rbp + 0x130]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x168]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x140040140
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14004015f
lea rcx, [rbp + 0xb0]
call fcn.140002fb0
mov r11, qword [rbp + 0xc8]
mov r9, qword [rbp + 0xc0]
lea rax, [rbp + 0xb0]
mov r10, qword [rbp + 0xb0]
cmp r11, 8
jb 0x140040180
mov r8, r10
lea rcx, [r10 + r9*2]
lea rdx, [r10 + r9*2]
jmp 0x140040196
lea rdx, [rax + r9*2]
lea rcx, [rbp + 0xb0]
lea rcx, [rcx + r9*2]
lea r8, [rbp + 0xb0]
cmp r8, rcx
je 0x1400401f1
nop dword [rax + rax]
cmp word [r8], 0x20
je 0x1400401b0
add r8, 2
cmp r8, rcx
jne 0x1400401a0
cmp r8, rcx
je 0x1400401f1
lea rax, [r8 + 2]
cmp rax, rcx
je 0x1400401f1
nop
movzx r9d, word [rax]
cmp r9w, 0x20
je 0x1400401d3
mov word [r8], r9w
add r8, 2
add rax, 2
cmp rax, rcx
jne 0x1400401c0
mov r11, qword [rbp + 0xc8]
mov r9, qword [rbp + 0xc0]
mov r10, qword [rbp + 0xb0]
lea rax, [rbp + 0xb0]
sub rdx, r8
sar rdx, 1
cmp r11, 8
jb 0x140040209
sub r8, r10
jmp 0x140040213
sub r8, rax
lea r10, [rbp + 0xb0]
sar r8, 1
mov rax, r9
sub rax, r8
cmp rax, rdx
cmovb rdx, rax
lea rcx, [r10 + r8*2]
sub r9, rdx
mov qword [rbp + 0xc0], r9
lea rdx, [rcx + rdx*2]
sub r9, r8
lea r8, [r9*2 + 2]
call fcn.1400fe220
lea rax, [rbp + 0xb0]
mov r10, qword [rbp + 0xb0]
mov r11, qword [rbp + 0xc8]
mov r9, qword [rbp + 0xc0]
cmp r11, 8
jb 0x140040274
mov r8, r10
lea rcx, [r10 + r9*2]
lea rdx, [r10 + r9*2]
jmp 0x14004028a
lea rdx, [rax + r9*2]
lea rcx, [rbp + 0xb0]
lea rcx, [rcx + r9*2]
lea r8, [rbp + 0xb0]
cmp r8, rcx
je 0x1400402e1
nop
cmp word [r8], 0xa
je 0x1400402a0
add r8, 2
cmp r8, rcx
jne 0x140040290
cmp r8, rcx
je 0x1400402e1
lea rax, [r8 + 2]
cmp rax, rcx
je 0x1400402e1
nop
movzx r9d, word [rax]
cmp r9w, 0xa
je 0x1400402c3
mov word [r8], r9w
add r8, 2
add rax, 2
cmp rax, rcx
jne 0x1400402b0
mov r11, qword [rbp + 0xc8]
mov r9, qword [rbp + 0xc0]
mov r10, qword [rbp + 0xb0]
lea rax, [rbp + 0xb0]
sub rdx, r8
sar rdx, 1
cmp r11, 8
jb 0x1400402f9
sub r8, r10
jmp 0x140040303
sub r8, rax
lea r10, [rbp + 0xb0]
sar r8, 1
mov rax, r9
sub rax, r8
cmp rax, rdx
cmovb rdx, rax
lea rcx, [r10 + r8*2]
sub r9, rdx
mov qword [rbp + 0xc0], r9
lea rdx, [rcx + rdx*2]
sub r9, r8
lea r8, [r9*2 + 2]
call fcn.1400fe220
movzx eax, byte [0x1401b5780]
cmp al, 6
ja 0x140040368
lea r8, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae r8, qword [rbp + 0xb0]
mov edx, 6
lea rcx, str.OnboardProduct:_value_read_from_product_cfg_file_is:__s
call fcn.140034cf0
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r15w
lea r8, [rbp + 0xf0]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.14001d140
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov r8d, 0x11
lea rdx, str.wsstowpsmigration
lea rcx, [rsp + 0x40]
call fcn.140002fb0
mov r12, qword [rbp + 0xf0]
mov r10, qword [r12 + 8]
mov rdi, r12
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
cmp byte [r10 + 0x19], 0
jne 0x14004049d
cmp r13, 8
setae r15b
nop dword [rax + rax]
lea r9, [r10 + 0x20]
lea rax, [rsp + 0x40]
test r15b, r15b
cmovne rax, r14
mov r11, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14004042e
mov r9, qword [r9]
mov rcx, r11
cmp rbx, r11
cmovb rcx, rbx
test rcx, rcx
je 0x14004051a
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14004047c
sub r9, rax
cmp dx, r8w
ja 0x140040513
cmp rcx, 1
je 0x14004051a
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140040456
mov eax, 0xffffffff
test eax, eax
js 0x140040523
mov rdi, r10
mov r10, qword [r10]
cmp byte [r10 + 0x19], 0
je 0x140040410
xor r15d, r15d
cmp byte [rdi + 0x19], 0
jne 0x140040535
lea rax, [rdi + 0x20]
mov r10, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400404b9
mov rax, qword [rax]
lea r9, [rsp + 0x40]
cmp r13, 8
cmovae r9, r14
mov rcx, rbx
cmp r10, rbx
cmovb rcx, r10
test rcx, rcx
je 0x140040530
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x140040508
sub r9, rax
cmp dx, r8w
ja 0x14004052c
cmp rcx, 1
je 0x140040530
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400404ea
mov eax, 0xffffffff
test eax, eax
jns 0x140040538
jmp 0x140040535
mov eax, esi
jmp 0x140040481
cmp r11, rbx
jae 0x140040489
mov r10, qword [r10 + 0x10]
jmp 0x14004048f
mov eax, esi
jmp 0x14004050d
cmp rbx, r10
jae 0x140040538
mov rdi, r12
cmp rdi, r12
setne bl
cmp r13, 8
jb 0x140040555
lea r8, [r13 + 1]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000ced0
test bl, bl
je 0x140040664
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
mov r8d, 0x11
lea rdx, str.wsstowpsmigration
lea rcx, [rsp + 0x60]
call fcn.140002fb0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xf0]
call fcn.14002a900
mov r9, rax
mov r10, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400405b0
mov r9, qword [rax]
mov rcx, r10
cmp r10, 1
cmova rcx, rsi
lea rax, [0x14016c7ec]
test rcx, rcx
je 0x140040603
movzx edx, word [r9]
mov r8d, 0x31
cmp dx, r8w
jb 0x1400405fc
sub r9, rax
cmp dx, r8w
ja 0x140040618
cmp rcx, 1
je 0x140040603
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400405de
mov esi, 0xffffffff
jmp 0x140040618
cmp r10, 1
jae 0x140040610
mov esi, 0xffffffff
jmp 0x140040618
mov eax, r15d
seta al
mov esi, eax
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140040635
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.14000ced0
movzx eax, byte [0x1401b5780]
test esi, esi
jne 0x140040657
cmp al, 6
ja 0x140040653
lea edx, [rsi + 6]
lea rcx, str.OnboardProduct:_value_read_wsstowpsmigration_is_1.
call fcn.140034cf0
mov bl, 1
jmp 0x140040682
cmp al, 6
ja 0x140040680
lea rcx, str.OnboardProduct:_value_read_wsstowpsmigration_is_0.
jmp 0x140040676
movzx eax, byte [0x1401b5780]
cmp al, 6
ja 0x140040680
lea rcx, str.OnboardProduct:_didnt_find_wsstowpsmigration_flag.
mov edx, 6
call fcn.140034cf0
xor bl, bl
mov r8, qword [rbp + 0xc8]
cmp r8, 8
jb 0x1400406a5
inc r8
mov rdx, qword [rbp + 0xb0]
lea rcx, [rbp + 0xb0]
call fcn.14000ced0
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r15w
lea rcx, [rbp + 0x100]
call fcn.14001d930
nop
lea rcx, [rbp - 0x60]
call fcn.140040750
nop
mov r8, qword [rbp + 0xf0]
mov r8, qword [r8 + 8]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xf0]
call fcn.14000f730
mov edx, 0x60
mov rcx, qword [rbp + 0xf0]
call fcn.140074f80
nop
lea rcx, [rbp + 0xd0]
call fcn.14000d700
movzx eax, bl
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400fb890
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret