Function at 0x4ca880
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d570
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 edi, ecx
cmp byte [edi + 0x58], 0
mov dword [edi], vtable.QWinSettingsPrivate.0
je 0x4ca9cd
mov eax, dword [edi + 0x54]
cmp dword [eax + 4], 0
je 0x4ca9cd
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004cbfc0
test eax, eax
je 0x4ca9cd
cmp byte [esi + 0xc], 0
jne 0x4ca9cd
mov ecx, esi
call fcn.004cbfc0
test eax, eax
je 0x4ca9cd
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6e80cc
call fcn.0040d690
mov ecx, dword [edi + 0x54]
mov ebx, eax
cmp dword [ecx + 4], 0
je 0x4ca92d
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004cbfc0
test eax, eax
je 0x4ca92d
cmp byte [esi + 0xc], 0
jne 0x4ca92d
mov ecx, esi
call fcn.004cbfc0
jmp 0x4ca92f
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x4ca99e
mov edx, dword [edi + 0x54]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + edx + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x4ca958
cmp eax, 0xffffffff
je 0x4ca958
lock inc dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.0040d690
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push esi
call fcn.00427810
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4ca98f
cmp eax, 0xffffffff
je 0x4ca99e
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4ca99e
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4ca9be
cmp eax, 0xffffffff
je 0x4ca9cd
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4ca9cd
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, dword [edi + 0x54]
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x4caa4c
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
mov eax, dword [eax]
cmp eax, 1
je 0x4caa1f
test eax, eax
je 0x4caa1f
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x4caa0d
push 2
push ecx
push 4
push 0x14
call fcn.00403540
add esp, 0x10
mov dword [edi + 0x54], eax
jmp 0x4caa1f
push ecx
mov eax, esp
push ecx
lea ecx, [edi + 0x54]
mov dword [eax], 0
call fcn.004ccce0
mov eax, dword [edi + 0x54]
mov esi, dword [eax + 0xc]
add esi, eax
add esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
test eax, eax
je 0x4caa38
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x14], 0x14
inc ebx
mov dword [esi + 4], 0
mov eax, dword [edi + 0x54]
cmp ebx, dword [eax + 4]
jl 0x4ca9e0
mov ecx, dword [eax]
test ecx, ecx
je 0x4caa66
cmp ecx, 0xffffffff
je 0x4caa91
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4caa91
mov esi, dword [edi + 0x54]
lea ecx, [edi + 0x54]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
add eax, esi
push eax
lea eax, [edx + esi]
push eax
call fcn.004cbc50
push 4
push 0x14
push esi
call fcn.00403690
add esp, 0xc
mov ecx, edi
call fcn.00499b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret