Function at 0x402700
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42da1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x350
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00427672
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402f90
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00427684
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x144]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402789
push 0xffffffffffffffff
push eax
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
jmp 0x402f18
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x144]
push eax
push 0
push 0x430124
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4027b7
push 0xffffffffffffffff
push eax
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
jmp 0x402f18
lea ecx, [ebp - 0x20]
call fcn.00427672
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00427684
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
call fcn.00427672
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00427672
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00427684
push 0x2e
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReverseFind
or edi, 0xffffffff
cmp eax, edi
jne 0x402862
push edi
push 0
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
jmp 0x402f2b
inc eax
lea ecx, [ebp - 0x3c]
push eax
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push str._.3d
lea edx, [ebp - 0x24]
mov bl, 7
push eax
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00427684
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
call fcn.00427684
mov ecx, dword [ebp - 0x14]
mov esi, 1
push esi
lea edx, [ebp - 0x14]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x360]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x402918
cmp esi, 0x3e8
jge 0x40291e
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x14]
push edx
inc esi
call fcn.00427684
mov eax, dword [ebp - 0x14]
push esi
lea ecx, [ebp - 0x14]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea edx, [ebp - 0x360]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
jne 0x4028de
cmp esi, 0x3e8
jne 0x402962
push edi
push 0
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
jmp 0x402f2b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4029b7
push edi
push eax
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
jmp 0x402f2b
push 0x14
mov byte [ebp - 4], 9
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 0xa
je 0x4029e2
mov eax, dword [ebp - 0x1c]
push 0x4000
push eax
call sub.MFC42.DLL_CStdioFile::CStdioFile
jmp 0x4029e4
xor eax, eax
mov dword [ebp - 4], 6
push 0x14
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xe
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 0xf
je 0x402a1e
mov edx, dword [ebp - 0x20]
push 0x1001
push edx
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov esi, eax
jmp 0x402a20
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 6
call fcn.00427672
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
call fcn.00427672
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00401780
mov edi, eax
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x38]
push edx
mov ecx, eax
call fcn.00402f60
push edi
push eax
lea eax, [ebp - 0x40]
mov bl, 0x18
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.00427684
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
call fcn.00427672
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.00402f60
lea edx, [ebp + 8]
mov bl, 0x1b
push edx
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
call fcn.00427684
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x1d
mov edx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call dword [edx + 0x60]
test eax, eax
je 0x402b5a
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x402b42
mov edx, dword [esi]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, esi
mov edi, dword [edx + 0x5c]
call edi
push 0x430118
mov ecx, esi
call edi
jmp 0x402b0b
mov ecx, dword [esi]
mov edx, dword [ebp - 0x34]
push edx
mov edi, dword [ecx + 0x5c]
mov ecx, esi
call edi
push 0x430118
mov ecx, esi
call edi
jmp 0x402b0b
mov edi, dword [ebx]
mov dword [ebp - 4], 0x1a
mov ecx, ebx
mov byte [ebp - 4], 0x23
call dword [edi + 0x54]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], eax
call dword [eax + 0x54]
mov dword [ebp - 4], 0x1a
mov byte [ebp - 4], 0x29
test ebx, ebx
je 0x402b8c
push 1
mov ecx, ebx
call dword [edi + 4]
test esi, esi
je 0x402b9a
mov eax, dword [ebp - 0x18]
push 1
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov esi, 0x1a
mov dword [ebp - 4], esi
push ecx
mov byte [ebp - 4], 0x2b
call sub.MFC42.DLL_CFile::Remove
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push edx
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 4], 0x2f
call sub.MFC42.DLL_CFile::Rename
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], esi
push ecx
mov byte [ebp - 4], 0x33
call sub.MFC42.DLL_CFile::Remove
mov edx, dword [ebp - 0x20]
push edx
call sub.MFC42.DLL_CFile::Remove
jmp 0x402bec
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret