Function at 0x52e390
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x88], 0
je 0x52e6a8
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52e6a8
cmp byte [edi + 0x14], 0
jne 0x52e6a8
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52e6a8
mov ecx, dword [ebp + 8]
sub esp, 0xc
mov edx, esp
mov edi, dword [ecx]
mov dword [edx], edi
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
test edi, edi
je 0x52e41a
mov eax, 1
lock xadd dword [edi], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0052cb00
mov ebx, dword [esi + 0x90]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.0052d4b0
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x88], 0
mov byte [ebp - 4], 1
je 0x52e472
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52e472
cmp byte [edi + 0x14], 0
jne 0x52e472
mov ecx, edi
call fcn.0052ce90
mov edi, eax
jmp 0x52e474
xor edi, edi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
or ebx, 0x2001f
mov dword [ebp - 0x10], 0
push ebx
push 0
call fcn.00498670
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x2c]
xor edi, edi
test eax, eax
mov byte [ebp - 4], 0
cmove edi, dword [ebp - 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x52e4cd
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52e4cd
push 4
push 2
push dword [ebp - 0x2c]
call fcn.00461780
add esp, 0xc
test edi, edi
je 0x52e525
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0052d360
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00498670
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x52e51e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x52e51e
push 4
push 2
push dword [ebp - 0x38]
call fcn.00461780
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x88], 0
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x10], eax
je 0x52e55f
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52e55c
cmp byte [edi + 0x14], 0
jne 0x52e55c
mov ecx, edi
call fcn.0052ce90
mov edi, eax
mov eax, dword [ebp - 0x10]
jmp 0x52e561
mov eax, dword [ebp - 0x10]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
or eax, 0x2001f
lea ecx, [ebp - 0x20]
push eax
push 0
call fcn.00498670
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52e675
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x52e672
push dword [esi + 0x90]
push ebx
call fcn.0052c800
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x52e611
push 1
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0052bb80
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 3
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x52e607
mov ecx, esi
call fcn.00498670
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x52e5fd
mov ecx, esi
call fcn.00498670
push eax
push str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
push ebx
call fcn.004a1150
add esp, 0xc
mov ebx, dword [ebp - 0x14]
add esi, 0xc
cmp esi, edi
jne 0x52e5d2
lea ecx, [ebp - 0x2c]
call fcn.00478e60
jmp 0x52e66b
lea ecx, [ebp - 0x20]
call fcn.00498670
cmp dword [esi + 0x88], 0
mov edi, eax
je 0x52e644
mov esi, dword [esi + 0x84]
mov ecx, esi
call fcn.0052ce90
test eax, eax
je 0x52e644
cmp byte [esi + 0x14], 0
jne 0x52e644
mov ecx, esi
call fcn.0052ce90
jmp 0x52e646
xor eax, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x52e66b
lea ecx, [ebp - 0x20]
call fcn.00498670
push eax
push str.QSettings:_RegDeleteKey_failed_on_key___ls_
push esi
call fcn.004a1150
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x52e6b1
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x52e6b1
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, esi
call fcn.004e0b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4