Function at 0x140054bf0
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x38], rdx
mov sil, 1
cmp qword [rdx + 0x18], 8
jb 0x140054c37
mov rdx, qword [rdx]
xor r12d, r12d
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 7
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140018360
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov r9d, 0xffffffff
lea r8d, [r12 + 3]
lea rdx, [rbp - 0x30]
call fcn.1401ab8d4
lea r13d, [r12 + 1]
test eax, eax
jne 0x140054cb8
mov ecx, dword [rbp - 0x20]
bt ecx, 0xa
jae 0x140054caa
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa000000c
jne 0x140054c9c
lea ebx, [r12 + 4]
jmp 0x140054cdd
cmp eax, 0xa0000003
jne 0x140054caa
mov ebx, 0xa
jmp 0x140054cdd
movzx ebx, cl
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x140054cdd
sub eax, 2
je 0x140054cda
sub eax, r13d
je 0x140054cda
sub eax, 0x32
je 0x140054cda
cmp eax, 0x46
je 0x140054cda
lea rcx, [rbp - 0x60]
call fcn.1400272a0
jmp 0x140054ec9
mov ebx, r13d
lea rcx, [rbp - 0x60]
call fcn.1400272a0
cmp ebx, r13d
je 0x140054ec9
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054cfc
mov rdx, qword [rdi]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 7
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140018360
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call fcn.1401abcf0
mov rbx, rax
lea rcx, [rbp - 0x60]
call fcn.1400272a0
test bl, bl
jne 0x140054ec9
xor sil, sil
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054d50
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054d66
mov rcx, qword [rdi]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140054dc7
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054d7f
mov rdx, qword [rdi]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 7
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140018360
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call fcn.1401abcf0
mov rbx, rax
lea rcx, [rbp - 0x60]
call fcn.1400272a0
test bl, bl
je 0x140054dc7
mov sil, 1
jmp 0x140054ec9
mov rax, qword [r14]
cmp byte [rax], 0
je 0x140054ec9
mov rax, qword [rdi + 0x10]
mov r11, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054de4
mov r11, qword [rdi]
cmp rax, 0x14
jb 0x140054ea6
add rax, 0xffffffffffffffed
lea rbx, [r11 + rax*2]
mov rax, r11
lea r15, [0x140237da0]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
mov rdx, r12
je 0x140054e2a
cmp word [rax], 0x41
je 0x140054e27
cmp rcx, 1
je 0x140054e2a
dec rcx
add rax, 2
cmp word [rax], 0x41
jne 0x140054e14
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140054ea6
mov r9d, 0x14
mov rcx, r15
movzx edx, word [rdx]
mov r8d, MsiGetPropertyW
cmp dx, r8w
jb 0x140054e72
mov r10, rax
sub r10, r15
cmp dx, r8w
ja 0x140054e72
cmp r9, 1
je 0x140054e78
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x140054e54
add rax, 2
jmp 0x140054e00
sub rax, r11
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140054ea6
mov rax, qword [r14 + 8]
cmp dword [rax + 0xf70], 4
je 0x140054ea6
call fcn.140132690
test al, al
jne 0x140054ea6
mov rcx, rdi
call fcn.1400272a0
mov al, 1
jmp 0x140054ed5
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140054eb3
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
movzx esi, sil
test eax, eax
cmovne esi, r13d
mov rcx, rdi
call fcn.1400272a0
movzx eax, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret