Function at 0x417751
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test byte [esi + 8], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
jne 0x417988
test byte [esi + 0xc], 1
lea eax, [esi + 0x14]
push eax
je 0x41779c
call fcn.00417dad
jmp 0x4177a2
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4177b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x4177da
cmp dword [esp + 0x10], 0xffffffff
jne 0x4177eb
test edi, edi
je 0x417a0c
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebx, eax
test ebx, ebx
jne 0x41778b
jmp 0x417a0c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [esp + 0x10], 0xffffffff
je 0x417a0c
push str.wb3f
push 0x180
lea eax, [esi + 0x21c]
push 0x8301
push eax
mov dword [esp + 0x1c], 5
call fcn.00493d4e
add esp, 0xc
push eax
call fcn.004a1148
pop ecx
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x41797b
and dword [esp + 0x1c], 0
lea edi, [esi + 0x14]
test byte [esi + 0xc], 1
je 0x417842
push 1
push 0x80100000
push edi
call fcn.00417fbf
jmp 0x41785b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41786c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0x1c], 0
jne 0x41789a
cmp ebx, 0xffffffff
jne 0x4178a9
cmp dword [esp + 0x14], 0
je 0x41796a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41782d
jmp 0x41796a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp ebx, 0xffffffff
je 0x41796a
push str.ZwQueryVolumeInformationFile
push dword [0x4ec788]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
push 0x114
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x30]
push ecx
push ebx
call eax
test eax, eax
jne 0x4178e0
test dword [esp + 0x50], 0x80000
je 0x4178e0
mov al, 1
jmp 0x4178e2
xor al, al
movzx eax, al
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
sete al
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00418038
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41795e
push 0x15
push 0x24
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
lea edi, [esi + 0x404]
call dword [0x4ec79c]
test eax, eax
je 0x41792b
xor eax, eax
mov word [edi], ax
jmp 0x41794e
mov eax, dword [esp + 0x2c]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x30], cx
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.0048a010
add esp, 0xc
or dword [esi + 0xc], 2
mov eax, dword [esp + 0x10]
or dword [esi + 8], 1
and dword [esp + 0xc], 0
mov dword [esi + 0x10], eax
cmp ebx, 0xffffffff
je 0x41796a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call fcn.004a0ed5
cmp dword [esp + 0x10], 0
pop ecx
je 0x417988
lea eax, [esi + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esi + 8], 2
jne 0x417a0c
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jne 0x417a0c
cmp dword [esp + 0x24], ebx
je 0x4179a3
mov eax, 0x1779
jmp 0x417a10
mov dword [esp + 0xc], 0x15e
test byte [esi + 0xc], 1
lea edi, [esi + 0x14]
push 0x80
push edi
je 0x4179ca
call fcn.00417e5a
push edi
call fcn.00417f0f
movzx edi, al
jmp 0x4179d9
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test ebx, ebx
jne 0x4179f9
test edi, edi
jne 0x417a03
cmp dword [esp + 0x14], edi
je 0x417a0c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebx, eax
test ebx, ebx
jne 0x4179ab
jmp 0x417a0c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
je 0x417a0c
or dword [esi + 8], 2
and dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004876e8
mov esp, ebp
pop ebp
ret 4