Function at 0x4cce80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557e95
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x54]
cmp dword [eax + 4], 0
je 0x4cd2a1
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cbfc0
test eax, eax
je 0x4cd2a1
cmp byte [edi + 0xc], 0
jne 0x4cd2a1
mov ecx, edi
call fcn.004cbfc0
test eax, eax
je 0x4cd2a1
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4ccefc
cmp ecx, 0xffffffff
je 0x4ccefc
lock inc dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004cbca0
add esp, 8
mov ebx, dword [esi + 0x5c]
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [ebp - 0x10]
call fcn.00409410
cmp eax, 0xffffffff
jne 0x4ccf37
mov dword [ebp + 8], 0x6e80cc
jmp 0x4ccf45
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004094b0
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 1
cmp dword [eax + 4], 0
je 0x4ccf73
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cbfc0
test eax, eax
je 0x4ccf73
cmp byte [edi + 0xc], 0
jne 0x4ccf73
mov ecx, edi
call fcn.004cbfc0
mov edi, eax
jmp 0x4ccf75
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
or ebx, 0x2001f
lea ecx, [ebp + 8]
push ebx
push 0
call fcn.0040d690
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
mov byte [ebp - 4], 0
test eax, eax
mov eax, dword [ebp + 8]
cmove edi, dword [ebp - 0x14]
or ebx, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4ccfc6
cmp eax, ebx
je 0x4ccfd5
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4ccfd5
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
test edi, edi
je 0x4cd035
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cc0d0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040d690
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4cd01f
cmp eax, 0xffffffff
je 0x4cd02e
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd02e
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403690
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x54]
cmp dword [eax + 4], 0
je 0x4cd065
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cbfc0
test eax, eax
je 0x4cd065
cmp byte [edi + 0xc], 0
jne 0x4cd065
mov ecx, edi
call fcn.004cbfc0
mov edi, eax
jmp 0x4cd067
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
or eax, 0x2001f
push eax
push 0
call fcn.0040d690
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd1d0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4cd1cd
push dword [esi + 0x5c]
push ebx
call fcn.004cb9b0
mov eax, dword [ebp - 0x10]
add esp, 8
cmp dword [eax + 4], 0
jne 0x4cd218
push 1
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004cafd0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
add esi, 4
add edi, 4
lea esi, [eax + esi*4]
lea edi, [eax + edi*4]
cmp esi, edi
je 0x4cd17a
mov dword [ebp - 0x18], ebx
nop
mov ecx, esi
call fcn.0040d690
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x4cd169
mov ecx, dword [esi]
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cd11b
cmp ecx, 0xffffffff
je 0x4cd11b
mov eax, dword [ebp + 8]
lock inc dword [eax]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0040d690
push eax
push str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
push ebx
call fcn.00427810
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x4cd15a
cmp eax, 0xffffffff
je 0x4cd169
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd169
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
mov ebx, dword [ebp - 0x18]
add esi, 4
cmp esi, edi
jne 0x4cd0f0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov byte [ebp - 4], 5
test eax, eax
je 0x4cd19b
cmp eax, 0xffffffff
je 0x4cd1c3
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd1c3
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004028a0
push esi
call fcn.0040e830
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cd1f5
cmp eax, 0xffffffff
je 0x4cd2aa
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4cd2aa
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
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
lea ecx, [ebp - 0x10]
call fcn.0040d690
mov ecx, dword [esi + 0x54]
mov edi, eax
cmp dword [ecx + 4], 0
je 0x4cd24a
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004cbfc0
test eax, eax
je 0x4cd24a
cmp byte [esi + 0xc], 0
jne 0x4cd24a
mov ecx, esi
call fcn.004cbfc0
jmp 0x4cd24c
xor eax, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, ebx
test esi, esi
je 0x4cd1c6
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cd277
cmp ecx, 0xffffffff
je 0x4cd277
mov eax, dword [ebp - 0x10]
lock inc dword [eax]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0040d690
push eax
push str.QSettings:_RegDeleteKey_failed_on_key___ls_
push esi
call fcn.00427810
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00401a70
mov ecx, ebx
jmp 0x4cd1c6
push 1
mov ecx, esi
call fcn.0049f6c0
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