Function at 0x140077910
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 0x14007796a
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 0x140077982
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 0x1400779bf
movzx ebx, bx
mov ecx, ebx
call fcn.140005710
test rax, rax
je 0x1400779dd
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400053d0
jmp 0x1400779dd
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400779c2
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 0x1400779f0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.14000d4f0
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x140077a1f
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__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 0x140077b00
mov r8d, 0x1c6
lea rdx, str.CWin32AppMgr::RegisterDll
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 0x140077ac3
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 0x140077ae2
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 0x140077afc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140077b57
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140077b19
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 0x140077b38
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 0x140077b52
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