Function at 0x401230
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0xc18
mov eax, dword [0x408258]
xor eax, esp
mov dword [esp + 0xc14], eax
lea eax, [esp + 4]
push 1
push eax
call fcn.00402a60
add esp, 8
cmp word [esp + 4], 0
mov edx, str.FFModulesFilters.ax
lea eax, [esp + 4]
je 0x401270
add eax, 2
cmp word [eax], 0
jne 0x401264
lea ecx, [ecx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401270
mov ecx, dword [0x40821c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x84]
push esi
push 0
push 0
push 0
push 0
push entry0
lea eax, [esp + 0x1c]
push eax
call edx
mov esi, eax
lea eax, [esp + 8]
push 1
push eax
call fcn.00402a60
add esp, 8
cmp word [esp + 8], 0
mov edx, str.FFModulesAviSynthPluginsVSFilter.dll
lea eax, [esp + 8]
je 0x4012d0
add eax, 2
cmp word [eax], 0
jne 0x4012c6
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4012d0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x41c]
push 0x406338
push edx
call fcn.00401b00
push 0
push 1
push 1
lea eax, [esp + 0x430]
push eax
push 0
call fcn.00402980
lea ecx, [esp + 0x230]
push 1
push ecx
call fcn.00402a60
add esp, 0x28
cmp word [esp + 0x210], 0
mov edx, str.FFModulesFilters_ffdshow
lea eax, [esp + 0x210]
je 0x401340
add eax, 2
cmp word [eax], 0
jne 0x401336
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401340
lea eax, [esp + 0x210]
jmp 0x401360
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401360
lea ecx, [esp + 0x210]
sub eax, ecx
sar eax, 1
sub eax, 1
lea edx, [eax + eax + 2]
push edx
push 1
mov eax, ecx
push eax
push str.HKLMSOFTWAREGNU_ffdshowpth
call fcn.00402ac0
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00402a60
add esp, 0x18
cmp word [esp + 8], 0
mov edx, str.FFModulesFilters_ffdshow_ffdshow.reg
lea eax, [esp + 8]
je 0x4013c0
lea ecx, [ecx]
add eax, 2
cmp word [eax], 0
jne 0x4013b0
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4013c0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x41c]
push str.regedit__s___s_
push eax
call fcn.00401b00
push 0
push 1
push 1
lea ecx, [esp + 0x430]
push ecx
push 0
call fcn.00402980
lea edx, [esp + 0x28]
push 1
push edx
call fcn.00402a60
add esp, 0x28
cmp word [esp + 8], 0
mov edx, str.FFModulesFilters_ffdshow_ffdshow.ax
lea eax, [esp + 8]
je 0x401430
lea ecx, [ecx]
add eax, 2
cmp word [eax], 0
jne 0x401420
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401430
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x41c]
push 0x406338
push ecx
call fcn.00401b00
push 0
push 1
push 1
lea edx, [esp + 0x430]
push edx
push 0
call fcn.00402980
lea eax, [esp + 0x230]
push 1
push eax
call fcn.00402a60
add esp, 0x28
cmp word [esp + 0x210], 0
mov edx, str.FFModulesFiltersHaali
lea eax, [esp + 0x210]
je 0x4014a0
add eax, 2
cmp word [eax], 0
jne 0x401496
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4014a0
lea ecx, [esp + 8]
push 1
push ecx
call fcn.00402a60
add esp, 8
cmp word [esp + 8], 0
mov edx, str.FFModulesFiltersHaaliInstall.bat
lea eax, [esp + 8]
je 0x4014e0
add eax, 2
cmp word [eax], 0
jne 0x4014d1
lea ebx, [ebx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4014e0
push 0
push 1
push 1
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00402980
add esp, 0x14
lea eax, [esp + 0x210]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401510
lea edx, [esp + 0x210]
sub eax, edx
sar eax, 1
sub eax, 1
lea eax, [eax + eax + 2]
push eax
push 1
mov ecx, edx
push ecx
push str.HKLMSOFTWAREHaaliMkxInstall_Dir
call fcn.00402ac0
lea edx, [esp + 0x220]
push 1
push edx
call fcn.00402a60
add esp, 0x18
cmp word [esp + 0x210], 0
mov edx, str.FFModulesRMCodecsdecodecs
lea eax, [esp + 0x210]
je 0x401570
add eax, 2
cmp word [eax], 0
jne 0x401566
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401570
push 0x208
lea eax, [esp + 0x41c]
push eax
push str.HKCRSoftwareRealNetworksPreferencesDT_Codecs_
call fcn.00402fe0
add esp, 0xc
test al, al
je 0x401605
lea edx, [esp + 0x210]
lea eax, [esp + 0x418]
call fcn.00401b20
test eax, eax
je 0x401605
lea ecx, [esp + 0x418]
test ecx, ecx
jne 0x4015c5
xor eax, eax
jmp 0x4015e9
lea eax, [esp + 0x418]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4015d0
lea ecx, [esp + 0x418]
sub eax, ecx
sar eax, 1
sub eax, 1
lea edx, [eax + eax + 2]
push edx
push 1
lea eax, [esp + 0x420]
push eax
push str.HKCRSoftwareRealNetworksPreferencesDT_CodecsBackup
call fcn.00402ac0
add esp, 0x10
lea eax, [esp + 0x210]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401610
lea edx, [esp + 0x210]
sub eax, edx
sar eax, 1
sub eax, 1
lea eax, [eax + eax + 2]
push eax
push 1
mov ecx, edx
push ecx
push str.HKCRSoftwareRealNetworksPreferencesDT_Codecs_
call fcn.00402ac0
add esp, 0x10
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [esp + 8], 0
mov edx, str.pncrt.dll
lea eax, [esp + 8]
je 0x401670
add eax, 2
cmp word [eax], 0
jne 0x401661
lea ebx, [ebx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401670
mov ecx, dword [0x40821c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
lea edx, [esp + 8]
push edx
call eax
test al, al
jne 0x4016d0
lea ecx, [esp + 0x418]
push 1
push ecx
call fcn.00402a60
lea edx, [esp + 0x420]
push str.FFModulespncrt.dll
push edx
call fcn.00402860
add esp, 0x10
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 4
push 4
lea edx, [esp + 0xc]
push edx
push str.HKCUSoftwareFreeTimeFormatFactoryCodecInstalled
mov byte [0x408630], 1
mov dword [esp + 0x14], 1
call fcn.00402ac0
mov ecx, dword [esp + 0xc28]
add esp, 0x10
mov eax, esi
pop esi
xor ecx, esp
call fcn.00404656
add esp, 0xc18
ret