Function at 0x1004eb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
lea esi, [ebp - 0x24]
mov edx, 0x10170850
mov ecx, esi
push 0x12
call sym.__ZN7sysinfo7windows6system20get_reg_string_value17h31325eb4906e1982E.llvm.12363517825842431154
add esp, 4
cmp dword [ebp - 0x24], 0x80000000
jne 0x1004ebbd
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
jmp 0x1004ebcd
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x28], eax
movsd qword [ebp - 0x30], xmm0
call sym.sysinfo::windows::system::SystemInner::is_windows_eleven::h92cb21ad03b96db5
mov ebx, 0xb
test al, al
jne 0x1004ed39
lea eax, [0x1017082f]
mov dword [ebp - 0x20], 0x10170803
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x54]
push esi
push eax
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h9830e743f
add esp, 8
lea eax, [0x1017087b]
mov dword [ebp - 0x20], 0x10170862
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x44]
push esi
push eax
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h9830e743f
add esp, 8
mov edi, dword [ebp - 0x50]
call sym.__ZN102__LT_windows..Win32..System..Rpc..NDR64_CONFORMANT_STRING_FORMAT_u20_as_u20_core..default..Default_GT_7default17h7cd698
mov dword [ebp - 0x24], eax
push esi
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x1004ec8a
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1004ec6c
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1004ed37
add eax, eax
push 2
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1004ed37
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x48]
push eax
push ecx
push esi
push 0
mov dword [ebp - 0x58], edx
push edx
mov dword [ebp - 0x34], edi
push edi
call sub.advapi32.dll_RegQueryValueExW
mov edi, eax
test eax, eax
je 0x1004ecf8
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
push eax
call sym.__ZN108__LT_windows_result..error..Error_u20_as_u20_core..convert..From_LT_windows_result..hresult..HRESULT_GT__GT_4from17h6b5
add esp, 4
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x24], 1
je 0x1004ecfd
lea eax, [ebp - 0x1c]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::hcb2d3b1bb6a74ba7
add esp, 4
jmp 0x1004ecfd
mov ebx, dword [ebp - 0x48]
jmp 0x1004ecfd
push dword [ebp - 0x34]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1004ed1c
add eax, eax
push 2
push eax
push dword [ebp - 0x58]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1004ed33
add eax, eax
push 2
push eax
push dword [ebp - 0x5c]
call sym.___rust_dealloc
add esp, 0xc
test edi, edi
je 0x1004ed39
xor ebx, ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 0x10170880
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::hde7cfeaa5e335763
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], fcn.1004d090
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x6c]
push esi
push eax
call sym.alloc::fmt::format::format_inner::h50f5774af0e74e13
add esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x64]
movsd xmm0, qword [ebp - 0x6c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
movsd qword [esi], xmm0
test eax, eax
je 0x1004edac
push 1
push eax
push dword [ebp - 0x2c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret