Function at 0x408020
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x40feb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x415ae8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
xor ebp, ebp
push 0x415ae8
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], ebp
call sub.MFC42.DLL_CString::CString
push 0x415ae8
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
push str.SoftwareCorelCorelDraw13.0CorelDRAW
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 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 + 0x10]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x74], 3
call sub.MFC42.DLL_CString::CString_1
push SysReAllocString
mov byte [esp + 0x74], 2
call fcn.00401970
add esp, 0x10
cmp eax, ebp
je 0x40851f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.004012f0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 2
call fcn.0040e8b6
push 0x415ae8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CStringArray::CStringArray
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CStringArray::SetSize
push 3
push 0x415028
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 6
call fcn.0040e8b6
lea ecx, [esp + 0x18]
push 0x415028
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator
push 0x415558
push eax
lea eax, [esp + 0x28]
mov bl, 8
push eax
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 6
call fcn.0040e8b6
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00406f80
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, ebp
je 0x408503
push 0x415ae8
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x415028
mov byte [esp + 0x6c], 0xa
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xa
call fcn.0040e8b6
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x40845c
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov bl, 0xf
push 0x415ae8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
lea edx, [ecx + ebp*4]
mov byte [esp + 0x68], 0xc
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x64], 0xc
call fcn.0040e8b6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x408441
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x408441
push 0x415ae8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push 0x415ae8
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push str._default
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
mov eax, dword [edi + 4]
test eax, eax
jne 0x4083ab
lea eax, [edi + 0xc]
push str.DrawUIConfig_13.xml_CN
lea ecx, [esp + 0x3c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0x11
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
lea edx, [esp + 0x14]
push str.DrawUIConfig.xml
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x4084cb
jmp 0x408425
cmp eax, 1
jne 0x408425
lea eax, [edi + 0xc]
push str.DrawUIConfig_13.xml
lea ecx, [esp + 0x44]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0x13
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
lea edx, [esp + 0x14]
push str.DrawUIConfig.xml
lea eax, [esp + 0x48]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0x14
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x64], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x4084cb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xe
call fcn.0040e8b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xc
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0xa
call fcn.0040e8b6
mov eax, dword [esp + 0x50]
inc ebp
cmp ebp, eax
jl 0x40825e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 6
call fcn.0040e8b6
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 5
call fcn.0040e92e
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.0040e8b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call fcn.0040e8b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.0040e8b6
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040e8b6
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xe
call fcn.0040e8b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xc
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0xa
call fcn.0040e8b6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 6
call fcn.0040e8b6
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 5
call fcn.0040e92e
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.0040e8b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call fcn.0040e8b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.0040e8b6
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040e8b6
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret