Function at 0x140001830
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
lea rcx, [rbp + 0x18]
call fcn.1400ebb50
mov r12, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x20]
movabs r13, 0x8000000000000000
cmp r12, r13
je 0x1400018aa
mov rbx, qword [rbp + 0x28]
lea rcx, [0x140126d40]
mov edx, 0x19
call fcn.1400ed400
mov rdi, rax
test rax, rax
je 0x1400018c1
test r12, r12
je 0x1400018a7
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, rdi
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
mov rdx, rbx
call fcn.1400f0680
test rax, rax
je 0x140001a26
mov rdi, rax
mov r14, rdx
movzx eax, byte [0x140196310]
mov edx, 0x19
xor ecx, ecx
call fcn.1400f0c90
test rax, rax
je 0x140001b48
movups xmm0, xmmword [0x140126d49]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x140126d40]
movups xmmword [rax], xmm0
mov qword [rbp + 0x18], 0x19
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x19
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x18]
mov rdx, rdi
mov r8, r14
call fcn.1400ec640
movups xmm0, xmmword [rbp + 0x18]
movups xmm1, xmmword [rbp + 0x28]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x30], xmm0
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x20]
lea rcx, [rbp - 8]
mov rdx, rsi
mov r8, rbx
call fcn.1400eaa40
mov rax, qword [rbp - 8]
mov rdi, qword [rbp]
cmp rax, r13
je 0x140001a03
mov rcx, qword [rbp + 8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x18]
call fcn.1400ec040
mov rax, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rax, r13
je 0x140001a03
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x48], rdi
lea rdi, [rbp - 8]
mov rcx, rdi
mov rdx, r14
mov r8, r15
call fcn.1400eaa40
mov rax, qword [rbp - 8]
mov rbx, qword [rbp]
cmp rax, r13
je 0x1400019e6
mov rcx, qword [rbp + 8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x18]
call fcn.1400ec040
mov r14, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x40]
cmp r14, r13
jne 0x140001a33
mov rdi, rbx
cmp qword [rbp + 0x10], 0
mov r8, qword [rbp + 0x48]
je 0x140001a03
mov rcx, qword [0x140196260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x30], 0
je 0x140001890
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x140196260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140001890
call fcn.14004a5c0
mov rdi, rax
jmp 0x140001890
mov qword [rbp + 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400f45d0]
lea r9, [rbp + 0x18]
mov rcx, qword [rbp + 0x48]
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140001b18
test r14, r14
je 0x140001a83
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x10], 0
je 0x140001a9d
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, qword [rbp + 0x48]
call qword [sym.imp.kernel32.dll_HeapFree]
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
lea rax, [0x1400eb5f0]
mov qword [rbp], rax
lea rax, [0x140126d90]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], 2
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], 1
lea rcx, [rbp + 0x18]
call fcn.1400ef780
cmp qword [rbp - 0x30], 0
je 0x140001afa
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x140196260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
je 0x140001b11
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
xor esi, esi
jmp 0x1400018aa
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test r14, r14
je 0x1400019e9
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400019e9
mov ecx, 1
mov edx, 0x19
call fcn.140119070
int3