Function at 0x14001d640
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x148], rbx
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov rdi, rcx
mov qword [rbp + 0x1f], 7
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov word [rbp + 7], r15w
mov qword [rbp - 1], 7
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
xor r9d, r9d
mov r8, rdx
lea rdx, [rbp + 7]
add rcx, 0xfffffffffffffff0
call fcn.1400181b0
test al, al
je 0x14001d80f
xor r9d, r9d
mov r8, rsi
lea rdx, [rbp - 0x19]
lea rcx, [rdi - 0x10]
call fcn.1400181b0
test al, al
je 0x14001d80f
mov rax, qword [rdi - 8]
movsxd r9, dword [rax + 4]
add r9, rdi
lea r8, [rbp - 0x19]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.14002f2e0
nop
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rdi]
test rax, rax
je 0x14001d70b
cmp dword [rax + 4], r15d
jne 0x14001d801
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14001d7e9
movabs rax, 0xf35f747b3b21fa14
mov qword [rsp + 0x30], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x38], rax
lea rax, str.winnt_dir::Rename
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x30b
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x29], xmm1
lea rcx, [0x1400569ac]
call fcn.140005930
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40009
lea r9, [rbp + 7]
lea r8, [0x14005af48]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x69]
call fcn.1400147a0
nop
mov rcx, qword [rdi - 8]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14001d801
nop dword [rax + rax]
lock dec dword [rcx]
jne 0x14001d801
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d7d0
jmp 0x14001d801
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
add rcx, rdi
lea rdx, [0x14007bf60]
call fcn.1400064c0
nop
lea rcx, [rbp - 0x79]
call fcn.14002f6c0
jmp 0x14001d8e1
movabs rax, 0xf35f747b3b21fa08
mov qword [rsp + 0x30], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x38], rax
lea rax, str.winnt_dir::Rename
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x2ff
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x49], xmm1
lea rcx, [0x1400569ac]
call fcn.140005930
mov r9, rax
mov r8d, 0x40009
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x71]
call fcn.140033ba0
nop
mov rcx, qword [rdi - 8]
movsxd r14, dword [rcx + 4]
mov rsi, qword [rax]
test rsi, rsi
je 0x14001d886
lock inc dword [rsi]
mov rcx, qword [r14 + rdi]
test rcx, rcx
je 0x14001d8a7
nop
lock dec dword [rcx]
jne 0x14001d8a7
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d890
mov qword [r14 + rdi], rsi
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14001d8cb
lock dec dword [rcx]
jne 0x14001d8cb
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d8b4
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, 0x7b
call fcn.140033e20
nop
cmp qword [rbp - 1], 8
jb 0x14001d8f1
mov rcx, qword [rbp - 0x19]
call fcn.1400376e4
mov qword [rbp - 1], 7
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
cmp qword [rbp + 0x1f], 8
jb 0x14001d912
mov rcx, qword [rbp + 7]
call fcn.1400376e4
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140038d80
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret