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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558005
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
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 0x4cd4c1
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cc1e0
test eax, eax
je 0x4cd4c1
cmp byte [edi + 0xc], 0
jne 0x4cd4c1
mov ecx, edi
call fcn.004cc1e0
test eax, eax
je 0x4cd4c1
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4cd11c
cmp ecx, 0xffffffff
je 0x4cd11c
lock inc dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004cbec0
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.00409aa0
cmp eax, 0xffffffff
jne 0x4cd157
mov dword [ebp + 8], 0x6e6190
jmp 0x4cd165
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409b40
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 1
cmp dword [eax + 4], 0
je 0x4cd193
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cc1e0
test eax, eax
je 0x4cd193
cmp byte [edi + 0xc], 0
jne 0x4cd193
mov ecx, edi
call fcn.004cc1e0
mov edi, eax
jmp 0x4cd195
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
or ebx, 0x2001f
lea ecx, [ebp + 8]
push ebx
push 0
call fcn.0040dd20
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 - 0x14]
or ebx, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4cd1e6
cmp eax, ebx
je 0x4cd1f5
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd1f5
push 4
push 2
push dword [ebp + 8]
call fcn.00403d20
add esp, 0xc
test edi, edi
je 0x4cd255
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cc2f0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040dd20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4cd23f
cmp eax, 0xffffffff
je 0x4cd24e
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd24e
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
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 0x4cd285
mov edi, dword [eax + 0xc]
add edi, eax
mov ecx, edi
call fcn.004cc1e0
test eax, eax
je 0x4cd285
cmp byte [edi + 0xc], 0
jne 0x4cd285
mov ecx, edi
call fcn.004cc1e0
mov edi, eax
jmp 0x4cd287
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
or eax, 0x2001f
push eax
push 0
call fcn.0040dd20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd3f0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4cd3ed
push dword [esi + 0x5c]
push ebx
call fcn.004cbbd0
mov eax, dword [ebp - 0x10]
add esp, 8
cmp dword [eax + 4], 0
jne 0x4cd438
push 1
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004cb1f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
add esi, 4
add edi, 4
lea esi, [eax + esi*4]
lea edi, [eax + edi*4]
cmp esi, edi
je 0x4cd39a
mov dword [ebp - 0x18], ebx
nop
mov ecx, esi
call fcn.0040dd20
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x4cd389
mov ecx, dword [esi]
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cd33b
cmp ecx, 0xffffffff
je 0x4cd33b
mov eax, dword [ebp + 8]
lock inc dword [eax]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0040dd20
push eax
push str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
push ebx
call fcn.00427830
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x4cd37a
cmp eax, 0xffffffff
je 0x4cd389
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd389
push 4
push 2
push dword [ebp + 8]
call fcn.00403d20
add esp, 0xc
mov ebx, dword [ebp - 0x18]
add esi, 4
cmp esi, edi
jne 0x4cd310
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov byte [ebp - 4], 5
test eax, eax
je 0x4cd3bb
cmp eax, 0xffffffff
je 0x4cd3e3
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cd3e3
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004028a0
push esi
call fcn.0040eed0
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cd415
cmp eax, 0xffffffff
je 0x4cd4ca
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4cd4ca
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
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
lea ecx, [ebp - 0x10]
call fcn.0040dd20
mov ecx, dword [esi + 0x54]
mov edi, eax
cmp dword [ecx + 4], 0
je 0x4cd46a
mov esi, dword [ecx + 0xc]
add esi, ecx
mov ecx, esi
call fcn.004cc1e0
test eax, eax
je 0x4cd46a
cmp byte [esi + 0xc], 0
jne 0x4cd46a
mov ecx, esi
call fcn.004cc1e0
jmp 0x4cd46c
xor eax, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, ebx
test esi, esi
je 0x4cd3e6
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cd497
cmp ecx, 0xffffffff
je 0x4cd497
mov eax, dword [ebp - 0x10]
lock inc dword [eax]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0040dd20
push eax
push str.QSettings:_RegDeleteKey_failed_on_key___ls_
push esi
call fcn.00427830
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00401a70
mov ecx, ebx
jmp 0x4cd3e6
push 1
mov ecx, esi
call fcn.0049f8d0
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