Function at 0x49498b
Capabilities:
Delete registry value

Disassembly:
push 0x158
mov eax, 0x54d80b
call fcn.0053655e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00403913
mov byte [ebp - 4], 1
cmp esi, 0x80000001
jne 0x494a64
call fcn.0049410e
add eax, 0x60
lea ecx, [ebp - 0xa4]
push eax
call fcn.0044c6e7
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push 0x55a440
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
call fcn.00404630
add esp, 0xc
push edi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00406b30
mov byte [ebp - 0xb4], bl
lea ecx, [ebp - 0x70]
push dword [ebp - 0xb4]
mov dword [ebp - 0x60], ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00403889
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.004035f6
lea ecx, [ebp - 0x70]
call fcn.0040257a
lea ecx, [ebp - 0x88]
call fcn.0040257a
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.0040257a
push 0xffffffffffffffff
push 0x55a440
lea ecx, [ebp - 0x58]
call fcn.0047b1ae
mov edi, eax
cmp edi, 0xffffffff
je 0x494c50
xor eax, eax
mov dword [ebp - 0x18], ebx
push edi
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
push ebx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 7
push eax
call fcn.0040aade
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
push 0xffffffffffffffff
lea eax, [edi + 1]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 7
push eax
call fcn.0040aade
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xf003f
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb0]
push eax
push esi
mov byte [ebp - 4], 5
call fcn.004062ba
test eax, eax
je 0x494b44
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xf013f
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb0]
push eax
push esi
call fcn.004062ba
test eax, eax
je 0x494b44
push 1
push 3
lea ecx, [ebp - 0x164]
call fcn.00404da4
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 6
push str.Error:_key.Open_parentKey__keyName.c_str____KEY_ALL_ACCESS__
push eax
call fcn.0040446a
pop ecx
pop ecx
lea eax, [ebp - 0x164]
push eax
push str.Registry::removeValue
push 0x1fc
jmp 0x494c13
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0xb0]
call edi
test eax, eax
je 0x494c3e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xf013f
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb0]
push eax
push esi
call fcn.004062ba
test eax, eax
jne 0x494bdc
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0xb0]
call edi
test eax, eax
je 0x494c3e
push 1
push 3
lea ecx, [ebp - 0x164]
call fcn.00404da4
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 7
push str.Error:_key.DeleteValue_valueName.c_str_____KEY_WOW64_64KEY
push eax
call fcn.0040446a
pop ecx
pop ecx
lea eax, [ebp - 0x164]
push eax
push str.Registry::removeValue
push 0x209
jmp 0x494c13
push 1
push 3
lea ecx, [ebp - 0x164]
call fcn.00404da4
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 8
push str.Error:_key.DeleteValue_valueName.c_str____
push eax
call fcn.0040446a
pop ecx
pop ecx
lea eax, [ebp - 0x164]
push eax
push str.Registry::removeValue
push 0x20f
push str.C:workprojects_rubilnik_src_systemRegistry.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xfc]
call fcn.00404fea
lea ecx, [ebp - 0xfc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x494c40
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.0040257a
lea ecx, [ebp - 0x28]
call fcn.0040257a
lea ecx, [ebp - 0x58]
call fcn.0040257a
lea ecx, [ebp - 0xb0]
call fcn.004056f5
mov al, bl
call fcn.00536508
ret