Function at 0x1400121f0
Capabilities:
Copy file
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1870]
mov eax, 0x1970
call fcn.14003b110
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1860], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 8], sil
je 0x140012242
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movdqu xmmword [rbx], xmm0
or r9, 0xffffffffffffffff
inc r9
cmp byte [rdi + r9], sil
jne 0x140012246
lea rax, [rbp + 0x60]
mov dword [rsp + 0x28], 0x400
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x3ff
mov r14d, 0x800
cmp eax, ecx
cmova eax, ecx
add rax, rax
cmp rax, r14
jae 0x140012496
xor edx, edx
mov word [rbp + rax + 0x60], si
mov rcx, rdi
call fcn.140029be0
test eax, eax
jne 0x1400122f8
xor edx, edx
lea rcx, [rbp + 0x860]
mov r8d, 0x1000
call fcn.14003b4f0
lea r8, [rbp + 0x60]
mov edx, r14d
lea rcx, [rbp + 0x860]
call fcn.140029ce4
lea r8, str._backup
mov edx, r14d
lea rcx, [rbp + 0x860]
call fcn.140029ce4
xor r8d, r8d
lea rdx, [rbp + 0x860]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14001249c
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x60]
mov dword [rsp + 0x28], 0x80000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400123e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x140046d50]
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [0x140046690]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
mov dword [rsp + 0x40], eax
mov qword [rbp + 0x50], 0x16
call fcn.140002058
xor al, al
mov rcx, qword [rbp + 0x1860]
xor rcx, rsp
call fcn.140019540
lea r11, [rsp + 0x1970]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001240b
mov eax, dword [rsp + 0x48]
mov dword [rbx + 0xc], eax
mov al, 1
mov qword [rbx], rdi
mov byte [rbx + 8], 1
jmp 0x1400123bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x140047380]
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [str.372___]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
mov dword [rsp + 0x40], eax
mov qword [rbp + 0x50], 0x19
call fcn.140002294
int3
call fcn.140019674
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x140046fc0]
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [str.02ad8]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
mov dword [rsp + 0x40], eax
mov qword [rbp + 0x50], 0x15
call fcn.140002294
int3