Function at 0x4071b0
Capabilities:
Copy file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40fd44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x415ae8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
xor edi, edi
push 0x415ae8
lea ecx, [esp + 0x28]
mov dword [esp + 0x9c], edi
call sub.MFC42.DLL_CString::CString
push 0x415ae8
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_CString::CString
push str.SoftwareCorelCorelDraw11.0CorelDRAW
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::operator_1
push str.LastWorkspaceUsed
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x1c]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
mov byte [esp + 0xa8], 3
call sub.MFC42.DLL_CString::CString_1
push SysReAllocString
mov byte [esp + 0xa8], 2
call fcn.00401970
add esp, 0x10
cmp eax, edi
je 0x407a8f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004012f0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 2
call fcn.0040e8b6
push 0x415ae8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 5
call sub.MFC42.DLL_CStringArray::CStringArray
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x84]
mov byte [esp + 0xa0], 6
call sub.MFC42.DLL_CStringArray::SetSize
push 3
push 0x415028
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 6
call fcn.0040e8b6
lea ecx, [esp + 0x20]
push 0x415028
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator
push 0x415558
push eax
lea eax, [esp + 0x38]
mov bl, 8
push eax
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 6
call fcn.0040e8b6
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00406f80
mov eax, dword [esp + 0x8c]
add esp, 8
cmp eax, edi
je 0x407a6d
push 0x415ae8
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x415028
mov byte [esp + 0xa0], 0xa
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 0xa
call fcn.0040e8b6
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], edi
test eax, eax
jle 0x4079a2
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov bl, 0xf
push 0x415ae8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
lea edx, [ecx + edi*4]
mov byte [esp + 0x9c], 0xc
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 0xc
call fcn.0040e8b6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4074bd
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xa
call fcn.0040e8b6
jmp 0x40798e
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x4074e7
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xa
call fcn.0040e8b6
jmp 0x40798e
push 0x415ae8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0x415ae8
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push str._default
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov eax, dword [ebp + 4]
test eax, eax
jne 0x407753
lea edi, [ebp + 0xc]
push str.CorelDRAW_11_Bar.cfg_CN
lea eax, [esp + 0x40]
push edi
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x11
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea ecx, [esp + 0x18]
push str.CorelDRAW_11_Bar.cfg
lea edx, [esp + 0x44]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_Docker.cfg_CN
lea edx, [esp + 0x48]
push edi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x13
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea eax, [esp + 0x18]
push str.CorelDRAW_11_Docker.cfg
lea ecx, [esp + 0x4c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x14
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x48]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_GlobalItemProp.cfg_CN
lea ecx, [esp + 0x50]
push edi
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea edx, [esp + 0x18]
push str.CorelDRAW_11_GlobalItemProp.cfg
lea eax, [esp + 0x54]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_ShortCutKeys.cfg_CN
lea eax, [esp + 0x58]
push edi
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x17
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea ecx, [esp + 0x18]
push str.CorelDRAW_11_ShortCutKeys.cfg
lea edx, [esp + 0x5c]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x18
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call esi
test eax, eax
je 0x407a29
jmp 0x407957
cmp eax, 1
jne 0x407957
lea edi, [ebp + 0xc]
push str.CorelDRAW_11_Bar.cfg
lea edx, [esp + 0x60]
push edi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x19
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea eax, [esp + 0x18]
push str.CorelDRAW_11_Bar.cfg
lea ecx, [esp + 0x64]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1a
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x60]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_Docker.cfg
lea ecx, [esp + 0x68]
push edi
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x1b
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x64]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea edx, [esp + 0x18]
push str.CorelDRAW_11_Docker.cfg
lea eax, [esp + 0x6c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1c
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x68]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_GlobalItemProp.cfg
lea eax, [esp + 0x70]
push edi
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x1d
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea ecx, [esp + 0x18]
push str.CorelDRAW_11_GlobalItemProp.cfg
lea edx, [esp + 0x74]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1e
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call esi
test eax, eax
je 0x407a29
push str.CorelDRAW_11_ShortCutKeys.cfg
lea edx, [esp + 0x78]
push edi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x1f
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
lea eax, [esp + 0x18]
push str.CorelDRAW_11_ShortCutKeys.cfg
lea ecx, [esp + 0x7c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x20
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], bl
call fcn.0040e8b6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call esi
test eax, eax
je 0x407a29
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 0xe
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0xc
call fcn.0040e8b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xa
call fcn.0040e8b6
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x84]
inc edi
cmp edi, eax
mov dword [esp + 0x30], edi
jl 0x40743d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 6
call fcn.0040e8b6
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 5
call fcn.0040e92e
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 2
call fcn.0040e8b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 1
call fcn.0040e8b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call fcn.0040e8b6
lea ecx, [esp + 0x28]
mov dword [esp + 0x98], 0xffffffff
call fcn.0040e8b6
mov eax, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 0xe
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0xc
call fcn.0040e8b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xa
call fcn.0040e8b6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 6
call fcn.0040e8b6
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 5
call fcn.0040e92e
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 2
call fcn.0040e8b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 1
call fcn.0040e8b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call fcn.0040e8b6
lea ecx, [esp + 0x28]
mov dword [esp + 0x98], 0xffffffff
call fcn.0040e8b6
xor eax, eax
jmp 0x407a10