Function at 0x428870
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x60], 0
je 0x4288a1
cmp dword [edi + 0x6c], 0
je 0x4288a1
cmp dword [esi + 0x890], 0
je 0x4288a1
mov ebx, dword [esi + 0x8a4]
or ebx, 0x400e0000
jmp 0x4288a6
mov ebx, 0x40020000
test dword [edi + 0x30], 0x400
je 0x4288c6
mov eax, dword [esi + 0x6a0]
and eax, 0x4000
or eax, 0
jne 0x4288c6
mov eax, 1
jmp 0x4288c8
xor eax, eax
mov ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x7a0]
mov edx, ebx
shl ecx, 0x15
or eax, 0x100
or ecx, 0x2000000
mov dword [ebp - 0xc], 0
push eax
push ecx
push ecx
push 3
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x844]
push 7
call fcn.0045cff0
add esp, 0x18
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x428993
push 0
push dword [ebp - 0x10]
and ebx, 0xfff7ffff
push 3
push 0
push 7
push ebx
push dword [esi + 0x844]
call dword [sym.imp.KERNEL30.dll_CreateFileW]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
jne 0x428996
mov edx, dword [ebp - 8]
test edx, edx
jne 0x428951
mov eax, dword [esi + 0x6a0]
and eax, 0x20000000
or eax, edx
je 0x428c3c
mov ecx, dword [esi + 0x85c]
test edx, edx
mov eax, dword [esi + 0x844]
push 0
lea eax, [eax + ecx*2]
mov ecx, str.SetDirExtData
push eax
mov eax, str.SetDirExtData_reparse_
cmove eax, ecx
mov ecx, esi
push eax
call fcn.0041a620
mov eax, dword [esi + 0xb60]
add dword [eax + 0xd8], 1
adc dword [eax + 0xdc], 0
jmp 0x428c3c
mov ebx, dword [ebp + 8]
cmp dword [ebp - 8], 0
je 0x428ab8
cmp dword [edi + 0x68], 0
je 0x428ab8
cmp dword [edi + 0x74], 0
je 0x428ab8
push 0x4000
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0040e1d0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push 0
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 0
push 0
push 0x900a8
push ebx
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
test eax, eax
je 0x428b72
cmp dword [ebp - 8], 0
jbe 0x428b72
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 0x68]
mov eax, dword [edx]
mov dword [ebp - 8], eax
cmp eax, dword [ecx]
jne 0x428b2f
movzx ebx, word [edx + 4]
cmp bx, word [ecx + 4]
mov ebx, dword [ebp + 8]
jne 0x428b2f
mov ebx, dword [edi + 0x68]
mov ecx, eax
movzx eax, word [edx + 4]
add ebx, 8
shr ecx, 0x1b
add edx, 8
not ecx
and ecx, 0x10
add ecx, eax
sub ecx, 4
jb 0x428a61
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x428a66
add edx, 4
add ebx, 4
sub ecx, 4
jae 0x428a50
cmp ecx, 0xfffffffc
je 0x428aa3
mov al, byte [edx]
cmp al, byte [ebx]
jne 0x428b29
cmp ecx, 0xfffffffd
je 0x428aa3
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x428b29
cmp ecx, 0xfffffffe
je 0x428aa3
mov al, byte [edx + 2]
cmp al, byte [ebx + 2]
jne 0x428b29
cmp ecx, 0xffffffff
je 0x428aa3
mov al, byte [edx + 3]
cmp al, byte [ebx + 3]
jne 0x428b29
mov ebx, dword [ebp + 8]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 1
call fcn.00491111
add esp, 4
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x428bde
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x428bde
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
push edx
push 1
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL30.dll_BackupWrite]
test eax, eax
jne 0x428bc9
mov eax, dword [esi + 0x6a0]
and eax, 0x20000000
or eax, 0
je 0x428be5
mov ecx, dword [esi + 0x85c]
mov eax, dword [esi + 0x844]
push 0
lea eax, [eax + ecx*2]
mov ecx, esi
push eax
push str.BackupWrite_DIRACL_
call fcn.0041a620
jmp 0x428be5
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
shr eax, 0x1b
not eax
and eax, 0x10
or eax, 8
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00489a20
add esp, 0xc
xor eax, eax
mov word [ebp - 0x2c], ax
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push 0x900ac
push ebx
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
push dword [edi + 0x74]
mov edx, dword [edi + 0x68]
mov ecx, ebx
call fcn.0045c9e0
add esp, 4
test eax, eax
jg 0x428aa6
mov eax, dword [esi + 0xb60]
push 0
add dword [eax + 0xd8], 1
adc dword [eax + 0xdc], 0
mov ecx, dword [esi + 0x85c]
mov eax, dword [esi + 0x844]
lea eax, [eax + ecx*2]
mov ecx, esi
push eax
push str.WriteReparsePoint_dir_
call fcn.0041a620
push dword [ebp - 0x18]
call fcn.00491111
add esp, 4
jmp 0x428be5
lea eax, [ebp + 8]
push eax
push 1
push 1
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL30.dll_BackupWrite]
mov dword [ebp - 0xc], 1
mov byte [ebp + 0xb], 1
cmp ebx, 0xffffffff
je 0x428c3c
cmp dword [0x4e042c], 6
jb 0x428c1c
push ecx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00461f90
add esp, 8
test eax, eax
je 0x428c1c
mov eax, dword [edi + 0x30]
xor eax, dword [ebp - 0x14]
and eax, 0x3007
neg eax
sbb al, al
and byte [ebp + 0xb], al
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x18]
push eax
lea ecx, [edi + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL30.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL30.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x428c4b
push dword [edi + 0x30]
push dword [esi + 0x844]
call dword [sym.imp.KERNEL30.dll_SetFileAttributesW]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4