Function at 0x4f96d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c990
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x732480]
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 0x4f981d
mov eax, dword [edi + 0x54]
cmp dword [eax + 4], 0
je 0x4f981d
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004fae10
test eax, eax
je 0x4f981d
cmp byte [esi + 0xc], 0
jne 0x4f981d
mov ecx, esi
call fcn.004fae10
test eax, eax
je 0x4f981d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x71f078
call fcn.0042f930
mov ecx, dword [edi + 0x54]
mov ebx, eax
cmp dword [ecx + 4], 0
je 0x4f977d
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004fae10
test eax, eax
je 0x4f977d
cmp byte [esi + 0xc], 0
jne 0x4f977d
mov ecx, esi
call fcn.004fae10
jmp 0x4f977f
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x4f97ee
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 0x4f97a8
cmp eax, 0xffffffff
je 0x4f97a8
lock inc dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.0042f930
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push esi
call fcn.00455420
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4f97df
cmp eax, 0xffffffff
je 0x4f97ee
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4f97ee
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4f980e
cmp eax, 0xffffffff
je 0x4f981d
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4f981d
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [edi + 0x54]
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x4f989c
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
mov eax, dword [eax]
cmp eax, 1
je 0x4f986f
test eax, eax
je 0x4f986f
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x4f985d
push 2
push ecx
push 4
push 0x14
call fcn.00424ff0
add esp, 0x10
mov dword [edi + 0x54], eax
jmp 0x4f986f
push ecx
mov eax, esp
push ecx
lea ecx, [edi + 0x54]
mov dword [eax], 0
call fcn.004fbb50
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 0x4f9888
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 0x4f9830
mov ecx, dword [eax]
test ecx, ecx
je 0x4f98b6
cmp ecx, 0xffffffff
je 0x4f98e1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4f98e1
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.004faaa0
push 4
push 0x14
push esi
call fcn.00425140
add esp, 0xc
mov ecx, edi
call fcn.004c8470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret