Function at 0x6adb83b0
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
mov dword [ebp - 0x4c], edx
test ebx, ebx
jne 0x6adb83e0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov edi, ecx
movzx esi, word [eax + 0x26]
mov eax, 2
cmp si, 2
cmovae eax, esi
lea edx, [eax + 6]
add eax, 0x19
shr eax, 4
mov dword [ebp - 0x5c], edx
shl eax, 4
call fcn.6adf5970
sub esp, eax
lea eax, [esp + 0x27]
mov dword [esp + 8], edx
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 dword [ebx*8], esi
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 8], esi
xor esi, esi
add eax, 4
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [edi + 0x1a8]
mov dword [ebp - 0x58], eax
mov dword [esp + 0x10], 0x28
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], 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 0x6adb83cc
cmp eax, 0xc000019f
je 0x6adb84e0
cmp eax, 0xc0000035
je 0x6adb8610
mov eax, dword [edi + 0xc]
and eax, 0x4000
jne 0x6adb8797
mov ebx, dword [ebp - 0x4c]
cmp word [ebx + 0x26], 0
je 0x6adb84d0
add dword [edi + 0x8be8], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [edi + 0x8bec], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c]
cmp word [eax + 0x26], 0
je 0x6adb83cc
cmp byte [edi + 0x8c08], 0
jne 0x6adb84a3
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.6adb7bb0
test eax, eax
jne 0x6adb83ce
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 0x6adb85df
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 0x6adb845c
mov dword [ebp - 0x50], ecx
lea ebx, [ebp - 0x2e]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_enable_short_name_support_on__ls
mov dword [esp], eax
call fcn.6ae0df08
mov ecx, dword [ebp - 0x50]
jmp 0x6adb84a3
mov eax, dword [ebp - 0x4c]
movzx edx, word [eax + 0x26]
mov eax, esi
test dx, dx
sete bl
or bl, al
jne 0x6adb84a3
mov eax, 0x30
mov dword [ebp - 0x68], esp
call fcn.6adf5970
sub esp, eax
lea eax, [esp + 0x27]
and eax, 0xfffffff8
mov esi, eax
xor eax, eax
mov dword [esi + eax], 0
add eax, 4
cmp eax, 0x1c
jb 0x6adb8641
xor ecx, ecx
mov word [esi + eax], cx
movzx eax, word [edi + 0x188]
mov ecx, dword [edi + 0x18c]
and eax, 0xfffe
add eax, ecx
cmp ecx, eax
jne 0x6adb8677
jmp 0x6adb867e
sub eax, 2
cmp ecx, eax
je 0x6adb867e
cmp word [eax - 2], 0x5c
jne 0x6adb8670
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 8], edx
mov dword [ebp - 0x60], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x60]
add eax, edx
sub eax, dword [edi + 0x18c]
mov word [edi + 0x188], ax
mov dword [esp + 0x14], 0x204000
mov dword [esp + 0x10], 7
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], 0x40010000
mov dword [esp + 0xc], eax
lea eax, [edi + 0x190]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.ntdll.dll_NtOpenFile
sub esp, 0x18
test eax, eax
js 0x6adb87c2
lea edx, [esi + 4]
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
lea edx, [esi + 0x14]
mov dword [ebp - 0x64], edx
jmp 0x6adb872c
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.6adab6c0
mov dword [esp + 4], str..WLB
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov dword [esi], 0x18
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], 0x1e
mov dword [esp + 8], esi
mov dword [esp + 4], edi
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 0x6adb8700
mov dword [ebp - 0x60], 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.6adb7e40
mov ecx, dword [ebp - 0x60]
mov esp, dword [ebp - 0x68]
test ecx, ecx
js 0x6adb84a3
mov esi, 1
jmp 0x6adb845c
mov eax, edi
mov dword [ebp - 0x4c], ecx
call fcn.6adb7f70
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.6ae0df7d
mov eax, 0x3c
jmp 0x6adb83ce
mov dword [ebp - 0x50], eax
mov eax, edi
call fcn.6adb7f70
mov dword [esp + 4], 0x6ae20424
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x50]
mov dword [esp], ecx
mov dword [ebp - 0x50], ecx
call fcn.6ae0df56
mov eax, dword [ebp - 0x4c]
mov edx, edi
call fcn.6adb7e40
mov esp, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
jmp 0x6adb84a3