Function at 0x1400b7900
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
mov qword [r11 - 0x30], rcx
lea rdi, [0x140158200]
cmp word [0x140158200], 0
jne 0x1400b7955
mov qword [r11 - 0x58], rdi
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.140004f00
mov rcx, rax
test rax, rax
je 0x1400b7b89
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400046a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1400b79ab
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400b7990
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140004940
nop
lea rdx, str._regsvr32.exe
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400b79b5
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.14000ff80
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400b7b94
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r9, qword [rsi]
mov r8, qword [rsp + 0x58]
lea rdx, str._s__u__s___s_
lea rcx, [rsp + 0x60]
call fcn.140006c20
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400b7b7e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdi, [0x1400deef8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400046a0
test al, al
jne 0x1400b7a6b
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400b7a50
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140004940
nop
mov rdi, qword [rsp + 0x60]
add rdi, 0xffffffffffffffe8
mov rcx, rdi
call fcn.140006ba0
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400b6670
test eax, eax
jne 0x1400b7b08
mov r8d, 0x240
lea rdx, str.CWin32AppMgr::UnregisterDll
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
nop
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x1400b7acb
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b7aea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400b7b04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400b7b5f
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x1400b7b21
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b7b40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400b7b5a
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.1400ba610
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
int3