Function at 0x1002cfb0
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, [0x10159cef]
mov dword [ebp - 0x2c], 0x10159cc3
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_iter17h19c3d2f2b
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_iter17h19c3d2f2b
add esp, 8
mov esi, dword [ebp - 0x58]
call sym.__ZN100__LT_windows..Win32..Storage..FileSystem..CLFS_MGMT_POLICY_0_0_u20_as_u20_core..default..Default_GT_7default17h55e47144
mov dword [ebp - 0x30], eax
push edi
push 0x20019
push 0
push esi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x1002d066
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1002d050
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 0x1002d276
add eax, eax
push 2
push eax
push esi
jmp 0x1002d26e
mov eax, dword [0x1017b554]
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 0x1002d27e
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 0x1002d166
mov ebx, dword [ebp - 0x44]
jmp 0x1002d0f2
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 0x1002d166
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_4from17ha98
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], 1
jne 0x1002d1dc
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 0x1002d14d
push 1
push 1
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h84a9ac707e9bac7a
add esp, 0x14
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x1002d0d0
lea eax, [ebp - 0x14]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
jmp 0x1002d0d0
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov eax, ebx
mov ecx, ebx
shr eax, 1
shr ecx, 2
sub eax, ecx
je 0x1002d19e
push 1
push 1
push eax
push 0
lea eax, [ebp - 0x18]
push eax
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h84a9ac707e9bac7a
add esp, 0x14
and ebx, 0xfffffffe
mov word [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
add ebx, edi
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x18]
push eax
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_4fold17h8817029b8
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 0x1002d223
nop
cmp byte [ecx + ebx - 1], 0
jne 0x1002d221
dec ebx
jne 0x1002d1d0
jmp 0x1002d223
test edx, edx
mov dword [ebx], 0x80000000
je 0x1002d1f2
lea eax, [ebp - 0x28]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x1002d208
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 0x1002d040
jmp 0x1002d050
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 0x1002d244
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 0x1002d25f
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 0x1002d276
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::he63c9115d026ec98
add esp, 8
ud2