Function at 0x140001850
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
lea rcx, [rbp + 0x10]
call fcn.1400f3400
mov r12, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rax, r12
neg rax
jo 0x1400018c1
mov rbx, qword [rbp + 0x20]
lea rcx, [0x14012fd00]
mov edx, 0x19
call fcn.1400f4cc0
mov rdi, rax
test rax, rax
je 0x1400018d6
test r12, r12
je 0x1400018be
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, rdi
mov rax, rsi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
mov rdx, rbx
call fcn.1400f8400
test rax, rax
je 0x140001a47
mov rdi, rax
mov r14, rdx
movzx eax, byte [0x14019f308]
mov edx, 0x19
xor ecx, ecx
call fcn.1400f8ae0
test rax, rax
je 0x140001b75
movups xmm0, xmmword [0x14012fd09]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x14012fd00]
movups xmmword [rax], xmm0
mov qword [rbp + 0x10], 0x19
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], 0x19
mov byte [rbp + 0x28], 0
lea rcx, [rbp + 0x10]
mov rdx, rdi
mov r8, r14
call fcn.1400f3f00
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x30], xmm0
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
mov rdx, rsi
mov r8, rbx
call fcn.1400f2190
mov rax, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x140001a24
mov rcx, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x10]
call case.0x1400f40ab.446
mov rcx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
mov rax, rcx
neg rax
jo 0x140001a24
mov qword [rbp + 8], rcx
mov qword [rbp + 0x40], rdi
lea rdi, [rbp - 0x10]
mov rcx, rdi
mov rdx, r14
mov r8, r15
call fcn.1400f2190
mov rax, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x140001a07
mov rcx, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x10]
call case.0x1400f40ab.446
mov r14, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x40]
mov rax, r14
neg rax
jno 0x140001a54
mov r8, qword [rbp + 0x40]
mov rdi, rbx
cmp qword [rbp + 8], 0
je 0x140001a24
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x30], 0
je 0x1400018a7
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400018a7
call fcn.1400e2a20
mov rdi, rax
jmp 0x1400018a7
mov qword [rbp + 0x10], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400fc630]
lea r9, [rbp + 0x10]
mov rcx, qword [rbp + 0x40]
mov r15, rcx
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140001b3b
test r14, r14
je 0x140001aa7
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 8], 0
je 0x140001ac0
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [0x1400f2d40]
mov qword [rbp - 8], rax
lea rax, [0x14012fd50]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 2
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], 1
lea rcx, [rbp + 0x10]
call fcn.1400f7560
cmp qword [rbp - 0x30], 0
je 0x140001b1d
mov r8, qword [rbp - 0x28]
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
je 0x140001b34
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
xor esi, esi
jmp 0x1400018c1
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test r14, r14
je 0x140001b62
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, r15
cmp qword [rbp + 8], 0
jne 0x140001a15
jmp 0x140001a24
mov ecx, 1
mov edx, 0x19
call fcn.140122170
int3