Function at 0x4129c0
Capabilities:
Access peb ldr_data
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x41e0f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x429044
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
cmp esi, 0xffffffff
jne 0x412a25
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
call fcn.0041b82a
jmp 0x412a87
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.0041b82a
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call fcn.0041b82a
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.HKEY_LOCAL_MACHINE
push ecx
call edi
test eax, eax
mov esi, 0x80000002
je 0x412aa6
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 8]
push str.HKEY_CLASSES_ROOT
push edx
call edi
test eax, eax
jne 0x412abb
mov esi, 0x80000000
mov eax, dword [esp + 8]
push str.HKEY_CURRENT_USER
push eax
call edi
test eax, eax
jne 0x412ad0
mov esi, 0x80000001
mov ecx, dword [esp + 8]
push str.HKEY_CURRENT_CONFIG
push ecx
call edi
test eax, eax
jne 0x412ae5
mov esi, 0x80000005
mov edx, dword [esp + 8]
push str.HKEY_USERS
push edx
call edi
test eax, eax
jne 0x412afa
mov esi, 0x80000003
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 2
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412bb8
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x412b34
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, eax
jmp 0x412b50
test eax, eax
jne 0x412b4c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
mov edi, eax
jmp 0x412b50
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push 0
call esi
test edi, edi
mov byte [esp + 0x20], 2
lea ecx, [esp + 0xc]
jne 0x412bc1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov byte [esp + 0x20], 2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc