Function at 0x4fa800
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58639d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x732480]
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.004f9e20
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 0x4fa975
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 0x4fa880
cmp eax, 0xffffffff
je 0x4fa880
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.0042f930
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fa9d0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4fa9d0
push dword [ebp + 0xc]
push esi
call fcn.004fa800
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0042f930
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 0x4fa9d3
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x4fa8fb
cmp eax, 0xffffffff
je 0x4fa8fb
mov eax, dword [ebp - 0x10]
lock inc dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0042f930
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push esi
call fcn.00455420
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4fa935
cmp eax, 0xffffffff
je 0x4fa944
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4fa944
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4fa963
cmp eax, 0xffffffff
je 0x4fa972
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4fa972
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 4], 3
test eax, eax
je 0x4fa996
cmp eax, 0xffffffff
je 0x4fa9be
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4fa9be
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.004037e0
push esi
call fcn.00430ae0
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 0x4fa9ef
cmp eax, 0xffffffff
je 0x4fa9fe
mov eax, dword [ebp - 0x10]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4fa9fe
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc edi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp edi, ecx
jge 0x4fa975
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
jmp 0x4fa863