Function at 0x401040
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x401720
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
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 0x401098
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 esi, 1
jmp 0x4010e1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 8]
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push edx
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
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.004012a0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionDrivers.desc
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
call fcn.00401380
test eax, eax
je 0x401183
push str.DivX.dll
lea ecx, [esp + 0x10]
call fcn.00401508
push str.DivX_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.00401508
lea eax, [esp + 8]
push str._Video_Codec
lea ecx, [esp + 0x14]
mov bl, 3
push eax
push ecx
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 4
call fcn.004013e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call fcn.004013c0
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.004012a0
mov bl, 5
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionDrivers32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.00401380
test eax, eax
je 0x40122b
push str.DivX.dll
lea ecx, [esp + 0x14]
call fcn.00401508
push str.DIVX
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 6
call fcn.00401508
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push str.vidc.
push ecx
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 8
call fcn.004013e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call fcn.004013c0
push 0x80000001
lea ecx, [esp + 0x2c]
call fcn.004012a0
push str.SoftwareDivXNetworksDivX4Windows
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 9
call fcn.00401330
lea ecx, [esp + 0x28]
call fcn.004013c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call fcn.004012e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.004012e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.004012e0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret