Function at 0x40d670
Capabilities:
Copy file
Delete file
Move file
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4153f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x24]
call fcn.00413970
lea ecx, [esp + 0x18]
mov dword [esp + 0x8c], 0
call fcn.00413970
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 1
call fcn.00413970
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.00413970
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call fcn.00413970
push ecx
mov byte [esp + 0x90], 4
mov ecx, esp
mov dword [esp + 0x60], esp
push str.File
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040e300
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push 0x5000
push 0x5000
mov byte [esp + 0x98], 5
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x41f9bc
push str.Replace
push str.Replace
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 4
call sub.MFC42u.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40dbe5
mov bl, 6
lea ecx, [esp + 0x14]
call fcn.00413970
push 0x2c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], bl
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40d7fb
push 0x2c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Find
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 7
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
inc eax
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 8
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x40d817
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42u.DLL_CString::operator
push 0x41f9bc
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimRight
mov eax, dword [esp + 0x14]
push 0x41f9bc
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40dbc5
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.00413b2c
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.0040e0f0
push eax
lea ecx, [esp + 0x34]
push 0x41b030
push ecx
mov byte [esp + 0x98], 9
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 0xa
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x5c
lea ecx, [esp + 0x18]
mov esi, dword [edx - 8]
call sub.MFC42u.DLL_CString::ReverseFind
sub esi, eax
lea eax, [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Right
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push str.Folder
mov byte [esp + 0x98], 0xb
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0040e300
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x98], 0xc
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 0xd
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x41f70c
lea ecx, [esp + 0x48]
push eax
push ecx
call sub.MFC42u.DLL_operator
mov byte [esp + 0x8c], 0xe
push eax
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.00413b2c
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.0040ed40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 0xf
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x68]
call sub.MFC42u.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x94], 0x10
call sub.MFC42u.DLL_CFileFind::FindFile
test eax, eax
je 0x40dbac
lea edx, [esp + 0x50]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
push eax
lea eax, [esp + 0x50]
push 0x41b6ec
push eax
mov byte [esp + 0x98], 0x11
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 0x12
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c], 0x10
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea esi, [edi + 0x7c]
push ecx
push 0
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.00413b2c
mov ecx, edi
call fcn.0040dd30
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0x80
push eax
call ebp
mov ecx, dword [esp + 0x20]
push 0x80
push ecx
call ebp
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x40daba
push ecx
lea ecx, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x68], esp
push 4
push edx
call sub.MFC42u.DLL_CString::Mid
mov ecx, edi
call fcn.0040df70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x40dada
push 0x41b924
jmp 0x40dba1
mov eax, dword [edi + 0x60]
push 4
cmp eax, 1
jne 0x40db74
lea edx, [esp + 0x58]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
lea ecx, [esp + 0x54]
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40db22
push 0x41b924
jmp 0x40dba1
lea eax, [esp + 0x5c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
mov ebp, dword [eax]
lea ecx, [esp + 0x58]
push 4
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 0x13
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 4
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
lea ecx, [esp + 0x58]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8c], 0x10
call sub.MFC42u.DLL_CString::CString
jmp 0x40db9c
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.DLL_MoveFileExW]
push 0
push edx
call ebp
test eax, eax
jne 0x40db8e
push 0x41b924
jmp 0x40dba1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 4
push eax
push ecx
call ebp
push 0x41f700
push 1
push 0
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x68]
call sub.MFC42u.DLL_CFileFind::Close
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], bl
call fcn.00413b32
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 4
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d764
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret