Function at 0x10038d10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2d0
mov eax, dword [0x1011a204]
xor eax, esp
mov dword [esp + 0x2cc], eax
push ebx
mov ebx, dword [esp + 0x2d8]
mov ecx, 0x28
push esi
push edi
push 0
push 0x20019
sub esp, 8
lea edi, [esp + 0x40]
mov eax, esp
mov esi, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationsmailtoUserChoice
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QWinRegistryKey::constructor_struct_HKEY_____class_QStringView__unsigned_long_int__unsigned_long_int_]
lea ecx, [esp + 0x40]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x1c]
push SysReAllocString
mov dword [eax], 0x4f
call edi
sub esp, 8
mov ecx, eax
mov eax, esp
mov dword [eax], 6
mov dword [eax + 4], str.Progid
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QWinRegistryKey::stringValue_class_QStringView_]
lea ecx, [esp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QWinRegistryKey::destructor_void_]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 4]
test esi, esi
jne 0x10038dae
mov dword [esp + 0x28], 6
mov dword [esp + 0x2c], 0x100dd8c0
jmp 0x10038dbe
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push str.ShellOpenCommand
push 0x13
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_]
lea ecx, [esp + 0x28]
test esi, esi
lea eax, [esp + 0x20]
cmove eax, ecx
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov esi, dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_class_QString_const__]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
call esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push 0
push 0x20019
sub esp, 8
mov eax, dword [eax + 4]
mov esi, esp
mov dword [esp + 0x1c], eax
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QString::isNull_void_const]
test al, al
je 0x10038e5d
xor eax, eax
jmp 0x10038e67
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_class_QChar_const____thiscall_QString::data_void_const]
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [esp + 0x28]
push SysReAllocString
mov dword [esi + 4], eax
call edi
sub esp, 8
mov ecx, eax
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0x100dd8dc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QWinRegistryKey::stringValue_class_QStringView_]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QWinRegistryKey::destructor_void_]
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
je 0x10038f6d
push 1
sub esp, 8
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [eax], 0x16
mov dword [eax + 4], str._MailToProtocolHandler
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QString::contains_class_QStringView__enum_Qt::CaseSensitivity_const]
test al, al
jne 0x10038f6d
push 0x208
lea eax, [esp + 0xd4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10038f32
push 0xffffffffffffffff
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
mov esi, 1
xor edi, edi
jmp 0x10038f46
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
xor esi, esi
lea edi, [esi + 2]
push eax
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
test edi, edi
je 0x10038f5d
lea ecx, [esp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
test esi, esi
je 0x10038f75
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x10038f75
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [esp + 0x2d8]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4904
add esp, 0x2d0
ret