Function at 0x140248aa0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x270
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov eax, dword [0x140c47dd0]
mov rdi, rcx
test al, 1
jne 0x140248aee
or eax, 1
mov dword [0x140c47dd0], eax
call fcn.140055490
mov rcx, rax
mov qword [0x140c47dc8], rax
jmp 0x140248af5
mov rcx, qword [0x140c47dc8]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
mov r12, rax
mov rdx, qword [rax]
call qword [rdx + 0x18]
xor ebp, ebp
test rax, rax
mov rbx, rax
je 0x140248c8f
nop
nop
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xd0]
test eax, eax
je 0x140248c79
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, rax
mov rsi, rax
mov rdx, qword [rax]
call qword [rdx + 0x30]
test rax, rax
mov rbx, rax
je 0x140248c79
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x48]
cmp eax, 1
je 0x140248b7e
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x48]
test eax, eax
je 0x140248b7e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
cmp eax, 3
jne 0x140248b8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
cmp ax, 0x2a
jne 0x140248ba3
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
test rax, rax
mov rbx, rax
jne 0x140248b55
jmp 0x140248c79
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
mov rcx, qword [rdi + 8]
test rcx, rcx
movzx r11d, ax
mov byte [rsp + 0x20], al
jne 0x140248bc2
mov rdx, rbp
jmp 0x140248bc9
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
test rcx, rcx
je 0x140248bef
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rdx, rax
jae 0x140248bef
mov rax, qword [rdi + 0x10]
add rax, 1
mov byte [rax - 1], r11b
mov qword [rdi + 0x10], rax
jmp 0x140248c79
mov rbx, qword [rdi + 0x10]
cmp rcx, rbx
jbe 0x140248bfe
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rdi + 8]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
test rsi, rsi
je 0x140248c2d
mov rcx, qword [rdi + 0x10]
mov rax, rcx
sub rax, rsi
je 0x140248c2d
cmp rsi, rcx
jbe 0x140248c28
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rbx, rsi
jmp 0x140248c30
mov rbx, rbp
movaps xmm0, xmmword [rsp + 0x30]
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rcx, rdi
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140008900
mov rsi, qword [rdi + 8]
cmp rsi, qword [rdi + 0x10]
jbe 0x140248c63
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea rax, [rsi + rbx]
cmp rax, qword [rdi + 0x10]
ja 0x140248c73
cmp rax, qword [rdi + 8]
jae 0x140248c79
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
test rax, rax
mov rbx, rax
jne 0x140248b20
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x160], bpl
call sub.ntdll.dll_memset
mov rcx, rdi
mov esi, ebp
mov rbx, rbp
call fcn.1400088e0
test rax, rax
je 0x140248d23
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140248cd5
mov rax, qword [rdi + 0x10]
sub rax, rcx
cmp rbx, rax
jb 0x140248cdb
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [rdi + 8]
lea rdx, [0x1403749b0]
lea rcx, [rsp + 0x160]
movsx r8d, byte [rax + rbx]
call qword [sym.imp.ntdll.dll_sprintf]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140248d23
mov rcx, rdi
add esi, 1
add rbx, 1
call fcn.1400088e0
movsxd rcx, esi
cmp rcx, rax
jb 0x140248cc0
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x60], bpl
call sub.ntdll.dll_memset
mov rcx, rdi
mov rbx, rbp
call fcn.1400088e0
test rax, rax
je 0x140248dc3
nop
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140248d65
mov rax, qword [rdi + 0x10]
sub rax, rcx
cmp rbx, rax
jb 0x140248d6b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [rdi + 8]
lea rdx, [0x1403749c0]
lea rcx, [rsp + 0x60]
movsx r8d, byte [rax + rbx]
call qword [sym.imp.ntdll.dll_sprintf]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140248dac
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x160]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rcx, rdi
add ebp, 1
add rbx, 1
call fcn.1400088e0
movsxd rcx, ebp
cmp rcx, rax
jb 0x140248d50
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret