Function at 0x4e2150
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
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 0x4e22a7
mov eax, dword [edi + 0x54]
cmp dword [eax + 4], 0
je 0x4e22a7
mov esi, dword [eax + 0xc]
add esi, eax
mov ecx, esi
call fcn.004e3800
test eax, eax
je 0x4e22a7
cmp byte [esi + 0xc], 0
jne 0x4e22a7
mov ecx, esi
call fcn.004e3800
test eax, eax
je 0x4e22a7
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6f6ba0
call fcn.0040bc30
mov ecx, dword [edi + 0x54]
mov ebx, eax
cmp dword [ecx + 4], 0
je 0x4e21fd
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004e3800
test eax, eax
je 0x4e21fd
cmp byte [esi + 0xc], 0
jne 0x4e21fd
mov ecx, esi
call fcn.004e3800
jmp 0x4e21ff
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x4e2276
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 0x4e222e
cmp eax, 0xffffffff
je 0x4e222e
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.0040bc30
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push esi
call fcn.0041a900
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4e2267
cmp eax, 0xffffffff
je 0x4e2276
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e2276
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4e2298
cmp eax, 0xffffffff
je 0x4e22a7
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e22a7
push 4
push 2
push dword [ebp - 0x14]
call fcn.004016c0
add esp, 0xc
mov eax, dword [edi + 0x54]
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x4e2320
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
cmp eax, 1
je 0x4e22f3
test eax, eax
je 0x4e22f3
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x4e22e1
push 2
push ecx
push 4
push 0x14
call fcn.00401560
add esp, 0x10
mov dword [edi + 0x54], eax
jmp 0x4e22f3
push ecx
mov eax, esp
push ecx
lea ecx, [edi + 0x54]
mov dword [eax], 0
call fcn.004e4560
mov eax, dword [edi + 0x54]
mov esi, dword [eax + 0xc]
add esi, dword [ebp - 0x18]
add esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4e230c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x18], 0x14
inc ebx
mov dword [esi + 4], 0
mov eax, dword [edi + 0x54]
cmp ebx, dword [eax + 4]
jl 0x4e22b4
mov ecx, dword [eax]
test ecx, ecx
je 0x4e233c
cmp ecx, 0xffffffff
je 0x4e2367
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e2367
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.004e3480
push 4
push 0x14
push esi
call fcn.004016c0
add esp, 0xc
mov ecx, edi
call fcn.004cae50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret