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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f8e0
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.0042f024
mov eax, dword [0x45b070]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2054], esi
push eax
lea eax, [ebp - 0x2028]
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x1014]
push eax
push edi
jmp 0x409343
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 - 0x2038], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - 0x203c], str.Param
mov word [ebp - 0x2034], ax
lea eax, [ebp - 0x2040]
push eax
push str.Enum_value:
push ecx
push 0x64
mov ecx, 0x170b019
call fcn.00401f81
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 - 0x2044], ax
mov edx, 0x851
lea eax, [ebp - 0x2050]
mov dword [ebp - 0x204c], str.Param
push eax
push 0x433b88
push ecx
push 0x64
mov ecx, 0x170b01a
mov dword [ebp - 0x2048], edi
call fcn.00401f81
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 0x409563
test esi, esi
je 0x40931c
push dword [ebp - 0x2024]
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1014]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409563
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 ebx
mov dword [ebp - 0x202c], 0x400
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x409235
push 0x400
lea eax, [ebp - 0x814]
xor edx, edx
push eax
mov ecx, ebx
xor edi, edi
call fcn.0040becd
test eax, eax
jne 0x409563
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 - 0x2048], 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 - 0x2044], ax
lea eax, [ebp - 0x2050]
push eax
push str.Enum_key:
push ecx
push 0x64
mov ecx, 0x170b01b
mov dword [ebp - 0x204c], str.Param
call fcn.00401f81
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 - 0x2034], ax
mov edx, 0x851
lea eax, [ebp - 0x2040]
mov dword [ebp - 0x203c], str.Param
push eax
push str.Enum_num:
push ecx
push 0x64
mov ecx, 0x170b01c
mov dword [ebp - 0x2038], edi
call fcn.00401f81
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.0040c0a2
test eax, eax
jne 0x409522
mov eax, dword [ebp - 0x2054]
test eax, eax
je 0x409488
lea ecx, [ebp - 0x2058]
push ecx
lea ecx, [ebp - 0x201c]
push ecx
sub esp, 0x14
lea edx, [ebp - 0x814]
mov ecx, eax
call fcn.0040c0a2
test eax, eax
jne 0x409522
lea eax, [ebp - 0x2018]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0x814]
mov ecx, ebx
call fcn.0040c046
test eax, eax
jne 0x409522
push dword [ebp - 0x201c]
mov edx, dword [ebp - 0x2020]
mov ecx, dword [ebp - 0x2018]
call fcn.004091c6
cmp dword [ebp - 0x2018], 0
je 0x4094ce
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
cmp dword [ebp - 0x201c], 0
je 0x4094e6
push dword [ebp - 0x201c]
call esi
and dword [ebp - 0x201c], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2020], 0
je 0x409502
push dword [ebp - 0x2020]
call esi
push 0x400
lea eax, [ebp - 0x814]
inc edi
push eax
mov edx, edi
mov ecx, ebx
call fcn.0040becd
test eax, eax
je 0x40938b
jmp 0x409563
cmp dword [ebp - 0x2018], 0
je 0x409533
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
cmp dword [ebp - 0x201c], 0
je 0x40954b
push dword [ebp - 0x201c]
call esi
and dword [ebp - 0x201c], 0
cmp dword [ebp - 0x2020], 0
je 0x409563
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.0042d667
leave
ret 4