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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552780
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 esi, ecx
mov eax, dword [esi + 0x54]
cmp dword [eax + 4], 0
je 0x4e4b45
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004e3800
test eax, eax
je 0x4e4b45
cmp byte [edi + 0xc], 0
jne 0x4e4b45
mov ecx, edi
call fcn.004e3800
test eax, eax
je 0x4e4b45
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [edx]
test eax, eax
je 0x4e4792
cmp eax, 0xffffffff
je 0x4e4792
mov eax, 1
lock xadd dword [edx], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004e34d0
add esp, 8
mov ebx, dword [esi + 0x5c]
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [ebp - 0x10]
call fcn.00407430
cmp eax, 0xffffffff
jne 0x4e47cd
mov dword [ebp + 8], 0x6f6ba0
jmp 0x4e47db
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00407560
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 1
cmp dword [eax + 4], 0
je 0x4e4809
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004e3800
test eax, eax
je 0x4e4809
cmp byte [edi + 0xc], 0
jne 0x4e4809
mov ecx, edi
call fcn.004e3800
mov edi, eax
jmp 0x4e480b
xor edi, edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
or ebx, 0x2001f
lea ecx, [ebp + 8]
push ebx
push 0
call fcn.0040bc30
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
mov byte [ebp - 4], 0
test eax, eax
mov eax, dword [ebp + 8]
cmove edi, dword [ebp - 0x20]
or ebx, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4e485e
cmp eax, ebx
je 0x4e486d
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e486d
push 4
push 2
push dword [ebp + 8]
call fcn.004016c0
add esp, 0xc
test edi, edi
je 0x4e48cf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004e3910
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040bc30
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4e48b9
cmp eax, 0xffffffff
je 0x4e48c8
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e48c8
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004016c0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x54]
cmp dword [eax + 4], 0
je 0x4e48ff
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004e3800
test eax, eax
je 0x4e48ff
cmp byte [edi + 0xc], 0
jne 0x4e48ff
mov ecx, edi
call fcn.004e3800
mov edi, eax
jmp 0x4e4901
xor edi, edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
or eax, 0x2001f
push eax
push 0
call fcn.0040bc30
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e4b03
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4e4b00
push dword [esi + 0x5c]
push ebx
call fcn.004e3240
mov eax, dword [ebp - 0x10]
add esp, 8
cmp dword [eax + 4], 0
jne 0x4e4a77
push 1
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004e28c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
lea edx, [eax + 8]
add ecx, 4
mov byte [ebp - 4], 3
lea edi, [eax + 0xc]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edi
lea esi, [eax + ecx*4]
mov ecx, dword [edi]
add ecx, 4
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x2c], ecx
cmp esi, ecx
je 0x4e4a24
mov ecx, esi
call fcn.0040bc30
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x4e4a0f
mov ecx, dword [esi]
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
test edx, edx
je 0x4e49bf
cmp edx, 0xffffffff
je 0x4e49bf
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040bc30
push eax
push str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
push edi
call fcn.0041a900
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x4e4a00
cmp eax, 0xffffffff
je 0x4e4a0f
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e4a0f
push 4
push 2
push dword [ebp - 0x14]
call fcn.004016c0
add esp, 0xc
add esi, 4
cmp esi, dword [ebp - 0x2c]
jne 0x4e4991
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 5
test eax, eax
je 0x4e4a4f
cmp eax, 0xffffffff
je 0x4e4af9
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
setne al
test al, al
jne 0x4e4af9
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [edx]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.00407b50
push esi
call fcn.0041fb10
add esp, 4
jmp 0x4e4af9
lea ecx, [ebp - 0x10]
call fcn.0040bc30
mov ecx, dword [esi + 0x54]
mov edi, eax
cmp dword [ecx + 4], 0
je 0x4e4aa9
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004e3800
test eax, eax
je 0x4e4aa9
cmp byte [esi + 0xc], 0
jne 0x4e4aa9
mov ecx, esi
call fcn.004e3800
jmp 0x4e4aab
xor eax, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x4e4af9
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4e4ad6
cmp ecx, 0xffffffff
je 0x4e4ad6
mov eax, dword [ebp - 0x10]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0040bc30
push eax
push str.QSettings:_RegDeleteKey_failed_on_key___ls_
push esi
call fcn.0041a900
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004011e0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4e4b22
cmp eax, 0xffffffff
je 0x4e4b4e
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], ebx
cmp ebx, 1
setne al
test al, al
jne 0x4e4b4e
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
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.004d0b80
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