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

Disassembly:
push 0xffffffffffffffff
push 0x10006290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x34]
mov byte [esp + 0x24], 3
cmp ebp, ebx
jne 0x10005232
mov ebp, 0x80000002
mov edi, dword [esp + 0x30]
cmp edi, ebx
jne 0x100052ea
mov eax, dword [esp + 0x2c]
push 0x5c
lea ecx, [esp + 0x30]
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, ebx
jle 0x100052b1
lea ecx, [esp + 0x34]
push edi
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
sub esi, edi
lea edx, [esp + 0x34]
dec esi
lea ecx, [esp + 0x2c]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push 0xf003f
push ebx
push ecx
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100053a3
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
push edx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10005319
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
push eax
push 0xf003f
push ebx
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100053a3
mov esi, dword [esp + 0x34]
push edi
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov edi, eax
je 0x1000532e
push esi
call ebp
xor esi, esi
mov dword [esp + 0x18], esi
cmp edi, ebx
mov byte [esp + 0x24], 2
lea ecx, [esp + 0x10]
jne 0x1000537a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10005362
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x100053cc
push esi
call ebp
jmp 0x100053cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret