Function at 0x100beb40
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
mov eax, dword fs:[0]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x1024e15a
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 0x70]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x64]
test eax, eax
je 0x100beb76
cmp eax, 2
jne 0x100bed3b
xor eax, eax
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 7
mov word [ebp + 0x1c], ax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
lea esi, [edi + 0x1c]
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp + 0x44]
call fcn.1001a380
mov byte [ebp - 4], 1
lea eax, [ebp + 0x44]
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x1c]
push 1
cmovae eax, dword [ebp + 0x44]
push 0x2001f
push eax
push dword [edi + 0x18]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0
mov bl, al
call fcn.1001a5a0
test bl, bl
jne 0x100bebeb
cmp dword [ebp + 0x38], 5
je 0x100befa8
cmp byte [ebp + 0x6c], bl
je 0x100befde
jmp 0x100befa8
cmp byte [edi + 0x34], 0
je 0x100bec17
push esi
lea ecx, [ebp + 0x44]
call fcn.1001a380
cmp dword [ebp + 0x58], 8
lea eax, [ebp + 0x44]
cmovae eax, dword [ebp + 0x44]
push eax
push dword [edi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 0x44]
call fcn.1001a5a0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 7
mov dword [ebp + 0x40], 0
test eax, eax
je 0x100becb0
xor ebx, ebx
cmp byte [ebx + ecx + 0x78], 0
lea esi, [ebx + ecx]
lea eax, [esi + 0x1c]
lea ecx, [ebp + 0x44]
push eax
je 0x100bec6e
call fcn.1001a380
cmp dword [ebp + 0x58], 8
lea eax, [ebp + 0x44]
cmovae eax, dword [ebp + 0x44]
push eax
push dword [ebp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100bec90
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
mov dword [ebp + 0x38], eax
jmp 0x100bec90
call fcn.1001a380
mov byte [ebp - 4], 3
lea eax, [ebp + 0x44]
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x1c]
push esi
cmovae eax, dword [ebp + 0x44]
push eax
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMRegFile::SetValue_wchar_t_const___class_WM::GMRegValue_const__
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.1001a5a0
mov eax, dword [edi + 4]
sub ebx, 0xffffff80
mov edx, dword [ebp + 0x40]
mov ecx, dword [edi]
inc edx
sub eax, ecx
mov dword [ebp + 0x40], edx
sar eax, 7
cmp edx, eax
jb 0x100bec32
cmp byte [ebp + 0x68], 0
je 0x100bed0d
mov ecx, dword [edi + 0x10]
mov eax, 0x92492493
sub ecx, dword [edi + 0xc]
xor ebx, ebx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100bed0d
xor esi, esi
push dword [ebp + 0x70]
mov eax, dword [edi + 0xc]
push dword [ebp + 0x6c]
add eax, esi
push dword [ebp + 0x68]
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMRegInstall::Install_class_WM::GMRegKey_const___bool__bool__enum_WM::GMRegInstallType_
mov ecx, dword [edi + 0x10]
mov eax, 0x92492493
sub ecx, dword [edi + 0xc]
inc ebx
imul ecx
add esp, 0x10
add esi, 0x38
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100becd5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x100bed29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x34], 0
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x38], 0
call fcn.1001a5a0
mov eax, dword [ebp + 0x70]
cmp eax, 1
je 0x100bed49
cmp eax, 2
jne 0x100befcc
xor eax, eax
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 7
mov word [ebp + 0x1c], ax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 4
push esi
lea ecx, [ebp + 0x44]
call fcn.1001a380
mov byte [ebp - 4], 5
lea eax, [ebp + 0x44]
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x1c]
push 1
cmovae eax, dword [ebp + 0x44]
push 0x2011f
push eax
push dword [edi + 0x18]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 4
mov bl, al
call fcn.1001a5a0
test bl, bl
jne 0x100bedfa
cmp dword [ebp + 0x38], 5
je 0x100befa8
cmp byte [ebp + 0x6c], bl
jne 0x100befa8
lea ecx, [ebp + 0x1c]
call sym.WMCommon.dll_public:_unsigned_long_int___thiscall_WM::GMRegFile::LastError_void_
push 0
sub esp, 0x18
mov esi, eax
mov ecx, esp
mov dword [ebp + 0x70], esp
push 0x10255fec
call fcn.1001a2f0
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
mov ecx, edi
push 0
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMRegKey::GetRegFullPath_bool_
push 1
push esi
mov byte [ebp - 4], 4
jmp 0x100bf016
cmp byte [edi + 0x34], 0
je 0x100bee26
push esi
lea ecx, [ebp + 0x44]
call fcn.1001a380
cmp dword [ebp + 0x58], 8
lea eax, [ebp + 0x44]
cmovae eax, dword [ebp + 0x44]
push eax
push dword [edi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 0x44]
call fcn.1001a5a0
mov eax, dword [edi + 4]
xor ebx, ebx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 7
mov dword [ebp + 0x40], ebx
test eax, eax
je 0x100bef45
xor edx, edx
mov dword [ebp + 0x18], edx
cmp byte [edx + ecx + 0x78], 0
lea esi, [edx + ecx]
lea eax, [esi + 0x1c]
lea ecx, [ebp]
push eax
je 0x100bee89
call fcn.1001a380
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push dword [ebp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100bee7c
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
mov dword [ebp + 0x38], eax
lea ecx, [ebp]
call fcn.1001a5a0
jmp 0x100bef26
call fcn.1001a380
cmp dword [ebp + 0x14], 8
lea ebx, [ebp]
mov eax, dword [esi + 0x18]
cmovae ebx, dword [ebp]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x4c], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
lea eax, [ebp + 0x4c]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMRegValue::ValueSerial_class_WM::GMBuffer_unsigned_char___const
test al, al
jne 0x100beedf
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x4c], vtable.WM::GMBuffer_unsigned_char_.0
test eax, eax
je 0x100bef17
push eax
jmp 0x100bef08
push dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
push esi
push dword [ebp + 0x3c]
push 0
push ebx
push dword [ebp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 0x4c], vtable.WM::GMBuffer_unsigned_char_.0
test eax, eax
je 0x100bef03
mov dword [ebp + 0x38], eax
test esi, esi
je 0x100bef17
push esi
call fcn.1006e708
add esp, 4
mov dword [ebp + 0x54], 0
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.1001a5a0
mov ebx, dword [ebp + 0x40]
mov eax, dword [edi + 4]
inc ebx
mov ecx, dword [edi]
sub eax, ecx
mov edx, dword [ebp + 0x18]
sub edx, 0xffffff80
sar eax, 7
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x18], edx
cmp ebx, eax
jb 0x100bee42
cmp byte [ebp + 0x68], 0
je 0x100befa8
mov ecx, dword [edi + 0x10]
mov eax, 0x92492493
sub ecx, dword [edi + 0xc]
xor ebx, ebx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100befa8
xor esi, esi
nop word [eax + eax]
push dword [ebp + 0x70]
mov eax, dword [edi + 0xc]
push dword [ebp + 0x6c]
add eax, esi
push dword [ebp + 0x68]
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMRegInstall::Install_class_WM::GMRegKey_const___bool__bool__enum_WM::GMRegInstallType_
mov ecx, dword [edi + 0x10]
mov eax, 0x92492493
sub ecx, dword [edi + 0xc]
inc ebx
imul ecx
add esp, 0x10
add esi, 0x38
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100bef70
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x100befbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x34], 0
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x38], 0
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x5c]
pop ebp
ret
lea ecx, [ebp + 0x1c]
call sym.WMCommon.dll_public:_unsigned_long_int___thiscall_WM::GMRegFile::LastError_void_
push 0
sub esp, 0x18
mov esi, eax
mov ecx, esp
mov dword [ebp + 0x70], esp
push 0x10255fec
call fcn.1001a2f0
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
mov ecx, edi
push 0
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMRegKey::GetRegFullPath_bool_
push 1
push esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMRegException::constructor_unsigned_long_int__bool__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____unsigned_long_int_
push 0x1028daa8
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3