Function at 0x401410
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4094f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x878
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ecx
lea esi, [ebp + 0x310]
mov eax, esp
xor edi, edi
mov dword [esp + 0x1c], esp
push eax
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.00401970
mov ecx, esi
call fcn.004026b0
cmp eax, 0x3e9
jne 0x401465
mov dword [ebp + 0x100], edi
jmp 0x4018ae
lea ecx, [esp + 0x174]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x174]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x104]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.AVI_EXTRACT
cmp byte [esp + ecx + 0x177], 0x5c
jne 0x4014ad
lea edx, [esp + 0x178]
push edx
push str._s_s
jmp 0x4014ba
lea eax, [esp + 0x178]
push eax
push 0x40c0e8
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebp
push 0x401a70
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004022c0
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, 0x3ea
mov dword [esp + 0x890], 0
jne 0x40152c
mov eax, dword [ebp + 0x1754]
lea ecx, [esp + 0x784]
push eax
push 0x40c0e4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp + 0x100], 1
lea ecx, [esp + 0x28]
call fcn.004020a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x890], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x890], 2
call sub.MFC42.DLL_CString::CString
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x278]
mov byte [esp + 0x890], 3
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x37c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1754]
xor edi, edi
test eax, eax
jle 0x4017c3
lea edx, [esp + 0x5c]
push edi
push edx
lea ecx, [ebp + 0x310]
call fcn.004018f0
mov esi, eax
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x894], 4
call fcn.00408d50
lea eax, [esi + 4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00408d50
mov ecx, dword [esi + 8]
mov byte [esp + 0x890], 3
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], eax
call fcn.004020f0
mov al, byte [esp + 0x1c]
mov dword [esp + 0x890], 3
test al, 1
je 0x401616
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
and al, 0xfe
mov dword [esp + 0x1c], eax
call fcn.00408d44
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004018d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x894], 6
call fcn.00408d50
lea ecx, [esp + 0x24]
mov byte [esp + 0x890], 3
call fcn.00408d44
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
lea edx, [esp + 0x18]
push 4
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x894], 7
call fcn.00408d50
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 3
call fcn.00408d44
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str..MP4
push eax
call esi
add esp, 8
test eax, eax
jne 0x4016b1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4017b4
mov eax, dword [esp + 0x14]
push str..EXE
push eax
call esi
add esp, 8
test eax, eax
jne 0x4016dc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x278]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4017b4
mov eax, dword [esp + 0x10]
mov esi, str.MJPG32_G.DLL
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401709
test cl, cl
je 0x401705
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401709
add eax, 2
add esi, 2
test cl, cl
jne 0x4016e5
xor eax, eax
jmp 0x40170e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4017b4
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x480]
push 0xff
push eax
mov byte [esp + 0x898], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x688]
push str._sMJPG32_G.DLL
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x684]
lea ecx, [esp + 0x40]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4017a3
push ebx
lea ecx, [esp + 0x584]
push str.setupapi_InstallHinfSection_DefaultInstall_128__smcodec.inf
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x580]
mov ecx, ebp
push edx
push str.RunDll32.exe
call fcn.00401990
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x40]
mov byte [esp + 0x890], 3
call fcn.00408e04
mov eax, dword [ebp + 0x1754]
inc edi
cmp edi, eax
jl 0x401598
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401867
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 0x103]
lea ecx, [esp + 0x278]
cmp al, 0x5c
lea eax, [esp + 0x70]
push eax
push ecx
push ebx
jne 0x4017fe
push str._s_s___s
jmp 0x401803
push 0x40c04c
lea edx, [esp + 0x38c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x37c]
mov ecx, ebp
push 0x40c908
push eax
call fcn.00401990
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3e8
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x70]
push ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x890], 2
call fcn.00408d44
lea ecx, [esp + 0x14]
mov byte [esp + 0x890], 1
call fcn.00408d44
lea ecx, [esp + 0x28]
mov byte [esp + 0x890], 0
call fcn.004020f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x890], 0xffffffff
call fcn.00408d44
mov eax, dword [ebp + 0x100]
mov ecx, dword [esp + 0x888]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x884
ret