Function at 0x48cfb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef90
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x254], eax
mov eax, dword [edi + 8]
and eax, 3
cmp al, 3
jne 0x48d562
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 0
mov edx, 0x104
test eax, eax
je 0x48d152
mov esi, eax
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x48d040
movzx eax, word [ecx + esi]
test ax, ax
je 0x48d040
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x48d022
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x48d059
lea eax, [ecx + 0x57]
jmp 0x48d564
lea eax, [edi + 0x14]
test eax, eax
je 0x48d148
mov ecx, 0x104
nop dword [eax]
cmp word [eax], 0
je 0x48d07e
add eax, 2
sub ecx, 1
jne 0x48d070
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x48d148
test esi, esi
je 0x48d148
lea eax, [esi - 1]
test eax, eax
je 0x48d148
nop word [eax + eax]
lea esi, [edi + 0x14]
cmp word [esi + eax*2], 0x5c
lea esi, [esi + eax*2]
je 0x48d0cc
sub eax, 1
jne 0x48d0b0
mov eax, 0x54f
jmp 0x48d564
mov ecx, edx
lea eax, [ebp - 0x218]
cmp word [eax], 0
je 0x48d0e2
add eax, 2
sub ecx, 1
jne 0x48d0d4
mov eax, edx
mov edi, ecx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x240], edi
mov edi, dword [ebp - 0x238]
test ecx, ecx
je 0x48d148
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x218]
lea ecx, [ecx + eax*2]
sub edx, eax
je 0x48d137
mov eax, SysReAllocString
sub esi, ecx
test eax, eax
je 0x48d131
movzx edi, word [ecx + esi]
test di, di
je 0x48d131
mov word [ecx], di
dec eax
add ecx, 2
sub edx, 1
jne 0x48d118
mov edi, dword [ebp - 0x238]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
jne 0x48d18b
mov eax, 0x54f
jmp 0x48d564
lea esi, [ebp - 0x218]
mov eax, edi
sub eax, esi
lea esi, [eax + 0x14]
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x48d17e
movzx eax, word [ecx + esi]
test ax, ax
je 0x48d17e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x48d160
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
cmp byte [ebp + 8], 0
mov esi, dword [ebp + 0x10]
je 0x48d1ca
test esi, esi
jne 0x48d1ac
test byte [edi + 0xc], 1
je 0x48d1ac
lea eax, [ebp - 0x218]
push eax
call fcn.0048d5d0
jmp 0x48d1b9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48d1ca
mov esi, 0x50
mov eax, esi
jmp 0x48d564
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d1f1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00463250
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
call fcn.0048ce00
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x48d26d
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48d263
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d581
push ecx
push edx
call fcn.004aa25b
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
test esi, esi
jne 0x48d33a
test byte [edi + 0xc], 1
je 0x48d33a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [0x511d00]
push esi
push esi
push 0x4020
push 5
push 1
push 0x80
lea eax, [ebp - 0x274]
mov dword [ebp - 0x26c], 0x18
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x27c]
push esi
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x268], esi
push eax
push 0x1f01ff
lea eax, [ebp - 0x248]
mov dword [ebp - 0x260], 0x40
push eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], esi
call dword [0x511d04]
test eax, eax
jne 0x48d31f
mov eax, dword [ebp - 0x248]
jmp 0x48d359
push eax
call dword [0x511cf8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48d564
push 0
push 0x2000080
push 2
push 0
push 1
push 0x1f01ff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x48d371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48d564
push 0
lea eax, [ebp - 0x24c]
push eax
push 0
push 0x40
lea eax, [edi + 0x21c]
push 0x8000
push eax
call fcn.004b5895
mov ecx, dword [ebp - 0x24c]
or edx, 0xffffffff
test eax, eax
push 0x4eb4ac
cmovne ecx, edx
push ecx
call fcn.004503db
add esp, 0x20
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x48d3cb
push dword [ebp - 0x234]
lea esi, [eax + 5]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x48d564
push 0x10000
push 8
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x48d3fb
lea esi, [eax + 0xe]
jmp 0x48d544
xor esi, esi
nop dword [eax]
push 0x10000
push eax
push dword [ebp - 0x240]
call fcn.00450428
add esp, 0xc
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
je 0x48d529
mov edx, dword [ebp - 0x23c]
mov ecx, edx
push eax
call fcn.0048c650
add esp, 4
lea eax, [ebp - 0x250]
push eax
push 1
push 0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_BackupWrite]
test eax, eax
je 0x48d476
cmp dword [ebp - 0x238], 0x10000
jb 0x48d47e
mov eax, dword [ebp - 0x23c]
jmp 0x48d400
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x23c]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48d544
test byte [edi + 0xc], 2
je 0x48d4b5
lea eax, [edi + 0x404]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov esi, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
nop dword [eax + eax]
cmp dword [ebp + 0x10], 0
jne 0x48d4dd
test byte [edi + 0xc], 1
je 0x48d4dd
push dword [edi + 0x10]
lea eax, [ebp - 0x218]
push eax
call fcn.0048d6f0
jmp 0x48d4ed
push dword [edi + 0x10]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x244], 0
jne 0x48d51f
test eax, eax
jne 0x48d515
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x48d525
push eax
call esi
mov dword [ebp - 0x244], eax
test eax, eax
jne 0x48d4c0
xor esi, esi
jmp 0x48d544
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x48d544
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor esi, esi
jmp 0x48d544
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push dword [ebp - 0x23c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 0x1e
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x240]
call fcn.00450168
add esp, 4
mov eax, esi
jmp 0x48d564
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b35c4
int3