Function at 0x422250
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x445bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x459194
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 1
call sub.MFC42.DLL_CString::TrimRight_1
push 0x459194
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::TrimRight_1
push 0x459194
lea ecx, [esp + 0x64]
call fcn.0043f64c
push 0x459194
lea ecx, [esp + 0x68]
call fcn.0043f64c
push ecx
lea eax, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.0041b0b0
test eax, eax
jne 0x4222ef
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push 0x45a734
push ecx
call sub.MFC42.DLL_operator_2
push 2
mov ecx, ebp
call fcn.004091a0
jmp 0x4224ae
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x60]
push 0x45919c
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4224a0
lea ecx, [esp + 0x14]
call fcn.0043f5d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 4
call fcn.0043f5d4
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x422477
mov edx, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [edx + 0x40]
test eax, eax
je 0x4223fb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
lea eax, [esp + 0x68]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x60], 7
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, ebp
mov byte [esp + 0x60], 5
call fcn.00422250
test eax, eax
je 0x422484
jmp 0x422477
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov esi, dword [eax]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 9
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0
push esi
push eax
call edi
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x422484
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4224e4
jmp 0x42235e
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 1
call fcn.0043f6ac
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 8
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 1
call fcn.0043f6ac
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4224cf