Function at 0x4e3240
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5525e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004e28c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
xor ebx, ebx
or edi, 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [eax + 0xc]
lea edx, [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x24], edx
mov edx, dword [edx]
sub ecx, edx
test ecx, ecx
jle 0x4e33d1
mov ecx, dword [ebp + 0xc]
or ecx, 0x2001f
mov dword [ebp - 0x28], ecx
lea ecx, [edx + ebx]
mov esi, 1
mov ecx, dword [eax + ecx*4 + 0x10]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x4e32ce
cmp eax, 0xffffffff
je 0x4e32ce
mov eax, esi
lock xadd dword [ecx], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 0
call fcn.0040bc30
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e342f
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4e342f
push dword [ebp + 0xc]
push esi
call fcn.004e3240
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040bc30
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 0x4e3432
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x4e3353
cmp eax, 0xffffffff
je 0x4e3353
mov eax, dword [ebp - 0x10]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040bc30
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push esi
call fcn.0041a900
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4e338f
cmp eax, 0xffffffff
je 0x4e339e
mov eax, dword [ebp - 0x18]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e339e
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4e33bf
cmp eax, 0xffffffff
je 0x4e33ce
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e33ce
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test eax, eax
je 0x4e33f4
cmp eax, 0xffffffff
je 0x4e341d
lock xadd dword [esi], edi
cmp edi, 1
setne al
test al, al
jne 0x4e341d
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.00407b50
push esi
call fcn.0041fb10
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 0x4e3450
cmp eax, 0xffffffff
je 0x4e345f
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e345f
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
inc ebx
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, edx
cmp ebx, eax
jge 0x4e33ce
mov eax, dword [ebp - 0x14]
jmp 0x4e32ae