Function at 0x40beb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551dd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ecx + 0x20c]
lea edx, [ecx + 4]
or eax, 0xf003f
mov dword [ebp - 0x14], edx
push eax
push 0
push edx
push dword [ecx]
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c006
mov esi, dword [0x618d24]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test esi, esi
jne 0x40bf6c
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push dword [ebp - 0x14]
push 0x589e7c
push 0
push 0x589e94
push 0x589ea8
push 0xcc
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x1c
test esi, esi
jne 0x40bfea
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 1
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x589ef4
push 0x589f08
push 0xcc
push ecx
mov ecx, esi
call fcn.00409b70
jmp 0x40c13b
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40c114
mov esi, dword [0x618d24]
test esi, esi
jne 0x40c07b
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 2
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push edi
push str.error_RegDeleteValue__S_
push 0
push 0x589f70
push 0x589f98
push 0xd2
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x1c
test esi, esi
jne 0x40c0fb
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 3
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x589f84
push 0x58a010
push 0xd2
push ecx
mov ecx, esi
call fcn.00409b70
jmp 0x40c13b
push edi
push str.DelValue__S__SUCCESS.
push 0
push str.CBaseReg::DelValue
push 0x58a088
push 0xd6
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x1c
mov bl, 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40c152
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4