Function at 0x14004e960
Capabilities:
Get common file path
Link many functions at runtime

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 - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140185220]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov qword [0x14018c7a0], rsi
mov qword [0x14018c7a8], rsi
xorps xmm0, xmm0
movdqa xmmword [0x14018c7b0], xmm0
xorps xmm1, xmm1
movdqa xmmword [0x14018c7c0], xmm1
movdqa xmmword [0x14018c7d0], xmm0
movdqa xmmword [0x14018c7e0], xmm1
movdqa xmmword [0x14018c7f0], xmm0
mov byte [0x14018c800], sil
mov dword [rbp - 0x41], 8
mov dword [rbp - 0x3d], 0x4404
lea rcx, [rbp - 0x41]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov byte [0x14018c800], sil
mov qword [rbp - 0x49], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
lea r9, [rbp - 0x49]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140152ec0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14004ebab
mov rdx, qword [rbp - 0x49]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004ea40
lea rcx, [rbp - 0x19]
call fcn.14004ca40
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.uxtheme.dll
lea rcx, [rbp - 0x19]
call fcn.14004ef90
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14005f2f0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
lea r9, [0x14016304c]
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x31]
call fcn.14004f030
mov r14, qword [rbp - 0x29]
mov rax, r14
mov rdi, qword [rbp - 0x31]
sub rax, rdi
sar rax, 5
cmp rax, 4
jne 0x14004eb4b
call fcn.14011e784
mov r12, rax
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004ead0
mov rbx, qword [rdi]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.14011e548
mov r13d, eax
cmp rbx, qword [rbp - 0x39]
je 0x14004ef01
cmp dword [r12], 0x22
je 0x14004ef0e
lea rcx, [rdi + 0x20]
call fcn.14004f5a0
mov ebx, eax
lea rcx, [rdi + 0x40]
call fcn.14004f5a0
mov esi, eax
cmp r13d, 0xa
jle 0x14004eb21
mov byte [0x14018c800], 1
jmp 0x14004eb4b
jne 0x14004eb4b
test ebx, ebx
jle 0x14004eb30
mov byte [0x14018c800], 1
jmp 0x14004eb4b
movzx eax, byte [0x14018c800]
mov ecx, 1
cmp esi, 0x4562
cmovg eax, ecx
mov byte [0x14018c800], al
test rdi, rdi
je 0x14004eba2
mov rbx, rdi
cmp rdi, r14
je 0x14004eb69
mov rcx, rbx
call fcn.14004b2f0
add rbx, 0x20
cmp rbx, r14
jne 0x14004eb58
mov rdx, qword [rbp - 0x21]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x14004eb99
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ef1b
mov rcx, rdi
call fcn.14011460c
nop
lea rcx, [rbp + 7]
call fcn.14004b2f0
cmp qword [rbp - 9], 0
jne 0x14004ebbb
lea rcx, [0x140162be8]
jmp 0x14004ebc9
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14018c7f8], rax
test rax, rax
je 0x14004ee8b
cmp byte [0x14018c800], 0
je 0x14004ee8b
mov rcx, rax
cmp esi, 0x47ba
jge 0x14004ec0d
lea rdx, str.AllowDarkModeForApp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7a0], rax
jmp 0x14004ec21
lea rdx, str.SetPreferredAppMode
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7a8], rax
lea rdx, str.AllowDarkModeForWindow
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7b0], rax
lea rdx, str.ShouldAppsUseDarkMode
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7b8], rax
lea rdx, str.IsDarkModeAllowedForWindow
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7c0], rax
lea rdx, str.IsDarkModeAllowedForApp
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7c8], rax
lea rdx, str.ShouldSystemUseDarkMode
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7d0], rax
lea rdx, str.RefreshImmersiveColorPolicyState
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7d8], rax
lea rdx, str.GetIsImmersiveColorUsingHighContrast
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7e0], rax
lea rdx, str.FlushMenuThemes
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7e8], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetWindowCompositionAttribute
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7f0], rax
cmp qword [0x14018c7a0], 0
jne 0x14004ed48
cmp esi, 0x47ba
jge 0x14004ed48
mov edx, 0x87
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7a0], rax
cmp qword [0x14018c7a8], 0
jne 0x14004ed73
cmp esi, 0x47ba
jl 0x14004ed73
mov edx, 0x87
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7a8], rax
cmp qword [0x14018c7b0], 0
jne 0x14004ed96
mov edx, 0x85
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7b0], rax
cmp qword [0x14018c7b8], 0
jne 0x14004edb9
mov edx, 0x84
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7b8], rax
cmp qword [0x14018c7c0], 0
jne 0x14004eddc
mov edx, 0x89
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7c0], rax
cmp qword [0x14018c7c8], 0
jne 0x14004edff
mov edx, 0x8b
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7c8], rax
cmp qword [0x14018c7d0], 0
jne 0x14004ee22
mov edx, 0x8a
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7d0], rax
cmp qword [0x14018c7d8], 0
jne 0x14004ee45
mov edx, 0x68
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7d8], rax
cmp qword [0x14018c7e0], 0
jne 0x14004ee68
mov edx, 0x6a
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7e0], rax
cmp qword [0x14018c7e8], 0
jne 0x14004ee8b
mov edx, 0x88
mov rcx, qword [0x14018c7f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018c7e8], rax
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14004eec7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004eec2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004eefb
call fcn.14011460c
lea rax, [0x14018c7a0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401145b0
lea r11, [rsp + 0xb0]
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
call fcn.14011c9a4
nop
lea rcx, str.invalid_stol_argument
call fcn.1400eb9f0
int3
lea rcx, str.stol_argument_out_of_range
call fcn.1400eba38
nop
call fcn.14011c9a4
int3