Function at 0x1004f3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, edx
mov ebx, ecx
lea eax, [0x1017082f]
mov dword [ebp - 0x2c], 0x10170803
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 1
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x5c]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
add eax, edi
mov edi, esi
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x50]
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 esi, dword [ebp - 0x58]
call sym.__ZN102__LT_windows..Win32..System..Rpc..NDR64_CONFORMANT_STRING_FORMAT_u20_as_u20_core..default..Default_GT_7default17h7cd698
mov dword [ebp - 0x30], eax
push edi
push 0x20019
push 0
push esi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x1004f4a6
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1004f490
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1004f6b6
add eax, eax
push 2
push eax
push esi
jmp 0x1004f6ae
mov eax, dword [0x101918ac]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], 0x800
mov ebx, dword [ebp - 0x30]
movzx eax, byte [eax]
push 1
push 0x800
call sym.___rust_alloc
add esp, 8
test eax, eax
mov dword [ebp - 0x1c], ebx
je 0x1004f6be
mov esi, dword [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x3c], 0x800
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x18]
push ecx
push edi
push eax
push 0
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x1004f59e
mov ebx, dword [ebp - 0x44]
jmp 0x1004f532
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 0x1c]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x1004f59e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
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
cmp eax, 0x800700ea
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], 1
jne 0x1004f61c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0x800700ea
mov dword [ebp - 0x14], edx
test ecx, ecx
mov dword [ebp - 0x34], eax
je 0x1004f589
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3a575ba2d04f7cfd
add esp, 0xc
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x1004f510
lea eax, [ebp - 0x14]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::hcb2d3b1bb6a74ba7
add esp, 4
jmp 0x1004f510
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov eax, ebx
shr eax, 2
bt ebx, 1
adc eax, 0
je 0x1004f5d6
push eax
push 0
push ecx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3a575ba2d04f7cfd
lea ecx, [ebp - 0x18]
add esp, 0xc
and ebx, 0xfffffffe
mov word [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
add ebx, edi
mov dword [ebp - 0x28], ebx
push ecx
lea eax, [ebp - 0x30]
push eax
call sym.__ZN102__LT_core..iter..adapters..map..Map_LT_I_C_F_GT__u20_as_u20_core..iter..traits..iterator..Iterator_GT_4fold17he7af52ae4
add esp, 8
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
xor edx, edx
test ebx, ebx
je 0x1004f663
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx + ebx - 1], 0
jne 0x1004f661
dec ebx
jne 0x1004f610
jmp 0x1004f663
test edx, edx
mov dword [ebx], 0x80000000
je 0x1004f632
lea eax, [ebp - 0x28]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::hcb2d3b1bb6a74ba7
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x1004f648
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
push esi
call sub.advapi32.dll_RegCloseKey
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x1004f480
jmp 0x1004f490
mov edx, ebx
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x1004f684
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
push ebx
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1004f69f
add eax, eax
push 2
push eax
push esi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1004f6b6
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x800
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
ud2