Function at 0x140076c40
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 [0x1400d6010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [r11 - 0x30], rcx
lea rbx, [0x1400daa20]
cmp word [0x1400daa20], 0
jne 0x140076c9a
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 0x140076cb2
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 0x140076cef
movzx ebx, bx
mov ecx, ebx
call fcn.140005710
test rax, rax
je 0x140076d0d
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400053d0
jmp 0x140076d0d
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140076cf2
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 0x140076d20
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.14000d470
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x140076d4f
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, [0x1400939d8]
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.140075c80
test eax, eax
jne 0x140076e30
mov r8d, 0x1d5
lea rdx, str.CWin32AppMgr::UnregisterDll
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140032320
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140076df3
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 0x140076e12
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 0x140076e2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140076e87
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140076e49
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 0x140076e68
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 0x140076e82
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.140078ef0
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