Function at 0x4049d0
Capabilities:
Copy file
Create directory
Delete file
Get common file path
Persist via lnk shortcut
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x406e5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x64], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [esp + 0x2b8]
xor ebx, ebx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x2b4], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b0], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b0], 2
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
mov byte [esp + 0x2bc], 3
call esi
mov eax, dword [esp + 0x4c]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0xa8]
push edx
push eax
call ebp
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x24]
push ecx
push 0x409028
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x409020
call fcn.00405ddc
lea eax, [esp + 0x4c]
push eax
push 2
push ebx
call esi
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xa8]
push ecx
push edx
call ebp
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x1c]
push eax
push 0x409028
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [edi + 0x108]
lea edx, [esp + 0x28]
mov dword [esp + 0x48], eax
push eax
push 0x409020
push edx
call sub.MFC42.DLL_operator_2
push 0x409020
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x2b8], 4
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 5
call fcn.00405de8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x2b0], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
push edx
mov dword [esp + 0x94], 0xc
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [edi + 0xf0]
push ebx
push ebx
push eax
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4050cc
push 2
push 0xfffffffffffffffc
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Seek
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
mov esi, dword [edi + 0xfa130]
mov ebp, dword [edi + 0xfa134]
push str.C:ymSetup.lnk
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2b0], 6
cmp eax, ebx
mov dword [esp + 0x60], ebx
jle 0x404fd6
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405dee
push ebx
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x2b8], 7
call sub.MFC42.DLL_CFile::Seek
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x1a8]
push 0xff
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x2b8], 8
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x1a8]
lea ecx, [esp + 0x10]
push eax
push 0x409028
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [edx - 8]
cmp edi, ebx
jle 0x404cb0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push 0x409020
push eax
lea eax, [esp + 0x8c]
mov byte [esp + 0x2b8], 9
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b4], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x84]
mov byte [esp + 0x2b0], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0x2b0], 8
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [edi + 1]
push ebx
cdq
add esi, eax
lea ecx, [esp + 0x54]
push esi
mov dword [esp + 0x44], ebx
adc ebp, edx
mov dword [esp + 0x4c], ebx
call sub.MFC42.DLL_CFile::Seek
lea eax, [esp + 0x3c]
push 4
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x44]
push 4
push ecx
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x1a8]
push 0xff
push edx
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x1a8]
lea ecx, [esp + 0x10]
push eax
push 0x409028
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x50]
mov eax, dword [edx - 8]
push ebx
add eax, 9
add esi, eax
push esi
adc ebp, ebx
call sub.MFC42.DLL_CFile::Seek
lea eax, [esp + 0x68]
push 8
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [esp + 0x68]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x6c]
add esp, 4
mov edi, eax
lea ecx, [esp + 0x50]
push edx
push edi
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.00405de8
mov ecx, dword [esp + 0x18]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea ecx, [esp + 0x9c]
call fcn.00405f38
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x98]
push edx
push edi
mov byte [esp + 0x2b8], 0xb
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CFile::Close
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x2b0], 0xc
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x2b0], 0xd
cmp eax, ebx
jne 0x404dfb
cmp dword [esp + 0x44], ebx
je 0x404f49
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push eax
call fcn.004038b0
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x78]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0x2b0], 0xd
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push str..lnk
push eax
lea eax, [esp + 0x7c]
mov byte [esp + 0x2b8], 0xf
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0x2b0], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2b0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push str..lnk
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0x2bc], 0x11
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b4], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x80]
mov byte [esp + 0x2b0], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0x2b0], 0xd
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x3c], ebx
je 0x404f32
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [esp + 0x44], ebx
je 0x404f49
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
add ecx, 8
mov byte [esp + 0x2b0], 0xc
adc edx, ebx
add esi, ecx
lea ecx, [esp + 0x34]
adc ebp, edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x98]
mov byte [esp + 0x2b0], 8
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b0], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x60], eax
jl 0x404bca
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x2b8]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 0xd4]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x2bc], 0x13
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b0], 0x15
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov edi, dword [edi + 0xf0]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push eax
push edi
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push eax
call fcn.004038b0
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push str._UnInstall.lnk
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x2bc], 0x16
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x48]
mov byte [esp + 0x2b0], 0x18
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x2b0], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret 4