Function at 0x14000963c
Capabilities:
Check if file exists
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14006d9f8]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rdx
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
xor r14d, r14d
mov qword [rbp], r14
lea r12d, [rax + 7]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
lea edi, [rax + 5]
mov r8d, edi
lea rdx, str.file_
lea rcx, [rsp + 0x30]
call fcn.140006368
nop
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
mov r8d, edi
lea rdx, str.Files
lea rcx, [rbp - 0x70]
call fcn.140006368
nop
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x70]
mov rdx, rbx
call fcn.14000aaf0
nop
cmp qword [rbp - 0x58], 8
jb 0x140009709
mov rcx, qword [rbp - 0x70]
call fcn.14003440c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp qword [rsp + 0x48], 8
jb 0x140009728
mov rcx, qword [rsp + 0x30]
call fcn.14003440c
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 8]
je 0x140009d72
or rbx, 0xffffffffffffffff
lea r13d, [rbx + 2]
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
call fcn.14000c674
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
mov rdx, rsi
call fcn.14000ad34
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
mov r8d, 6
lea rdx, str.Source
lea rcx, [rbp - 0x30]
call fcn.140006368
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.14000be40
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14000584c
nop
cmp qword [rbp - 0x18], 8
jb 0x1400097c6
mov rcx, qword [rbp - 0x30]
call fcn.14003440c
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400098ff
cmp qword [0x1400716b0], r14
je 0x14000984b
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400026bc
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140009813
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str._ERROR___d___handle_file__not_exist_source_path__s_.
mov edx, r13d
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rsp + 0x48], 0x10
jb 0x14000984b
mov rcx, qword [rsp + 0x30]
call fcn.14003440c
nop
cmp qword [rbp - 0x38], 8
jb 0x14000985b
mov rcx, qword [rbp - 0x50]
call fcn.14003440c
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov rdi, qword [rbp - 0x80]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x14000989e
mov rdx, qword [rdi + 8]
lea rcx, [rbp - 0x80]
call fcn.14000c5d8
mov rax, qword [rbp - 0x80]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x80]
mov qword [rax], rax
mov rax, qword [rbp - 0x80]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x78], r14
jmp 0x1400098f3
cmp rbx, rdi
je 0x1400098f7
mov r8, rbx
cmp byte [rbx + 0x19], r14b
jne 0x1400098e0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x1400098c4
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r14b
je 0x1400098b6
jmp 0x1400098e0
mov rax, qword [rbx + 8]
jmp 0x1400098d7
cmp rbx, qword [rax + 0x10]
jne 0x1400098dd
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x1400098ca
mov rbx, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000c11c
cmp rbx, rdi
jne 0x1400098a3
mov rdi, qword [rbp - 0x80]
mov rcx, rdi
jmp 0x140009d58
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov r8, r12
lea rdx, str.DestDir
lea rcx, [rsp + 0x30]
call fcn.140006368
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.14000be40
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14000584c
nop
cmp qword [rsp + 0x48], 8
jb 0x140009964
mov rcx, qword [rsp + 0x30]
call fcn.14003440c
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov r8, qword [rbp - 0x60]
test r8, r8
jne 0x140009a52
cmp qword [0x1400716b0], r14
je 0x1400099aa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._ERROR___d___handle_file__dest_dir_is_empty.
mov edx, r13d
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rbp - 0x58], 8
jb 0x1400099ba
mov rcx, qword [rbp - 0x70]
call fcn.14003440c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp qword [rbp - 0x38], 8
jb 0x1400099d7
mov rcx, qword [rbp - 0x50]
call fcn.14003440c
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov rdi, qword [rbp - 0x80]
mov rbx, qword [rdi]
cmp rbx, rbx
je 0x140009874
cmp rbx, rdi
je 0x1400098f7
mov r8, rbx
cmp byte [rbx + 0x19], r14b
jne 0x140009a3a
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x140009a1e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r14b
je 0x140009a10
jmp 0x140009a3a
mov rax, qword [rbx + 8]
jmp 0x140009a31
cmp rbx, qword [rax + 0x10]
jne 0x140009a37
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x140009a24
mov rbx, rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14000c11c
cmp rbx, rdi
jne 0x1400099fd
jmp 0x1400098f3
dec r8
mov r9, rbx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140003b84
nop
mov rdx, rax
lea rcx, [0x14005ff64]
call fcn.140006d70
test al, al
sete bl
cmp qword [rbp - 0x18], 8
jb 0x140009a8a
mov rcx, qword [rbp - 0x30]
call fcn.14003440c
test bl, bl
je 0x140009a9e
lea rdx, [0x14005ff94]
lea rcx, [rbp - 0x70]
call fcn.140003954
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009be2
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call fcn.1400348a4
test eax, eax
je 0x140009be2
cmp qword [0x1400716b0], r14
je 0x140009b3a
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.1400026bc
mov rdi, rax
cmp qword [rax + 0x18], 0x10
jb 0x140009af8
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r8, [0x140060490]
mov edx, r13d
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rbp - 0x18], 0x10
jb 0x140009b3a
mov rcx, qword [rbp - 0x30]
call fcn.14003440c
nop
cmp qword [rbp - 0x58], 8
jb 0x140009b4a
mov rcx, qword [rbp - 0x70]
call fcn.14003440c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp qword [rbp - 0x38], 8
jb 0x140009b67
mov rcx, qword [rbp - 0x50]
call fcn.14003440c
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
mov rdi, qword [rbp - 0x80]
mov rbx, qword [rdi]
cmp rbx, rbx
je 0x140009874
cmp rbx, rdi
je 0x1400098f7
mov r8, rbx
cmp byte [rbx + 0x19], r14b
jne 0x140009bca
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x140009bae
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r14b
je 0x140009ba0
jmp 0x140009bca
mov rax, qword [rbx + 8]
jmp 0x140009bc1
cmp rbx, qword [rax + 0x10]
jne 0x140009bc7
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x140009bb4
mov rbx, rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.14000c11c
cmp rbx, rdi
jne 0x140009b8d
jmp 0x1400098f3
lea rcx, [rbp - 0x50]
call fcn.140002f40
lea rdx, [rbp - 0x50]
test al, al
je 0x140009c01
lea r8, [rbp - 0x70]
call fcn.14000b070
jmp 0x140009ccc
lea rcx, [rbp + 8]
call fcn.1400021d8
nop
lea r8, [rbp + 8]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.14000c6b4
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140009cac
cmp qword [0x1400716b0], r14
je 0x140009cac
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400026bc
mov rdi, rax
cmp qword [rax + 0x18], 0x10
jb 0x140009c6a
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r8, [0x1400604d0]
mov edx, r13d
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
xor r8d, r8d
mov dl, r13b
lea rcx, [rsp + 0x30]
call fcn.14000571c
nop
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x30]
call fcn.140005a88
nop
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp + 8]
call fcn.140005a88
nop
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x70]
call fcn.140005a88
nop
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x50]
call fcn.140005a88
nop
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rbx]
mov qword [rsp + 0x78], rdi
cmp rdi, rdi
jne 0x140009d27
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x80]
call fcn.14000c5d8
mov rax, qword [rbp - 0x80]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x80]
mov qword [rax], rax
mov rax, qword [rbp - 0x80]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x78], r14
jmp 0x140009d51
cmp rdi, rbx
je 0x140009d55
lea rcx, [rsp + 0x78]
call fcn.14000c064
mov r8, rdi
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14000c11c
mov rdi, qword [rsp + 0x78]
cmp rdi, rbx
jne 0x140009d2c
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call fcn.14003440c
add rsi, 0x20
cmp rsi, qword [rbp - 8]
mov rbx, 0xffffffffffffffff
jne 0x14000973e
lea rcx, [rbp - 0x10]
call fcn.14000bfec
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400326d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret