Function at 0x3a98db0f0
Capabilities:
Set file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov eax, dword [r8 + 0x130]
mov qword [rbp + 0x50], rcx
mov rbx, rdx
mov r15, r8
test eax, eax
jne 0x3a98db138
xor eax, eax
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx r12d, word [rdx + 0x4a]
mov eax, 2
cmp r12, rax
cmovae rax, r12
lea r14, [rax + 6]
add rax, 0x15
and eax, 0x1fff0
call fcn.3a98e4420
xor edx, edx
xor edi, edi
sub rsp, rax
mov r8, r14
lea rsi, [rsp + 0x47]
mov r13, rsi
and rsi, 0xfffffffffffffff8
mov rcx, rsi
shr r13, 3
call fcn.3a98f1988
mov rdx, qword [rbx + 0x40]
lea rcx, [rsi + 4]
mov r8, r12
mov dword [r13*8], r12d
call sub.msvcrt.dll_memcpy
mov dword [rbp - 0x34], r14d
lea r14, [r15 + 0x220]
mov dword [rsp + 0x20], 0x28
mov r9d, dword [rbp - 0x34]
mov r8, rsi
mov rdx, r14
mov rcx, qword [rbp + 0x50]
call sub.ntdll.dll_NtSetInformationFile
mov r10d, eax
test eax, eax
jns 0x3a98db120
cmp eax, 0xc000019f
je 0x3a98db210
cmp eax, 0xc0000035
je 0x3a98db308
mov r13d, r10d
test byte [r15 + 0x19], 0x40
jne 0x3a98db479
cmp word [rbx + 0x4a], 0
je 0x3a98db200
add dword [r15 + 0x9490], 1
jmp 0x3a98db120
add dword [r15 + 0x9494], 1
jmp 0x3a98db120
cmp word [rbx + 0x4a], 0
je 0x3a98db120
cmp byte [r15 + 0x94b0], 0
jne 0x3a98db1d8
mov byte [r15 + 0x94b0], 1
lea r12, [rbp - 0x1e]
mov rcx, qword [r15 + 8]
mov rdx, r12
mov dword [rbp - 0x40], eax
call fcn.3a98da8a0
test eax, eax
jne 0x3a98db122
xor r9d, r9d
mov rcx, r12
mov qword [rsp + 0x30], 0
mov r8d, 7
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r10d, dword [rbp - 0x40]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x3a98db2e5
lea rax, [rbp - 0x24]
lea r8, [rbp - 0x10]
mov edx, 0x90238
mov rcx, r12
movdqu xmm0, xmmword [0x3a9976520]
mov r9d, 0x10
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r12
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
mov r10d, dword [rbp - 0x40]
jne 0x3a98db1a0
mov r13d, r10d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp - 0x16]
lea rdx, str.Failed_to_enable_short_name_support_on__ls
mov ecx, eax
call fcn.3a98f48f9
jmp 0x3a98db1db
movzx r8d, word [rbx + 0x4a]
test r8w, r8w
sete al
or dil, al
jne 0x3a98db1d8
mov qword [rbp - 0x40], rsp
sub rsp, 0x20
pxor xmm0, xmm0
movzx ecx, word [r15 + 0x1e0]
lea r12, [rsp + 0x47]
mov rax, r12
and ecx, 0xfffe
and r12, 0xfffffffffffffff8
shr rax, 3
movups xmmword [rax*8], xmm0
movups xmmword [rax*8 + 0xe], xmm0
mov rax, qword [r15 + 0x1e8]
add rcx, rax
cmp rax, rcx
jne 0x3a98db46d
nop word [rax + rax]
mov rdx, qword [rbx + 0x40]
movzx r13d, r8w
mov r8, r13
call sub.msvcrt.dll_memcpy
lea rcx, [rbp - 0x10]
mov r9, r14
lea r8, [r15 + 0x1f0]
add rax, r13
sub rax, qword [r15 + 0x1e8]
mov edx, 0x40010000
mov word [r15 + 0x1e0], ax
mov dword [rsp + 0x28], 0x204000
mov dword [rsp + 0x20], 7
call sub.ntdll.dll_NtOpenFile
test eax, eax
js 0x3a98db49d
lea rax, [r12 + 0x14]
mov qword [rbp + 0x58], rbx
lea r13, [r12 + 4]
mov rbx, rax
jmp 0x3a98db3fc
mov edx, 8
mov rcx, r13
call fcn.3a98cdbf0
lea rdx, str..WLB
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov dword [r12], 0x18
mov rcx, qword [rbp - 0x10]
mov rdx, r14
mov r9d, 0x1e
mov r8, r12
mov dword [rsp + 0x20], 0x28
call sub.ntdll.dll_NtSetInformationFile
cmp eax, 0xc000000d
sete dl
xor edi, 1
and dil, dl
jne 0x3a98db3d8
mov rbx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x10]
mov dword [rbp - 0x38], eax
call sub.ntdll.dll_NtClose
mov rdx, r15
mov rcx, rbx
call fcn.3a98daad0
mov r10d, dword [rbp - 0x38]
mov rsp, qword [rbp - 0x40]
test r10d, r10d
js 0x3a98db1d8
mov edi, 1
jmp 0x3a98db1a0
sub rcx, 2
cmp rax, rcx
je 0x3a98db370
cmp word [rcx - 2], 0x5c
jne 0x3a98db460
jmp 0x3a98db370
mov rcx, r15
call fcn.3a98dacc0
lea rdx, str.Cant_set_short_name_on___ls_
mov ecx, r13d
mov r8, rax
call fcn.3a98f4982
mov eax, 0x3c
jmp 0x3a98db122
mov rcx, r15
mov r13d, eax
call fcn.3a98dacc0
lea rdx, [0x3a99732d8]
mov ecx, r13d
mov r8, rax
call fcn.3a98f4953
mov rdx, r15
mov rcx, rbx
call fcn.3a98daad0
mov rsp, qword [rbp - 0x40]
jmp 0x3a98db1db