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.1400ed160
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, [0x140127d40]
mov edx, 0x19
call fcn.1400eea10
mov rdi, rax
test rax, rax
je 0x1400018c1
test r12, r12
je 0x1400018a7
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.1400f1cb0
test rax, rax
je 0x140001a26
mov rdi, rax
mov r14, rdx
movzx eax, byte [0x140198310]
mov edx, 0x19
xor ecx, ecx
call fcn.1400f22c0
test rax, rax
je 0x140001b48
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.1400edc50
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.1400ec050
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.1400ed650
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.1400ec050
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.1400ed650
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 [0x140198260]
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 [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140001890
call fcn.140049eb0
mov rdi, rax
jmp 0x140001890
mov qword [rbp + 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400f5c00]
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 [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x10], 0
je 0x140001a9d
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, [0x1400ecc00]
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.1400f0db0
cmp qword [rbp - 0x30], 0
je 0x140001afa
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
je 0x140001b11
mov rcx, qword [0x140198260]
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 [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400019e9
mov ecx, 1
mov edx, 0x19
call fcn.14011a520
int3