Function at 0x140077b80
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [r11 - 0x30], rcx
lea rbx, [0x1400dc870]
cmp word [0x1400dc870], 0
jne 0x140077bda
mov qword [r11 - 0x58], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x140077bf2
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
or rdi, 0xffffffffffffffff
test rbx, 0xffffffffffff0000
jne 0x140077c2f
movzx ebx, bx
mov ecx, ebx
call fcn.140005710
test rax, rax
je 0x140077c4d
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400053d0
jmp 0x140077c4d
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140077c32
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003d30
nop
lea rdx, str._regsvr32.exe
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140077c60
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.14000d4f0
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x140077c8f
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r9, qword [r14]
mov r8, qword [rsp + 0x58]
lea rdx, str._s__u__s___s_
lea rcx, [rsp + 0x60]
call fcn.1400054e0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rdx, [0x1400949f8]
lea rcx, [rsp + 0x38]
call fcn.1400052a0
mov rbx, rax
mov rsi, qword [rsp + 0x60]
add rsi, 0xffffffffffffffe8
mov rcx, rsi
call fcn.140005340
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140076bc0
test eax, eax
jne 0x140077d70
mov r8d, 0x1d5
lea rdx, str.CWin32AppMgr::UnregisterDll
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140033040
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140077d33
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140077d52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140077d6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140077dc7
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140077d89
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140077da8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140077dc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079e30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret