Function at 0x4caaa0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
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 0x4cabed
mov eax, dword [edi + 0x54]
cmp dword [eax + 4], 0
je 0x4cabed
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cabed
cmp byte [esi + 0xc], 0
jne 0x4cabed
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cabed
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6e6190
call fcn.0040dd20
mov ecx, dword [edi + 0x54]
mov ebx, eax
cmp dword [ecx + 4], 0
je 0x4cab4d
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cab4d
cmp byte [esi + 0xc], 0
jne 0x4cab4d
mov ecx, esi
call fcn.004cc1e0
jmp 0x4cab4f
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x4cabbe
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 0x4cab78
cmp eax, 0xffffffff
je 0x4cab78
lock inc dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.0040dd20
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push esi
call fcn.00427830
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4cabaf
cmp eax, 0xffffffff
je 0x4cabbe
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cabbe
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4cabde
cmp eax, 0xffffffff
je 0x4cabed
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cabed
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [edi + 0x54]
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x4cac6c
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
mov eax, dword [eax]
cmp eax, 1
je 0x4cac3f
test eax, eax
je 0x4cac3f
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x4cac2d
push 2
push ecx
push 4
push 0x14
call fcn.00403bd0
add esp, 0x10
mov dword [edi + 0x54], eax
jmp 0x4cac3f
push ecx
mov eax, esp
push ecx
lea ecx, [edi + 0x54]
mov dword [eax], 0
call fcn.004ccf00
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 0x4cac58
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 0x4cac00
mov ecx, dword [eax]
test ecx, ecx
je 0x4cac86
cmp ecx, 0xffffffff
je 0x4cacb1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cacb1
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.004cbe70
push 4
push 0x14
push esi
call fcn.00403d20
add esp, 0xc
mov ecx, edi
call fcn.00499d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret