Function at 0x4091be
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4390f6
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.004389da
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2030], edx
mov esi, ecx
mov dword [ebp - 0x2034], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
xor edi, edi
push eax
lea eax, [ebp - 0x2028]
push eax
push edi
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x1014]
push eax
push edi
jmp 0x409333
lea eax, [ebp - 0x1014]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x203c], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - 0x2040], str.Param
mov word [ebp - 0x2038], ax
mov ecx, 0x170b019
lea eax, [ebp - 0x2044]
push eax
push str.Enum_value:
push 0x64
call fcn.00401c4f
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 0x2048], ax
lea eax, [ebp - 0x2054]
push eax
push 0x43cad0
push ecx
mov ecx, 0x170b01a
mov dword [ebp - 0x2050], str.Param
mov dword [ebp - 0x204c], edi
call fcn.00401ce6
push dword [ebp - 0x2024]
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1014]
push 0
push eax
push dword [ebp - 0x2030]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409551
test ebx, ebx
je 0x40930c
push dword [ebp - 0x2024]
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1014]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409551
lea eax, [ebp - 0x2024]
inc edi
push eax
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2028]
push eax
push 0
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x1014]
push eax
push edi
push esi
mov dword [ebp - 0x202c], 0x400
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40922d
push 0x400
lea eax, [ebp - 0x814]
xor edx, edx
push eax
mov ecx, esi
xor edi, edi
call fcn.0040c078
test eax, eax
jne 0x409551
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2020], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2018], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x814]
mov dword [ebp - 0x204c], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov word [ebp - 0x2048], ax
mov ecx, 0x170b01b
lea eax, [ebp - 0x2054]
mov dword [ebp - 0x2050], str.Param
push eax
push str.Enum_key:
push 0x64
call fcn.00401c4f
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 0x2038], ax
lea eax, [ebp - 0x2044]
push eax
push str.Enum_num:
push ecx
mov ecx, 0x170b01c
mov dword [ebp - 0x2040], str.Param
mov dword [ebp - 0x203c], edi
call fcn.00401ce6
mov ecx, dword [ebp - 0x2030]
lea eax, [ebp - 0x2058]
push eax
lea eax, [ebp - 0x2020]
push eax
sub esp, 0x14
lea edx, [ebp - 0x814]
call fcn.0040c24b
test eax, eax
jne 0x409510
test ebx, ebx
je 0x40946a
lea eax, [ebp - 0x2058]
mov ecx, ebx
push eax
lea eax, [ebp - 0x201c]
push eax
sub esp, 0x14
lea edx, [ebp - 0x814]
call fcn.0040c24b
test eax, eax
jne 0x409510
lea eax, [ebp - 0x2018]
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x2034]
lea edx, [ebp - 0x814]
call fcn.0040c1f1
test eax, eax
jne 0x409510
push dword [ebp - 0x201c]
mov edx, dword [ebp - 0x2020]
mov ecx, dword [ebp - 0x2018]
call fcn.004091be
cmp dword [ebp - 0x2018], 0
je 0x4094b8
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
cmp dword [ebp - 0x201c], 0
je 0x4094d0
push dword [ebp - 0x201c]
call esi
and dword [ebp - 0x201c], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2020], 0
je 0x4094ec
push dword [ebp - 0x2020]
call esi
mov ecx, dword [ebp - 0x2034]
lea eax, [ebp - 0x814]
push 0x400
inc edi
push eax
mov edx, edi
call fcn.0040c078
test eax, eax
je 0x40937b
jmp 0x409551
cmp dword [ebp - 0x2018], 0
je 0x409521
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
cmp dword [ebp - 0x201c], 0
je 0x409539
push dword [ebp - 0x201c]
call esi
and dword [ebp - 0x201c], 0
cmp dword [ebp - 0x2020], 0
je 0x409551
push dword [ebp - 0x2020]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004370bb
leave
ret 4