Function at 0x14001a9f0
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x850]
sub rsp, 0x950
mov rax, qword [0x14004ae08]
xor rax, rsp
mov qword [rbp + 0x840], rax
mov edi, r8d
mov rbx, rdx
test rdx, rdx
je 0x14001ac12
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001ac12
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x630]
call sub.VCRUNTIME140.dll_memset
lea r8, str.regsvr32.exe
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x630]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x630]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001ac12
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
lea rax, [0x140035fd4]
lea r8, [0x14003645c]
test edi, edi
cmovne r8, rax
mov r9, rbx
lea rdx, str._s__s___s_
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::Format_wchar_t_const____ptr64____ptr64]
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rdi, rax
test rax, rax
je 0x14001abfb
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x420]
call sub.VCRUNTIME140.dll_memset
lea r8, str.regsvr32.exe
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x420]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
cmp rax, 0xffffffffffffffff
je 0x14001abfd
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x240
mov qword [rsp + 0x28], rbx
lea rax, str.open
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x420]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov rcx, qword [rbp - 0x78]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001abfd
mov dword [rbp - 0x70], ebx
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14001abff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001abff
xor ebx, ebx
mov edi, ebx
test edi, edi
setne bl
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
jmp 0x14001ac14
xor eax, eax
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.140027b30
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret