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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418d0b
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.00418506
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2030], edx
mov eax, ecx
mov dword [ebp - 0x2024], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2020]
push ecx
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x202c], 0x400
push ecx
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x2020], 0x1000
push ecx
xor esi, esi
lea ecx, [ebp - 0x202c]
push esi
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x408e22
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x1010]
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 - 0x2034], eax
mov edx, 0x851
lea eax, [ebp - 0x203c]
mov dword [ebp - 0x2038], str.Param
push eax
push str.Enum_value:
push 0x64
mov ecx, 0x170b019
call fcn.00401cbf
lea eax, [ebp - 0x2048]
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
push eax
push 0x41ba08
push ecx
mov ecx, 0x170b01a
mov dword [ebp - 0x2044], str.Param
mov dword [ebp - 0x2040], esi
call fcn.00401d78
push dword [ebp - 0x2020]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1010]
push 0
push eax
push dword [ebp - 0x2030]
call edi
test eax, eax
jne 0x40900f
test ebx, ebx
je 0x408dd3
push dword [ebp - 0x2020]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1010]
push 0
push eax
push ebx
call edi
test eax, eax
jne 0x40900f
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x202c], 0x400
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2020], 0x1000
push eax
lea eax, [ebp - 0x2028]
inc esi
push eax
push 0
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x1010]
push eax
push esi
push dword [ebp - 0x2024]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x408d0e
mov ecx, dword [ebp - 0x2024]
lea eax, [ebp - 0x810]
push 0x400
push eax
xor edx, edx
xor edi, edi
call fcn.0040b94a
test eax, eax
jne 0x40900f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x201c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2014], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x810]
mov dword [ebp - 0x2040], eax
mov edx, 0x851
lea eax, [ebp - 0x2048]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
push str.Enum_key:
push 0x64
mov ecx, 0x170b01b
mov dword [ebp - 0x2044], str.Param
call fcn.00401cbf
lea eax, [ebp - 0x203c]
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
push eax
push str.Enum_num:
push ecx
mov ecx, 0x170b01c
mov dword [ebp - 0x2038], str.Param
mov dword [ebp - 0x2034], edi
call fcn.00401d78
mov ecx, dword [ebp - 0x2030]
lea eax, [ebp - 0x204c]
push eax
lea eax, [ebp - 0x201c]
push eax
sub esp, 0x14
lea edx, [ebp - 0x810]
call fcn.0040bb2f
test eax, eax
jne 0x408fce
test ebx, ebx
je 0x408f28
lea eax, [ebp - 0x204c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2018]
push eax
sub esp, 0x14
lea edx, [ebp - 0x810]
call fcn.0040bb2f
test eax, eax
jne 0x408fce
lea eax, [ebp - 0x2014]
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x2024]
lea edx, [ebp - 0x810]
call fcn.0040bac7
test eax, eax
jne 0x408fce
push dword [ebp - 0x2018]
mov edx, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0x2014]
call fcn.00408c7b
cmp dword [ebp - 0x2014], 0
je 0x408f76
push dword [ebp - 0x2014]
call esi
and dword [ebp - 0x2014], 0
cmp dword [ebp - 0x2018], 0
je 0x408f8e
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x201c], 0
je 0x408faa
push dword [ebp - 0x201c]
call esi
mov ecx, dword [ebp - 0x2024]
lea eax, [ebp - 0x810]
push 0x400
inc edi
push eax
mov edx, edi
call fcn.0040b94a
test eax, eax
je 0x408e4b
jmp 0x40900f
cmp dword [ebp - 0x2014], 0
je 0x408fdf
push dword [ebp - 0x2014]
call esi
and dword [ebp - 0x2014], 0
cmp dword [ebp - 0x2018], 0
je 0x408ff7
push dword [ebp - 0x2018]
call esi
and dword [ebp - 0x2018], 0
cmp dword [ebp - 0x201c], 0
je 0x40900f
push dword [ebp - 0x201c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416bd0
mov esp, ebp
pop ebp
ret 4