Function at 0x40b370
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, dword [ecx + 0x39c]
cmp eax, 1
jne 0x40b380
jmp 0x40b3a0
cmp eax, 2
jne 0x40b38a
jmp 0x40bf30
cmp eax, 3
jne 0x40b394
jmp 0x40c2d0
ret
push 0xffffffffffffffff
push 0x5826d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x5fd02c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x394]
push 0x5e2300
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
mov dword [esp + 0x5c], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x3ac]
add esp, 0x10
test eax, eax
je 0x40b5e8
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40b5bb
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [eax + 0x40]
test eax, eax
jne 0x40b5af
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40b5af
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CFileFind::GetFilePath
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0040b610
test eax, eax
je 0x40b593
mov eax, dword [esi + 0x3a8]
push 0x5e22fc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40b4da
mov ecx, dword [esp + 0x14]
push ecx
push 0x5e22f8
push edi
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push edi
call ebp
add esp, 4
lea ecx, [esp + 0x18]
push 0x5fd02c
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x388]
mov edx, dword [esp + 0x14]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
lea edi, [esi + 0x340]
push 0
push edx
push 1
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
push 0
push 0
push 0
push 3
push 2
push 0
push 0x22
push eax
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::SetItem
mov eax, dword [esi + 0x388]
push eax
mov eax, dword [esi + 0x360]
push 2
push 0x1102
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40b432
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.0054ed9e
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x40b40c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
push 0xffffffffffffffff
push 0x582818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x5fd02c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 0x3c8]
push 0x5e22d0
push eax
lea ecx, [esp + 0x2c]
push str._s_s
push ecx
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x3ac]
add esp, 0x10
test eax, eax
je 0x40c298
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov bl, 4
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x24]
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40c26b
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call dword [eax + 0x40]
test eax, eax
jne 0x40c25f
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40c25f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetFileName
lea edx, [esp + 0x18]
lea ecx, [esp + 0x38]
push edx
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_CFileFind::GetFilePath
push 0x2e
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
je 0x40c243
push 0x5fd02c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
inc esi
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], bl
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push 0x5e227c
push edx
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x10]
push 0x5e20cc
push eax
call edi
add esp, 8
test eax, eax
je 0x40c136
mov ecx, dword [esp + 0x10]
push 0x5e22c0
push ecx
call edi
add esp, 8
test eax, eax
je 0x40c136
mov edx, dword [esp + 0x10]
push 0x5e22bc
push edx
call edi
add esp, 8
test eax, eax
je 0x40c136
mov eax, dword [esp + 0x10]
push 0x5e22b4
push eax
call edi
add esp, 8
test eax, eax
je 0x40c136
mov ecx, dword [esp + 0x10]
push 0x5e22b8
push ecx
call edi
add esp, 8
test eax, eax
je 0x40c136
mov edx, dword [esp + 0x10]
push 0x5e22b0
push edx
call edi
add esp, 8
test eax, eax
je 0x40c136
mov eax, dword [esp + 0x10]
push 0x5e22ac
push eax
call edi
add esp, 8
test eax, eax
je 0x40c136
mov ecx, dword [esp + 0x10]
push 0x5e22a8
push ecx
call edi
add esp, 8
test eax, eax
je 0x40c136
mov edx, dword [esp + 0x10]
push 0x5e22a4
push edx
call edi
add esp, 8
test eax, eax
jne 0x40c235
push 0x5fd02c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
push 0x5e23c8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x3cc]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_s_s
push eax
mov byte [esp + 0x70], 7
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x14
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00409600
test eax, eax
je 0x40c21a
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x5fd214]
mov byte [esp + 0x5c], 8
test ecx, ecx
je 0x40c20b
lea eax, [esp + 0x20]
push eax
call fcn.00410490
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c20b
mov ebx, dword [eax]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::AllocSysString
push eax
push 3
push esi
call dword [ebx + 0x64]
mov ecx, dword [0x5fd214]
push 0
push 0xc9
call fcn.00410940
mov eax, dword [esp + 0x20]
mov bl, 4
test eax, eax
mov byte [esp + 0x5c], 7
je 0x40c21a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40bfbe
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::Close
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.0054ed9e
mov eax, dword [ebp + 0x3ac]
test eax, eax
jne 0x40bf98
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3ac]
test eax, eax
je 0x40c405
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea ebp, [esi + 0x38c]
mov eax, dword [ebp]
push 0x5fd02c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40c405
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ebp
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.00407b20
test eax, eax
je 0x40c405
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea edi, [esi + 0x340]
test edi, edi
jne 0x40c33c
xor eax, eax
jmp 0x40c33f
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c3c0
mov eax, dword [esi + 0x360]
push 0xffff0000
push 0
push 0x1101
push eax
call ebx
mov eax, dword [ebp]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 1
push 0
push eax
push 0x23
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, edi
mov dword [esi + 0x388], eax
call sub.MFC42.DLL_CTreeCtrl::SetItem
lea eax, [esi + 0x380]
test eax, eax
je 0x40c3a9
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x360]
push eax
push 0
push 0x1109
push ecx
call ebx
push eax
call sub.MFC42.DLL_CImageList::FromHandle
mov edx, dword [esi + 0x388]
mov ecx, esi
push edx
call fcn.004088b0
mov eax, dword [esi + 0x388]
mov ecx, dword [esi + 0x360]
push eax
push 2
push 0x1102
push ecx
call ebx
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x40c2f1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret