Function at 0x6adbd3c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ecx + 0x108]
mov dword [ebp - 0x50], eax
test ebx, ebx
jne 0x6adbd3e8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, word [edx + 0x26]
mov eax, 2
mov edi, ecx
mov dword [ebp - 0x4c], edx
cmp esi, eax
cmovae eax, esi
lea ecx, [eax + 6]
add eax, 0x19
shr eax, 4
mov dword [ebp - 0x58], ecx
shl eax, 4
call fcn.6adc70f0
sub esp, eax
lea eax, [esp + 0x27]
mov dword [esp + 8], ecx
mov ebx, eax
and eax, 0xfffffff8
mov dword [esp + 4], 0
mov dword [ebp - 0x54], eax
shr ebx, 3
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
mov dword [ebx*8], esi
mov edx, dword [edx + 0x20]
add eax, 4
mov dword [esp + 8], esi
lea esi, [edi + 0x1a8]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov byte [ebp - 0x5c], 0
mov dword [esp + 0x10], 0x28
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sub.ntdll.dll_NtSetInformationFile
sub esp, 0x14
mov ecx, eax
test eax, eax
jns 0x6adbd3d9
cmp eax, 0xc000019f
je 0x6adbd4d8
cmp eax, 0xc0000035
je 0x6adbd600
test byte [edi + 0xd], 0x40
jne 0x6adbd796
mov eax, dword [ebp - 0x4c]
cmp word [eax + 0x26], 0
je 0x6adbd4c8
add dword [edi + 0x8be8], 1
jmp 0x6adbd3d9
add dword [edi + 0x8bec], 1
jmp 0x6adbd3d9
mov eax, dword [ebp - 0x4c]
cmp word [eax + 0x26], 0
je 0x6adbd3d9
cmp byte [edi + 0x8c08], 0
jne 0x6adbd4a5
lea ebx, [ebp - 0x36]
mov dword [ebp - 0x60], ecx
mov byte [edi + 0x8c08], 1
mov dword [esp + 4], ebx
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.6adbcb10
test eax, eax
jne 0x6adbd3db
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x60]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
je 0x6adbd5d7
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], 0x90238
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
mov dword [ebp - 0x60], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
sub esp, 4
test edx, edx
jne 0x6adbd461
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2e]
mov dword [esp + 4], str.Failed_to_enable_short_name_support_on__ls
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.6add8098
mov ecx, dword [ebp - 0x50]
jmp 0x6adbd4a5
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax + 0x26]
test ax, ax
mov word [ebp - 0x60], ax
sete al
or al, byte [ebp - 0x5c]
mov byte [ebp - 0x64], al
jne 0x6adbd4a5
mov eax, 0x30
mov dword [ebp - 0x68], esp
call fcn.6adc70f0
xor edx, edx
sub esp, eax
lea eax, [esp + 0x27]
and eax, 0xfffffff8
mov ebx, eax
xor eax, eax
mov dword [ebx + eax], edx
add eax, 4
cmp eax, 0x1c
jb 0x6adbd639
xor edx, edx
mov word [ebx + eax], dx
movzx eax, word [edi + 0x188]
mov edx, dword [edi + 0x18c]
and eax, 0xfffe
add eax, edx
cmp edx, eax
jne 0x6adbd66f
jmp 0x6adbd676
sub eax, 2
cmp edx, eax
je 0x6adbd676
cmp word [eax - 2], 0x5c
jne 0x6adbd668
mov ecx, dword [ebp - 0x4c]
movzx edx, word [ebp - 0x60]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 8], edx
mov dword [ebp - 0x5c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x5c]
add eax, edx
sub eax, dword [edi + 0x18c]
mov word [edi + 0x188], ax
lea eax, [edi + 0x190]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x14], 0x204000
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x40010000
mov dword [esp], eax
call sub.ntdll.dll_NtOpenFile
sub esp, 0x18
test eax, eax
js 0x6adbd7c1
lea eax, [ebx + 4]
mov dword [ebp - 0x6c], edi
mov edi, ebx
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 0x14]
movzx ebx, byte [ebp - 0x64]
mov dword [ebp - 0x60], eax
jmp 0x6adbd72c
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.6adaf170
mov dword [esp + 4], str..WLB
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov dword [edi], 0x18
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], 0x1e
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ntdll.dll_NtSetInformationFile
sub esp, 0x14
cmp eax, 0xc000000d
sete dl
xor ebx, 1
and bl, dl
jne 0x6adbd700
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x6c]
mov dword [esp], eax
call sub.ntdll.dll_NtClose
mov eax, dword [ebp - 0x4c]
mov edx, edi
sub esp, 4
call fcn.6adbcda0
mov ecx, dword [ebp - 0x5c]
mov esp, dword [ebp - 0x68]
test ecx, ecx
js 0x6adbd4a5
mov byte [ebp - 0x5c], 1
jmp 0x6adbd461
mov eax, edi
mov dword [ebp - 0x4c], ecx
call fcn.6adbcf80
mov dword [esp + 4], str.Cant_set_short_name_on___ls_
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x4c]
mov dword [esp], ecx
call fcn.6add8103
mov eax, 0x3c
jmp 0x6adbd3db
mov dword [ebp - 0x50], eax
mov eax, edi
call fcn.6adbcf80
mov dword [esp + 4], 0x6adeaa8c
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x50]
mov dword [esp], ecx
mov dword [ebp - 0x50], ecx
call fcn.6add80de
mov eax, dword [ebp - 0x4c]
mov edx, edi
call fcn.6adbcda0
mov esp, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
jmp 0x6adbd4a5