Function at 0x4cbbd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557e3d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 2
push esi
push eax
call fcn.004cb1f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x4cbd45
mov edx, dword [ebp + 0xc]
or edx, 0x2001f
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 8]
add ecx, edi
mov eax, dword [eax + ecx*4 + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0x4cbc50
cmp eax, 0xffffffff
je 0x4cbc50
mov eax, dword [ebp - 0x10]
lock inc dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push edx
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0
call fcn.0040dd20
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cbda0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4cbda0
push dword [ebp + 0xc]
push esi
call fcn.004cbbd0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040dd20
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x4cbda3
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x4cbccb
cmp eax, 0xffffffff
je 0x4cbccb
mov eax, dword [ebp - 0x10]
lock inc dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040dd20
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push esi
call fcn.00427830
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4cbd05
cmp eax, 0xffffffff
je 0x4cbd14
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cbd14
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cbd33
cmp eax, 0xffffffff
je 0x4cbd42
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cbd42
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 4], 3
test eax, eax
je 0x4cbd66
cmp eax, 0xffffffff
je 0x4cbd8e
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4cbd8e
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 - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4cbdbf
cmp eax, 0xffffffff
je 0x4cbdce
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4cbdce
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc edi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp edi, ecx
jge 0x4cbd45
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
jmp 0x4cbc33