Function at 0x1400d2ed4
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x4f80]
mov eax, 0x5080
call fcn.140001a50
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50b8], rbx
mov qword [rsp + 0x50c0], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f70], rax
mov rbx, rcx
mov r12d, 0x800
mov r8d, r12d
lea rdx, [rbp + 0x3f70]
call qword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
dec eax
lea edi, [r12 - 2]
cmp eax, edi
ja 0x1400d3188
mov r8d, r12d
lea rdx, [rbp + 0x2f70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x1400d3188
lea rcx, [rbp + 0x3f70]
call fcn.1400d4b6c
mov rsi, rax
lea rcx, [rbp + 0x2f70]
call fcn.1400d4b6c
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x1400d3188
or r15, 0xffffffffffffffff
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, rsi
mov edx, 0x1001
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_CompareStringW]
sub eax, 2
je 0x1400d3188
mov rcx, rbx
call fcn.1400d4b6c
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
mov r9d, r15d
mov r8, rax
mov edx, 0x1001
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_CompareStringW]
sub eax, 2
jne 0x1400d3188
movzx eax, r14w
mov word [rbp + 0xf70], ax
mov edi, r14d
test ax, ax
jne 0x1400d3074
mov r8d, 0x7ff
mov rdx, rbx
lea rcx, [rbp + 0xf70]
call qword [sym.imp.msvcrt.dll_wcsncpy]
mov word [rbp + 0x1f6e], r14w
lea rcx, [rbp + 0xf70]
call fcn.1400d4b6c
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.1400cae10
lea rcx, [rbp + 0xf70]
call fcn.1400d3ec0
cmp eax, 0xffffffff
je 0x1400d3059
mov eax, r14d
mov word [rbp + 0xf70], ax
jmp 0x1400d3060
movzx eax, word [rbp + 0xf70]
add edi, 0x7b
cmp edi, 0x2710
jl 0x1400d2ff8
test ax, ax
je 0x1400d3188
mov r8d, 0x7ff
mov rdx, rbx
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.msvcrt.dll_wcsncpy]
mov word [rbp + 0x2f6e], r14w
mov r8, r12
mov rdx, rsi
lea rcx, [rbp + 0x1f70]
call fcn.1400d4d40
lea rdx, [rbp + 0xf70]
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x1400d3188
lea rax, vtable.File.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
mov word [rsp + 0x66], r14w
mov dword [rsp + 0x59], 0x1010000
mov byte [rsp + 0x50], r14b
mov dword [rsp + 0x54], r14d
mov byte [rsp + 0x58], r14b
mov dword [rbp + 0xf68], r14d
mov byte [rsp + 0x64], r14b
mov byte [rsp + 0x5d], r14b
mov dword [rsp + 0x60], 0x100
mov dil, r14b
mov rcx, rbx
call fcn.1400d3ec0
cmp eax, 0xffffffff
jne 0x1400d312d
mov r8d, reloc.SHELL32.dll_ILClone
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400d33d8
mov dil, al
lea rdx, [rbp + 0x1f70]
lea rcx, [rbp + 0xf70]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
test dil, dil
je 0x1400d317a
lea rcx, [rsp + 0x40]
call fcn.1400d3524
cmp dword [rsp + 0x54], r14d
jne 0x1400d317a
cmp qword [rsp + 0x48], r15
je 0x1400d3168
lea rcx, [rsp + 0x40]
call fcn.1400d3524
cmp byte [rsp + 0x5b], r14b
je 0x1400d317a
lea rcx, [rsp + 0x66]
call fcn.1400d3fc8
nop
lea rcx, [rsp + 0x40]
call fcn.1400d31e8
mov al, 1
jmp 0x1400d318a
xor al, al
mov rcx, qword [rbp + 0x4f70]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x5080]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret