Function at 0x10001470
Capabilities:
Check os version
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100094d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.100041d5
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x1000d3c0
push 0x80000000
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x10001614
mov ebx, dword [ebp - 0x1c]
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xd8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0xd8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [str.509FE1AF_ADD5_49EC_BC55_7CF81FD16E78]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
mov edi, eax
mov edx, dword [str.CLSID]
lea ecx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
push 0x1000c128
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call sub.MFC42.DLL_operator
push edi
lea ecx, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0xd4], 5
jb 0x100016ff
mov eax, dword [str._shellexContextMenuHandlersEPPShellEx]
mov dword [ebp - 0x14], esi
mov edi, eax
push 0x2001f
push eax
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10001810
mov esi, eax
test esi, esi
jne 0x10001601
mov ebx, 0x100
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x14]
push 0
push 0
push 0
lea ecx, [ebp - 0x1d8]
push eax
push ecx
push 0
push edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10001622
lea eax, [ebp - 0x1d8]
lea ecx, [ebp - 0x14]
push eax
call fcn.10001860
mov esi, eax
test esi, esi
je 0x100015c4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10001450
mov ebx, dword [ebp - 0x18]
mov eax, esi
jmp 0x10001645
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
jmp 0x100017c0
lea ecx, [ebp - 0x14]
call fcn.10001450
mov ebx, dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x14]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.10001450
mov eax, esi
test eax, eax
je 0x1000165e
lea ecx, [ebp - 0x2c]
push 0x1000a738
push ecx
mov dword [ebp - 0x2c], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov edi, eax
push 0x2001f
push eax
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.10001810
mov esi, eax
test esi, esi
jne 0x100016d8
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x14]
push 0
push 0
push 0
lea ecx, [ebp - 0x1d8]
push eax
push ecx
push 0
push edx
mov dword [ebp - 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100016c6
lea eax, [ebp - 0x1d8]
lea ecx, [ebp - 0x14]
push eax
call fcn.10001860
mov esi, eax
test esi, esi
jne 0x100016d8
jmp 0x10001683
lea ecx, [ebp - 0x14]
call fcn.10001450
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10001450
mov eax, esi
test eax, eax
je 0x1000174b
lea ecx, [ebp - 0x44]
push 0x1000a738
push ecx
mov dword [ebp - 0x44], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [str._shellexContextMenuHandlersEPPShellEx]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push ebx
call esi
test eax, eax
je 0x10001728
lea eax, [ebp - 0x40]
push 0x1000a738
push eax
mov dword [ebp - 0x40], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
call esi
test eax, eax
je 0x10001748
lea edx, [ebp - 0x30]
push 0x1000a738
push edx
mov dword [ebp - 0x30], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000175b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
test ebx, ebx
je 0x10001772
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret