Function at 0x140050e50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
mov dword [rbp - 0x75], esi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], 0xf
mov byte [rbp + 0x17], sil
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov qword [rbp + 0x47], rsi
mov ecx, 0x105
call fcn.1400c5c48
mov qword [rbp + 0x37], rax
lea rbx, [rax + 0x105]
mov qword [rbp + 0x47], rbx
xor edx, edx
mov r8d, 0x105
mov rcx, rax
call fcn.1400cb730
mov qword [rbp + 0x3f], rbx
mov rax, qword [rbp + 0x37]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1400510e3
mov rdx, qword [rbp + 0x37]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140050f00
lea rcx, [rbp + 0x17]
call fcn.14000c140
mov rdx, qword [rbp + 0x27]
mov r8, qword [rbp + 0x2f]
mov rax, r8
sub rax, rdx
lea rcx, [rbp + 0x17]
cmp rax, 8
jb 0x140050f4e
lea rax, [rdx + 8]
mov qword [rbp + 0x27], rax
cmp r8, 0x10
cmovae rcx, qword [rbp + 0x17]
mov rax, qword [str.Sophos_]
mov qword [rcx + rdx], rax
mov byte [rcx + rdx + 8], 0
jmp 0x140050f71
lfence
mov qword [rsp + 0x20], 8
lea r9, str.Sophos_
movzx r8d, byte [rbp - 0x79]
mov edx, 8
call fcn.14000f1d0
nop
mov rcx, qword [rbp + 0x37]
test rcx, rcx
je 0x140050fab
mov rdx, qword [rbp + 0x47]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050fa6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051104
call fcn.1400c59a0
mov ecx, 0x68
call fcn.1400c5c48
mov rdi, rax
mov qword [rbp - 9], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
mov word [rbp - 0x69], 0x100
mov qword [rbp - 0x61], rsi
movdqa xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], al
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140051020
mov r8, rbx
lea rcx, [rbp - 0x31]
call fcn.14000c140
mov byte [rbp - 0x11], 0x20
mov dword [rbp - 0x75], 1
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140051140
mov rbx, rax
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14005105d
call fcn.1400c59a0
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14005106b
call fcn.1400c59a0
lea rcx, [rbp - 0x31]
call fcn.14000cc10
lea rcx, [rbp - 0x51]
call fcn.14000cba0
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x1400510b5
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400510b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400510dd
call fcn.1400c59a0
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400da6f8
nop
lea rdx, str.SHGetFolderPath_failed
lea rcx, [rbp - 1]
call fcn.140004160
lea rdx, [0x140156678]
lea rcx, [rbp - 1]
call fcn.1400cb8d0
nop
call fcn.1400da6f8
int3