Function at 0x140071420
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r14 + 1]
mov rdx, rbx
mov rcx, rsi
call qword [case.0x1401ba071.65]
test eax, eax
jne 0x14007176d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x40], eax
mov dword [rbp - 0x40], 0x11c
mov qword [rbp - 0x34], r14
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x2c]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0xd6], r14w
xor eax, eax
mov dword [rbp + 0xd8], eax
mov r8b, 1
lea edx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, 1
lea edx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov rcx, rax
mov r8b, 3
lea edx, [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rbp - 0x3c], 6
mov word [rbp + 0xd4], r14w
mov r8, rax
lea edx, [r14 + 0x23]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140071645
cmp dword [rdi + 0x40], 0xe000024a
jne 0x140071645
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov rax, qword [rdi]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov dl, 1
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14003c8e9.0]
test al, al
jne 0x140071664
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400715db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400715d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400716f4
call fcn.140007ea0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140071631
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007162c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007174d
call fcn.140007ea0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
xor al, al
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x400
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140071680
lfence
mov edx, 0x104
lea rcx, [rbp + 0xe0]
cmp rax, rdx
jae 0x1400716a7
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400716bb
mov r9d, 0x103
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x2e6], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140071700
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400716fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400716fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140071759
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140071754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
cmp word [rbp + 0xe0], 0
je 0x140071645
lea rbx, [rbp + 0xe0]
mov r8d, 4
lea rdx, [0x1401fb348]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea rcx, [rbp + 0xe8]
test eax, eax
cmovne rcx, rbx
lea rdx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x1400717c2
mov eax, 0x8000
test word [rbp - 0x7a], ax
jne 0x1400717dd
xor r8d, r8d
lea rdx, [rbp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140071645
lea rdx, [rbp + 0xe0]
mov rcx, rdi
call fcn.140070d50
test al, al
je 0x140071645
mov al, 1
jmp 0x140071647