Function at 0x140001980
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1400c3700]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov r8d, 0x104
lea rdx, [rbp + 0x1e0]
lea rcx, str._ProgramW6432_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
lea rcx, str._ProgramFiles_x86__
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rbp - 0x40]
lea rcx, [rdx - 1]
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140001a00
movups xmm0, xmmword [str.YandexYandexBrowserApplication_browser.exe]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1400b0ff8]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x1400b1008]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x1400b1010]
mov dword [rcx + 0x28], eax
movzx eax, word [0x1400b1014]
mov word [rcx + 0x2c], ax
lea rcx, [rsp + 0x70]
call fcn.140001dc0
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rdx - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140001a55
movups xmm0, xmmword [str.YandexYandexBrowserApplication_browser.exe]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1400b0ff8]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x1400b1008]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x1400b1010]
mov dword [rcx + 0x28], eax
movzx eax, word [0x1400b1014]
mov word [rcx + 0x2c], ax
lea rcx, [rsp + 0x50]
call fcn.140001dc0
nop
lea rdx, [rbp + 0x1e0]
lea rcx, [rdx - 1]
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140001ab0
movups xmm0, xmmword [str.YandexYandexBrowserApplication_browser.exe]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1400b0ff8]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x1400b1008]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x1400b1010]
mov dword [rcx + 0x28], eax
movzx eax, word [0x1400b1014]
mov word [rcx + 0x2c], ax
lea rcx, [rsp + 0x30]
call fcn.140001dc0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmp dword [rbp - 0x5c], 0
jne 0x140001c4a
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmp dword [rbp - 0x5c], 0
jne 0x140001c4a
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmp dword [rbp - 0x5c], 0
jne 0x140001c4a
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001ba4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c7e
call fcn.14009f22c
movdqa xmm0, xmmword [0x1400b5dc0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140001bfc
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001cd1
call fcn.14009f22c
movdqa xmm0, xmmword [0x1400b5dc0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001c43
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001d23
call fcn.14009f22c
xor al, al
jmp 0x140001d31
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001c8a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009f22c
movdqa xmm0, xmmword [0x1400b5dc0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140001ce5
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009f22c
movdqa xmm0, xmmword [0x1400b5dc0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001d2f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009f22c
mov al, 1
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14009ef90
add rsp, 0x400
pop rbp
ret