Function at 0x405480
Capabilities:
Accept command line arguments
Check os version
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406257
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x4054ee
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
add esp, 0xd4
ret
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.00401150
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0xd8], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp ecx, 6
lea ecx, [esp + 0x10]
sete dl
mov dword [esp + 0x1c], edx
call fcn.004011f0
mov eax, dword [esp + 0x10]
pop edi
mov dword [0x409bc0], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
cmp eax, esi
push ecx
mov ecx, 0x409bc4
je 0x4055e6
call sub.MFC42.DLL_CString::operator_1
push str.Users_
mov ecx, 0x409bc4
call fcn.00405828
lea edx, [esp + 4]
push edx
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4055d0
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
push 0x104
mov dword [esp + 0x10], 0x104
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push eax
push esi
push esi
push str.RegisteredOwner
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
mov ecx, 0x409bc4
push eax
call fcn.00405822
push str.AppDataRoamingMicrosoftMMC_
jmp 0x40560e
call sub.MFC42.DLL_CString::operator_1
push str.Documents_and_Settings_
mov ecx, 0x409bc4
call fcn.00405828
lea edx, [esp + 0x2c]
mov ecx, 0x409bc4
push edx
call fcn.00405822
push str.Application_DataMicrosoftMMC_
mov ecx, 0x409bc4
call fcn.00405828
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call fcn.004052f0
add esp, 0xc
call fcn.00404a00
lea ecx, [esp + 0x34]
mov dword [esp + 0xd4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xd4
ret