Function at 0x100007a40
Capabilities:
Check if file exists
Copy file
Get file size
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x6e8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov rax, qword [0x10000e360]
mov qword [rsp + 0x6b0], rax
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x70]
mov eax, dword [0x1000037c4]
mov dword [rcx], eax
movzx eax, word [0x1000037c8]
mov word [rcx + 4], ax
movzx eax, byte [0x1000037ca]
mov byte [rcx + 6], al
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100007eec
cmp dword [rbx + 0x10], 0
je 0x100007eea
cmp dword [rbx + 4], 0
je 0x100007eea
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xor r12b, r12b
mov word [rsp + 0x4a0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x4a2]
call sub.msvcrt.dll_memset
mov word [rsp + 0x80], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x82]
call sub.msvcrt.dll_memset
call fcn.100006a60
test al, al
je 0x100007b23
lea edx, [r13 + 1]
mov rcx, rsi
call fcn.100006e30
call fcn.100006a20
test al, al
je 0x100007b34
mov rcx, rsi
call fcn.100006950
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rsi
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1000024d0]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r8d, r8d
lea rdx, [rsp + 0x4a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100007b8e
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003798]
call sub.MFC42u.dll_Ordinal_1499
mov rdx, rsi
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x100002520]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100007be4
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003760]
call sub.MFC42u.dll_Ordinal_1499
xor al, al
jmp 0x100007eec
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x100007c31
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003738]
call sub.MFC42u.dll_Ordinal_1499
xor al, al
jmp 0x100007eec
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [rbx + 4], eax
jbe 0x100007c60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003700]
call sub.MFC42u.dll_Ordinal_1499
jmp 0x100007ee5
lea edx, [rax - 7]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 6
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbx + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
je 0x100007cfc
mov edx, dword [rbx + 8]
test edx, edx
je 0x100007cfc
cmp dword [rbx + 0x14], r13d
jbe 0x100007cfc
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + 0x38]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rbx + 0x14]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x100007ed4
lea rcx, [rsp + 0x80]
call fcn.100007810
test eax, eax
jne 0x100007ec1
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov word [rsp + 0x290], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x292]
call sub.msvcrt.dll_memset
mov rdx, rsi
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_AfxDeleteObject
mov dx, 0x5c
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_COleControlContainer::XOleIPFrame::SetMenu
mov ebx, eax
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDialog::OnCommandHelp
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov r11, qword [rsp + 0x48]
mov r8d, dword [r11 - 8]
sub r8d, ebx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CFormView::SetOccDialogInfo
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1000036e8]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100007e5a
call fcn.100006a20
test al, al
je 0x100007e41
lea rcx, [rsp + 0x290]
call fcn.100006950
xor r8d, r8d
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.100006d00
test al, al
je 0x100007e8d
mov r12b, 1
cmp dword [0x10000e900], 0
jne 0x100007e9f
xor r8d, r8d
xor edx, edx
lea rcx, [0x1000036c8]
call sub.MFC42u.dll_Ordinal_1499
jmp 0x100007e9f
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003680]
call sub.MFC42u.dll_Ordinal_1499
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x100007ee5
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003650]
call sub.MFC42u.dll_Ordinal_1499
jmp 0x100007ee5
xor r8d, r8d
xor edx, edx
lea rcx, [0x100003620]
call sub.MFC42u.dll_Ordinal_1499
mov al, r12b
jmp 0x100007eec
xor al, al
mov rcx, qword [rsp + 0x6b0]
call fcn.10000afa0
mov rbx, qword [rsp + 0x700]
mov rbp, qword [rsp + 0x708]
mov rsi, qword [rsp + 0x6e0]
mov rdi, qword [rsp + 0x6d8]
mov r12, qword [rsp + 0x6d0]
mov r13, qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips]
add rsp, 0x6e8
ret