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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rbp + 0x880], rax
mov ebx, r8d
mov rsi, rdx
test rdx, rdx
je 0x140022c8d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140022c8d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x670]
call sub.VCRUNTIME140.dll_memset
lea r8, str.regsvr32.exe
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x670]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x670]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140022c8d
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
xor edi, edi
test ebx, ebx
je 0x140022ac8
mov dword [rbp - 0x60], edi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x60]
lea r8, str.IntegrateZoomWithOutlook
lea rdx, str.SOFTWAREPoliciesZoomZoom_MeetingsGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_long_int____ptr64__unsigned_long_int_]
mov ebx, eax
test eax, eax
jne 0x14002295b
mov dword [rsp + 0x20], 0x200
lea r9, [rbp - 0x60]
lea r8, str.IntegrateZoomWithOutlook
lea rdx, str.SOFTWAREPoliciesZoomZoom_MeetingsGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_long_int____ptr64__unsigned_long_int_]
mov ebx, eax
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x60]
lea r8, str.IntegrateZoomWithOutlook
lea rdx, str.SOFTWAREPoliciesZoomZoom_MeetingsRecommendedGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_long_int____ptr64__unsigned_long_int_]
test eax, eax
jne 0x1400229ad
mov dword [rsp + 0x20], 0x200
lea r9, [rbp - 0x60]
lea r8, str.IntegrateZoomWithOutlook
lea rdx, str.SOFTWAREPoliciesZoomZoom_MeetingsRecommendedGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_long_int____ptr64__unsigned_long_int_]
test ebx, ebx
jne 0x1400229b9
test eax, eax
je 0x140022abf
mov r15d, edi
mov rdx, rsi
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
mov r14d, 1
test eax, eax
jne 0x140022a06
xor r8d, r8d
lea rdx, str.Program_Files
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_wchar_t_::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_wchar_t_::length_void_const___ptr64]
cmp rbx, rax
cmovb r15d, r14d
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
test r15d, r15d
jne 0x140022abf
mov ebx, edi
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x58]
lea r8, str.IsManualImported
lea rdx, str.SoftwareIM_ProvidersZoom
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__class_Cmm::CStringT_wchar_t_____ptr64__unsigned_long_int_]
lea rdx, str.True
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140022a9e
mov dword [rsp + 0x20], 0x200
lea r9, [rbp - 0x58]
lea r8, str.IsManualImported
lea rdx, str.SoftwareIM_ProvidersZoom
mov rcx, 0xffffffff80000002
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__class_Cmm::CStringT_wchar_t_____ptr64__unsigned_long_int_]
lea rdx, str.True
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x140022aa1
mov ebx, r14d
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
test ebx, ebx
je 0x140022abf
lea r8, [0x140045190]
lea rdx, str._n__i:user__s__s___s_
jmp 0x140022b38
lea r8, [0x140045190]
jmp 0x140022b31
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x58]
lea r8, str.IsTLBRegisteredInUserMode
lea rdx, str.SoftwareIM_ProvidersZoom
mov rcx, 0xffffffff80000001
call qword [sym.imp.Cmmlib.dll_public:_static_int___cdecl_CRegistryHelper::ReadReg_struct_HKEY______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__class_Cmm::CStringT_wchar_t_____ptr64__unsigned_long_int_]
lea rdx, str.True
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
mov ebx, edi
mov r14d, 1
test eax, eax
cmove ebx, r14d
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea r8, [0x140041754]
test ebx, ebx
lea rdx, str._n__i:user__s__s___s_
jne 0x140022b38
lea rdx, str._s__s___s_
mov r9, rsi
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::Format_wchar_t_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rbx, rax
test rax, rax
je 0x140022c77
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x460]
call sub.VCRUNTIME140.dll_memset
lea r8, str.regsvr32.exe
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
lea rcx, [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140022c77
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xorps xmm0, 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
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x34], 0x240
mov qword [rsp + 0x38], rdi
lea rax, str.open
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140022c77
mov dword [rbp - 0x60], edi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140022c79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140022c79
mov ebx, edi
test ebx, ebx
setne dil
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, edi
jmp 0x140022c8f
xor eax, eax
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.1400325f0
mov rbx, qword [rsp + 0x9c0]
add rsp, 0x990
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret