Function at 0x1800409f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1801519f8]
xor rax, rsp
mov qword [rbp + 0x260], rax
lea rax, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationsmailtoUserChoice
mov qword [rsp + 0x50], 0x4f
movups xmm0, xmmword [rax]
mov rbx, rcx
lea rcx, [rbp - 0x50]
movups xmm1, xmmword [rax + 0x10]
xor esi, esi
mov r9d, 0x20019
movups xmmword [rcx], xmm0
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000001
movups xmm0, xmmword [rax + 0x20]
mov dword [rsp + 0x20], esi
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm0
movups xmm0, xmmword [rax + 0x90]
lea rax, [rbp - 0x50]
movups xmmword [rcx + 0x80], xmm1
mov qword [rsp + 0x58], rax
movups xmmword [rcx + 0x90], xmm0
lea rcx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinRegistryKey::constructor_struct_HKEY______ptr64__class_QStringView__unsigned_long_int__unsigned_long_int____ptr64]
lea rcx, str.Progid
mov qword [rbp - 0x70], 6
mov qword [rbp - 0x68], rcx
lea r8, [rsp + 0x40]
movaps xmm0, xmmword [rbp - 0x70]
lea rdx, [rsp + 0x30]
mov rcx, rax
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QWinRegistryKey::stringValue_class_QStringView____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinRegistryKey::destructor_void____ptr64]
mov rax, qword [rsp + 0x30]
mov edi, dword [rax + 4]
test edi, edi
jne 0x180040b25
lea rax, [0x1800f9f60]
mov dword [rsp + 0x40], 6
mov qword [rsp + 0x48], rax
jmp 0x180040b2c
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
lea rax, str.ShellOpenCommand
mov dword [rsp + 0x50], SafeArrayCopy
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x50]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rcx, [rsp + 0x40]
test edi, edi
lea rax, [rbp - 0x60]
cmove rax, rcx
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QString_const____ptr64____ptr64]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
movsxd rdi, dword [rax + 4]
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QString::isNull_void_const___ptr64]
test al, al
je 0x180040be9
mov rax, rsi
jmp 0x180040bf4
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QChar_const____ptr64___cdecl_QString::data_void_const___ptr64]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x40]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
movdqa xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x20], esi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinRegistryKey::constructor_struct_HKEY______ptr64__class_QStringView__unsigned_long_int__unsigned_long_int____ptr64]
lea rcx, [0x1800f9f7c]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rax
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QWinRegistryKey::stringValue_class_QStringView____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinRegistryKey::destructor_void____ptr64]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 4], esi
je 0x180040d38
lea rax, str._MailToProtocolHandler
mov qword [rsp + 0x40], SafeArrayCopy
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 1
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QString::contains_class_QStringView__enum_Qt::CaseSensitivity_const___ptr64]
test al, al
jne 0x180040d38
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r8d, 0x104
lea rdx, [rbp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180040d11
mov r8d, 0xffffffff
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x180040d41
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString____ptr64____ptr64]
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x180040d41
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1800eea90
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret