Function at 0x140003768
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14000c338]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400040cc
xor ebx, ebx
test eax, eax
js 0x14000395a
lea rcx, str.Taken_ownership__of_the_driver_JS_constraint_file._n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
lea esi, [rbx + 7]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
lea rdx, str.takeown__f
lea rcx, [rbp - 0x80]
call fcn.140003028
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400039c8
lea rcx, [rbp - 0x80]
call fcn.140003c48
lea rcx, str.Changing__access_permission_for_driver_JS_constraint_file._n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea rdx, str.icacls
lea rcx, [rsp + 0x58]
call fcn.140003028
nop
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400039c8
lea rdx, str.__GRANT_ADMINISTRATORS:F
lea rcx, [rsp + 0x58]
call fcn.1400039c8
lea rcx, [rsp + 0x58]
call fcn.140003c48
lea rcx, str.Copying_given_JS_file_to_the_destination_driver_JS_file._n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x14000388a
mov rdi, qword [rdi]
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400038d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
js 0x14000398e
jmp 0x1400038ec
lea rcx, str.Copying_given_JS_file_succeeded._n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x70], 8
jb 0x140003905
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rbp - 0x68], 8
jb 0x14000392b
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140006b00
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x20], 0x19
lea r9, str.printscanprintwdk_toolsjsconstraintdebug_replacejsfile.cpp
lea r8, str.Failed_to_get_JavaScritpFile_path_from_the_driver
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400010b4
lea rdx, [0x14000ad38]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x20], 0x36
lea r9, str.printscanprintwdk_toolsjsconstraintdebug_replacejsfile.cpp
lea r8, str.CopyFile_Command_failed
lea rcx, [rsp + 0x38]
call fcn.1400010b4
lea rdx, [0x14000ad38]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3