Function at 0x140001850
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.1400ed060
mov r12, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x20]
movabs r13, 0x8000000000000000
cmp r12, r13
je 0x1400018ca
mov rbx, qword [rbp + 0x28]
lea rcx, [0x140127d40]
mov edx, 0x19
call fcn.1400ee910
mov rdi, rax
test rax, rax
je 0x1400018e1
test r12, r12
je 0x1400018c7
mov rcx, qword [0x140198260]
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.1400f1bb0
test rax, rax
je 0x140001a46
mov rdi, rax
mov r14, rdx
movzx eax, byte [0x140198310]
mov edx, 0x19
xor ecx, ecx
call fcn.1400f21c0
test rax, rax
je 0x140001b68
movups xmm0, xmmword [0x140127d49]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x140127d40]
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.1400edb50
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.1400ebf50
mov rax, qword [rbp - 8]
mov rdi, qword [rbp]
cmp rax, r13
je 0x140001a23
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.1400ed550
mov rax, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rax, r13
je 0x140001a23
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.1400ebf50
mov rax, qword [rbp - 8]
mov rbx, qword [rbp]
cmp rax, r13
je 0x140001a06
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.1400ed550
mov r14, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x40]
cmp r14, r13
jne 0x140001a53
mov rdi, rbx
cmp qword [rbp + 0x10], 0
mov r8, qword [rbp + 0x48]
je 0x140001a23
mov rcx, qword [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x30], 0
je 0x1400018b0
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400018b0
call fcn.14001b670
mov rdi, rax
jmp 0x1400018b0
mov qword [rbp + 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400f5b00]
lea r9, [rbp + 0x18]
mov rcx, qword [rbp + 0x48]
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140001b38
test r14, r14
je 0x140001aa3
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x10], 0
je 0x140001abd
mov rcx, qword [0x140198260]
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, [0x1400ecb00]
mov qword [rbp], rax
lea rax, [0x140127d90]
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.1400f0cb0
cmp qword [rbp - 0x30], 0
je 0x140001b1a
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
je 0x140001b31
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
xor esi, esi
jmp 0x1400018ca
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test r14, r14
je 0x140001a09
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140001a09
mov ecx, 1
mov edx, 0x19
call fcn.14011a520
int3