Function at 0x50eb10
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push 2
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0050e420
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
add esp, 0xc
xor edi, edi
test ecx, ecx
jle 0x50ebde
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [eax + 8]
add edx, edi
lea eax, [eax + edx*4 + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x20]
push edx
push 0x2001f
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
call fcn.004c7eb0
push eax
push esi
call ebp
test eax, eax
jne 0x50ebb1
mov eax, dword [esp + 0x20]
mov ebx, eax
test eax, eax
je 0x50ebb1
push eax
call fcn.0050eb10
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.004c7eb0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x50ec2f
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50ebcb
mov edx, dword [esp + 0x14]
push edx
call fcn.004c6150
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
inc edi
cmp edi, ecx
jl 0x50eb45
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50ec27
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x14]
lea edi, [eax + ecx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x50ec1e
nop
mov edx, dword [esi - 4]
sub esi, 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x50ec1a
mov ecx, dword [esi]
push ecx
call fcn.004c6150
add esp, 4
cmp esi, edi
jne 0x50ec00
push ebx
call fcn.004cc7c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
push 0
push 0
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.004c9050
add esp, 0xc
push 1
lea ecx, [esp + 0x16]
mov eax, 0xa
push ecx
lea ecx, [esp + 0x20]
mov word [esp + 0x1a], ax
call fcn.004c62d0
test al, al
je 0x50ec86
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.004c9f10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.004c7a70
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x50eca9
mov eax, dword [esi]
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x50ecb6
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
mov ecx, esi
call fcn.004c3b70
mov edx, dword [esi]
mov edi, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.004c7a70
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x50ecde
mov eax, dword [esi]
lea edx, [eax + 0x10]
cmp dword [eax + 0xc], edx
je 0x50eceb
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
mov ecx, esi
call fcn.004c3b70
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push edi
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___s_:__s
call fcn.004bf6c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ed19
mov eax, dword [esp + 0x24]
push eax
call fcn.004cc7c0
add esp, 4
mov ecx, dword [esp + 0x28]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ed33
mov eax, dword [esp + 0x28]
push eax
call fcn.004cc7c0
add esp, 4
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ed4d
mov eax, dword [esp + 0x18]
push eax
call fcn.004c6150
add esp, 4
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ed67
mov eax, dword [esp + 0x14]
push eax
call fcn.004c6150
add esp, 4
mov ecx, dword [esp + 0x1c]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50ec27
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00401f5c
push esi
call fcn.004cc7c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret