Function at 0x40fbb0
Capabilities:
Copy file
Get disk information
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48f891
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe74
mov eax, dword [ecx + 0x20]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
push str.FileFormat__.csv_.csv
push 0x180c
push 0x4f11f4
push 0x4f11f4
push 1
lea ecx, [esp + 0x198]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x180]
mov dword [esp + 0xe84], 0
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
je 0x40fc2c
mov dword [esp + 0xe84], 1
jmp 0x4104a0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x67d]
mov byte [esp + 0x67c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00430b00
test eax, eax
jne 0x40fc60
mov dword [esp + 0xe84], 2
jmp 0x4104a0
lea ecx, [esp + 0x67c]
push 0x100
push ecx
mov ecx, eax
call fcn.00430cd0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x180]
push edx
call sub.MFC42.DLL_CFileDialog::GetPathName
lea eax, [esp + 0x28]
lea ecx, [esp + 0x180]
push eax
mov byte [esp + 0xe88], 3
call sub.MFC42.DLL_CFileDialog::GetFileName
lea ecx, [esp + 0x28]
mov byte [esp + 0xe84], 4
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.export_26_jun_2007_12_12_55.csv
push ecx
call esi
add esp, 8
test eax, eax
je 0x40fcdb
mov edx, dword [esp + 0x28]
push str.export_26_jun_2007_12_38_12.csv
push edx
call esi
add esp, 8
test eax, eax
jne 0x40fd48
mov ax, word [esp + 0x67c]
mov cl, byte [esp + 0x67e]
lea edx, [esp + 0x2c]
mov word [esp + 0x2c], ax
push edx
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40fd48
push 0
push 0x40
push str.Selected_images_cannot_be_imported_to_a_fixed_disk
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x28]
mov byte [esp + 0xe84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe84], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xe84], 5
jmp 0x4104a0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea ecx, [esp + 0x18]
mov byte [esp + 0xe84], 6
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xe90], 7
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40fde8
push eax
push eax
push str.Failed_to_open_the_file.__Please_choose_a_correct_folder.
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x18]
mov byte [esp + 0xe84], 6
call fcn.0048bf0a
mov byte [esp + 0xe84], 4
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x28]
mov byte [esp + 0xe84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe84], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xe84], 8
jmp 0x4104a0
push ebx
lea ecx, [esp + 0x64]
push 0x20
xor bl, bl
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x15], bl
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x64]
push str.VERSION_2
push edx
call esi
add esp, 8
test eax, eax
jne 0x40fe1b
mov byte [esp + 0xd], 1
mov bl, byte [esp + 0xd]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Open
test bl, bl
je 0x40fe5a
lea ecx, [esp + 0x64]
push 0x20
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x40]
push 0xa
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0xc]
push 1
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x480]
push 0x100
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x580]
push 0x100
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x84]
push 0x100
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0xc]
push 1
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
test bl, bl
je 0x40ff16
lea edx, [esp + 0x380]
push 0x100
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov word [esp + 0x48], cx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe88], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x38]
mov byte [esp + 0xe88], 0xa
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe88], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x54]
mov byte [esp + 0xe88], 0xc
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x380]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
push 0xa
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0xe90], 0xd
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 0
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x4103d8
push ebp
jmp 0x40ffb3
mov bl, byte [esp + 0x11]
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x484]
push 0x100
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x488]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x584]
push 0x100
rep stosd dword es:[edi], eax
lea eax, [esp + 0x588]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x584]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x58], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x8c]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push 0x100
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
test bl, bl
je 0x4100b4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x384]
lea edx, [esp + 0x384]
rep stosd dword es:[edi], eax
push 0x100
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x5c]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xe90], 0xe
call fcn.0048bec2
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8c], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x684]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x4ad704
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push 0x4ad700
push 0x4ad6fc
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x88]
push eax
push 0x4ad1d4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea edx, [esp + 0x38c]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esp + 0xea4], 0xf
call ebp
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
dec esi
push esi
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4101a0
push esi
push edi
lea eax, [esp + 0x38c]
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
push 0
push 0
lea ecx, [esp + 0x90]
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
mov esi, eax
dec esi
push esi
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x4101d4
push esi
push ebx
lea edx, [esp + 0x90]
push 0xffffffffffffffff
push edx
push 0
push 0
call ebp
push 0
push 0
lea eax, [esp + 0x48c]
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
mov esi, eax
dec esi
push esi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebp, eax
test ebp, ebp
je 0x410210
push esi
push ebp
lea ecx, [esp + 0x48c]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x410222
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x410224
xor eax, eax
mov eax, dword [eax + 0x264]
push edi
mov edi, dword [esp + 0x58]
push ebx
mov ecx, dword [eax]
push edi
push ebp
push eax
call dword [ecx + 0x10c]
test eax, eax
jne 0x41039f
lea edx, [esp + 0x88]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov esi, 1
cmp edi, esi
jl 0x41039f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
mov eax, dword [eax - 8]
add eax, 0xfffffffb
push eax
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Left
mov edx, dword [eax]
push esi
push edx
lea eax, [esp + 0x48]
push str._s_d.IMG
push eax
mov byte [esp + 0xe9c], 0x10
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x50]
mov byte [esp + 0xe8c], 0xf
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe90], 0x11
call fcn.0048bec2
lea ecx, [esp + 0x64]
mov byte [esp + 0xe8c], 0xf
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
push edx
call fcn.0048bd4e
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x684]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x4ad704
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x4ad700
push 0x4ad6fc
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x1c]
mov cx, word [eax]
mov word [esp + 0x34], cx
mov dl, byte [eax + 2]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x410396
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410386
mov al, byte [esp + 0x12]
test al, al
je 0x410396
push 0
push 0x40
push str.At_least_one_image_import_has_failed
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 1
jmp 0x410396
mov eax, dword [esp + 0x1c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc esi
cmp esi, edi
jle 0x410261
xor ecx, ecx
mov byte [esp + 0xe8c], 0xd
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], cx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x44]
push 0xa
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
test eax, eax
jne 0x40ffaf
pop ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
mov al, byte [esp + 0xf]
pop ebx
test al, al
jne 0x4103f8
push 0
push 0
push str.Data_imported_successfully
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x50]
mov byte [esp + 0xe84], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xe84], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xe84], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0xe84], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xe84], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xe84], 6
call fcn.0048bf0a
mov byte [esp + 0xe84], 4
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x28]
mov byte [esp + 0xe84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe84], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xe84], 0x12
lea ecx, [esp + 0x230]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x180]
mov dword [esp + 0xe84], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xe80
ret