Function at 0x4080cf
Capabilities:
Copy file
Get common file path
Set file attributes
Set registry value

Disassembly:
mov eax, 0x40f876
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x394
push ebx
push esi
push edi
xor edi, edi
push 0x640000
mov esi, ecx
push edi
push 0x401
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x104
lea eax, [ebp - 0x29c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x29c]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 4], edi
call fcn.0040e3ba
push 0x5c
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040e3b4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040e3ae
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x70]
push eax
call sub.MFC42.DLL_CString::CString_2
push str.program_
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x70]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::CString_2
push str.system_
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x80]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString_2
push str.demo_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x68]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString_2
push str.demoISD_
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x74]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString_2
push 0x416744
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x6c]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString_2
push 0x416734
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x64]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString_2
push 0x416724
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x78]
mov ecx, esi
call fcn.004078ba
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x198]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ebx, [esi + 0x1a4]
lea eax, [ebp - 0x198]
push eax
mov ecx, ebx
call fcn.0040e3ba
push str.XpVdmDel.ini
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx]
push 0x1000
push eax
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CFile::CFile_1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CFile::Close
push 0x4168a0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x34], edi
call sub.MFC42.DLL_CString::CString
push 0x4163bc
push edi
mov byte [ebp - 4], 0xa
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
mov dword [0x4168b0], eax
je 0x4083a4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x224
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push dword [ebp - 0x24]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push edi
push eax
call sub.KERNEL32.dll_Module32First
lea eax, [edi + 0x120]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString
push edi
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_operatordelete
pop ecx
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::Left
lea edi, [esi + 0x60]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.0040e3b4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.0040e3ae
push edi
lea ecx, [ebp - 0x60]
call fcn.0040e3b4
push str.VDMakerPlus_
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x60]
mov ecx, esi
call fcn.004078ba
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xa
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
cmp dword [ebp - 0x50], eax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
jle 0x408858
mov dword [ebp - 0x14], 0x64
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push str.VDMaker.101.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408450
lea eax, [esi + 0x1e0]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e3b4
push str.VDMaker.dll
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
jmp 0x408777
push str.a14loader.arx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408478
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.a14loader.arx
jmp 0x408443
push str.a15loader.arx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4084a0
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.a15loader.arx
jmp 0x408443
push str.i2kstdloader.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4084cb
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.i2kstdloader.dll
jmp 0x408443
push str.vh2kloader.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4084f6
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.vh2kloader.dll
jmp 0x408443
push str.zw2kloader.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408521
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.zw2kloader.dll
jmp 0x408443
push str.o2kloader.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40854c
lea eax, [esi + 0x1e0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.o2kloader.dll
jmp 0x408443
push str.VDMaker.102.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408569
lea eax, [esi + 0x1e4]
jmp 0x408435
push str.a16loader.arx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408594
lea eax, [esi + 0x1e4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.a16loader.arx
jmp 0x408443
push str.VDMaker.103.dll
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4085b1
lea eax, [esi + 0x1e8]
jmp 0x408435
push str.a17loader.arx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4085dc
lea eax, [esi + 0x1e8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.a17loader.arx
jmp 0x408443
push 0x415f88
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408607
lea eax, [esi + 0x1ec]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push 0x415f88
jmp 0x408443
push str.ndtool.exe
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408632
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.ndtool.exe
jmp 0x408443
push str.Readme_chn.txt
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40865d
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.Readme_chn.txt
jmp 0x408443
push str.ReadmeCHS.txt
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408678
cmp dword [0x415f98], 1
jmp 0x4086ac
push str.ReadmeENG.txt
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408693
cmp dword [0x415f98], 2
jmp 0x4086ac
push str.ReadmeCHT.txt
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4086cb
cmp dword [0x415f98], 3
jne 0x408735
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.Readme.txt
jmp 0x408443
push str.VDHelpCHS.chm
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4086e6
cmp dword [0x415f98], 1
jmp 0x40871a
push str.VDHelpENG.chm
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x408701
cmp dword [0x415f98], 2
jmp 0x40871a
push str.VDHelpCHT.chm
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40873d
cmp dword [0x415f98], 3
jne 0x408735
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push str.VDHelp.chm
jmp 0x408443
dec dword [ebp - 0x1c]
jmp 0x4087e7
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4087ff
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x14]
add ecx, dword [ebp - 0x58]
push 0
cdq
add ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x50]
idiv ecx
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
inc dword [ebp - 0x2c]
add dword [ebp - 0x14], 0x64
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], eax
jl 0x4083e6
jmp 0x40885b
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x416998
push 0x12
mov ecx, esi
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x34]
call fcn.0040e3b4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x13
mov ecx, esi
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::operator_1
push 0
push 0
push dword [ebp - 0x34]
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x34]
jmp 0x40913d
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x38], 0
jle 0x4089c8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3ba
push 0x415a2c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
mov eax, dword [eax]
push str.MSVCP60.DLL
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
neg eax
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x79], al
call fcn.0040e3ae
cmp byte [ebp - 0x79], 0
je 0x408933
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x408949
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x409093
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x50]
add ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x2c]
push 0
add ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add ecx, eax
lea eax, [edx + eax + 1]
imul eax, eax, 0x64
cdq
idiv ecx
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
inc dword [ebp - 0x2c]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jl 0x40886c
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x44], 0
jle 0x408adc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x38]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x44]
add edx, ecx
add edx, eax
add eax, ecx
mov dword [ebp - 0x14], eax
inc eax
imul eax, eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x1f0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x28]
push 0
cdq
idiv dword [ebp - 0x2c]
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
add dword [ebp - 0x28], 0x64
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x408a02
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x5c], 0
jle 0x408bf6
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
add ecx, edx
mov edx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x44]
add ecx, edx
add eax, ecx
mov dword [ebp - 0x14], eax
inc eax
imul eax, eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x1f4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x28]
push 0
cdq
idiv dword [ebp - 0x2c]
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
add dword [ebp - 0x28], 0x64
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x408b1c
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x48], 0
jle 0x408d12
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
add edx, ecx
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
add edx, eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x44]
add ecx, edx
add ecx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x14], eax
inc eax
imul eax, eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x1f8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x28]
push 0
cdq
idiv dword [ebp - 0x2c]
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
add dword [ebp - 0x28], 0x64
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x408c38
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x58], 0
jle 0x408e31
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov ecx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
add edx, ecx
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
add edx, eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x48]
add edx, ecx
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
add eax, edx
mov dword [ebp - 0x14], eax
inc eax
imul eax, eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x1fc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x28]
push 0
cdq
idiv dword [ebp - 0x2c]
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
add dword [ebp - 0x28], 0x64
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x408d57
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jle 0x408f55
mov edx, dword [ebp - 0x34]
add edx, ecx
mov ecx, dword [ebp - 0x58]
add edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
add edx, eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x48]
add ecx, edx
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x14], eax
inc eax
imul eax, eax, 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1e
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x200]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1f
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x28]
push 0
cdq
idiv dword [ebp - 0x2c]
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
add dword [ebp - 0x28], 0x64
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x408e78
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x34], 0
jle 0x4091e8
mov edx, dword [ebp - 0x58]
add ecx, edx
add ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x20
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea eax, [esi + 0x1dc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x1c8]
push eax
call fcn.00402a7d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x21
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4090e9
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
add ecx, eax
mov eax, dword [ebp - 0x24]
add ecx, dword [ebp - 0x58]
push 0
add ecx, dword [ebp - 0x48]
lea eax, [eax + edx + 1]
imul eax, eax, 0x64
add ecx, dword [ebp - 0x5c]
cdq
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x50]
idiv ecx
push eax
push 0x402
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00404d69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.File_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push str.Uninstall
call edi
inc dword [ebp - 0x2c]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jl 0x408f7c
jmp 0x4091e8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x416998
push 0x12
mov ecx, esi
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x14]
call fcn.0040e3b4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x13
mov ecx, esi
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0
push 0
push dword [ebp - 0x14]
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x14]
jmp 0x40913d
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x416998
push 0x12
mov ecx, esi
mov byte [ebp - 4], 0x22
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x14]
call fcn.0040e3b4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x13
mov ecx, esi
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0
push 0
push dword [ebp - 0x14]
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040e3ae
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0040e3ae
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.0040e3ae
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.0040e420
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.0040e3ae
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040e3ae
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040e3ae
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.0040e3ae
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0040e3ae
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040e3ae
xor eax, eax
jmp 0x409562
lea ecx, [ebp - 0x84]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0x23
push 0x416664
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebx]
push dword [ebp - 0x84]
push str.Total
push str.Count
call edi
mov eax, dword [ebx]
lea ecx, [esi + 0x1dc]
mov dword [ebp - 0x4c], ecx
push eax
mov ecx, dword [ecx]
push ecx
push str.Directory
push str.VDMaker
call edi
mov eax, dword [ebx]
lea ecx, [esi + 0x1e0]
mov dword [ebp - 0x3c], ecx
push eax
mov ecx, dword [ecx]
push ecx
push str.DirectorySub1
push str.VDMaker
call edi
mov eax, dword [ebx]
lea ecx, [esi + 0x1e4]
mov dword [ebp - 0x28], ecx
push eax
mov ecx, dword [ecx]
push ecx
push str.DirectorySub2
push str.VDMaker
call edi
mov eax, dword [ebx]
lea ecx, [esi + 0x1e8]
mov dword [ebp - 0x14], ecx
push eax
mov ecx, dword [ecx]
push ecx
push str.DirectorySub3
push str.VDMaker
call edi
mov eax, dword [ebx]
mov ecx, dword [esi + 0x1f0]
push eax
push ecx
push str.Demo
push str.VDMaker
call edi
mov eax, dword [ebx]
mov esi, dword [esi + 0x1ec]
push eax
push esi
push str.CommonPath
push 0x415f88
call edi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x24
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x3a0]
push 0x104
push eax
push 0
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040e3ba
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::MakeLower
push str.setup.xp.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x409319
push 0x4165f0
jmp 0x4093b1
push str.setup.share.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
or esi, 0xffffffff
cmp eax, esi
je 0x409334
push str.share
jmp 0x4093b1
push str.setup.online.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, esi
je 0x40934c
push str.online
jmp 0x4093b1
push str.setup.dog.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, esi
je 0x409364
push 0x4165b8
jmp 0x4093b1
push str.setup.pro.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, esi
je 0x40937c
push 0x4165a4
jmp 0x4093b1
push str.setup.reg.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, esi
je 0x409394
push 0x416590
jmp 0x4093b1
push str.setup.net.exe
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, esi
je 0x4093ac
push 0x41658c
jmp 0x4093b1
push str.unknown
lea ecx, [ebp - 0x54]
call fcn.0040e3ba
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x24
call fcn.0040e3ae
push dword [ebx]
mov ebx, str.Version
push dword [ebp - 0x54]
push ebx
push str.VDMaker
call edi
push str.SOFTWAREXPTECHXPCAD.NET_V1.0General_CAD_ModuleInstall
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x26
push eax
push dword [ebp - 0x24]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
push esi
push 0
push str.Directory
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push 0
push str.Sub1
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push 0
push str.Sub2
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push 0
push str.Sub3
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push 0
push ebx
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x24
call fcn.0040e3ae
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x23
call fcn.0040e3ae
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.0040e3ae
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040e3ae
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0040e3ae
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.0040e3ae
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.0040e420
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.0040e3ae
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040e3ae
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040e3ae
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.0040e3ae
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0040e3ae
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040e3ae
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret