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

Disassembly:
sub esp, 0xc18
mov eax, dword [0x408270]
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 0x401300
add eax, 2
cmp word [eax], 0
jne 0x4012f4
lea ecx, [ecx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401300
mov ecx, dword [0x40821c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x84]
push esi
push 0
push 0
push 0
push 0
push 0x401090
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 0x401360
add eax, 2
cmp word [eax], 0
jne 0x401356
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401360
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x41c]
push str.regsvr32__s___s_
push edx
call fcn.00401b60
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 0x4013d0
add eax, 2
cmp word [eax], 0
jne 0x4013c6
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4013d0
lea eax, [esp + 0x210]
jmp 0x4013f0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4013f0
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 0x401450
lea ecx, [ecx]
add eax, 2
cmp word [eax], 0
jne 0x401440
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401450
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x41c]
push str.regedit__s___s_
push eax
call fcn.00401b60
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 0x4014c0
lea ecx, [ecx]
add eax, 2
cmp word [eax], 0
jne 0x4014b0
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4014c0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x41c]
push str.regsvr32__s___s_
push ecx
call fcn.00401b60
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 0x401530
add eax, 2
cmp word [eax], 0
jne 0x401526
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401530
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 0x401570
add eax, 2
cmp word [eax], 0
jne 0x401561
lea ebx, [ebx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401570
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 0x4015a0
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 0x401600
add eax, 2
cmp word [eax], 0
jne 0x4015f6
nop
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401600
push 0x208
lea eax, [esp + 0x41c]
push eax
push str.HKCRSoftwareRealNetworksPreferencesDT_Codecs_
call fcn.00402fe0
add esp, 0xc
test al, al
je 0x401695
lea edx, [esp + 0x210]
lea eax, [esp + 0x418]
call fcn.00401030
test eax, eax
je 0x401695
lea ecx, [esp + 0x418]
test ecx, ecx
jne 0x401655
xor eax, eax
jmp 0x401679
lea eax, [esp + 0x418]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401660
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 0x4016a0
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 0x401700
add eax, 2
cmp word [eax], 0
jne 0x4016f1
lea ebx, [ebx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401700
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 0x401760
lea ecx, [esp + 0x418]
push 1
push ecx
call fcn.00402a60
lea edx, [esp + 0x420]
push str.FFModulespncrt.dll
push edx
call fcn.004028b0
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