Function at 0x48c7d0
Capabilities:
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x502054]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
xor esi, esi
mov dword [esp + 0x28], ebx
push edi
test byte [ebx + 8], 1
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], ecx
jne 0x48cb88
test byte [ebx + 0xc], 1
lea eax, [ebx + 0x14]
push eax
je 0x48c821
call fcn.0048d500
jmp 0x48c827
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x48c83e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
test esi, esi
jne 0x48c873
cmp eax, 0xffffffff
jne 0x48c880
test edi, edi
je 0x48c858
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, eax
test esi, esi
jne 0x48c810
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [esp + 0x1c], 0xffffffff
je 0x48c858
push 0
lea ecx, [esp + 0x54]
mov esi, 5
push ecx
push 0x180
push 0x40
lea eax, [ebx + 0x21c]
mov dword [esp + 0x1c], esi
push 0x8301
push eax
call fcn.004b5745
mov ecx, dword [esp + 0x68]
or edx, 0xffffffff
test eax, eax
push str.wb3f
cmovne ecx, edx
push ecx
call fcn.004503db
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
je 0x48cb77
xor edi, edi
mov dword [esp + 0x14], edi
nop dword [eax]
nop dword [eax + eax]
test byte [ebx + 0xc], 1
lea eax, [ebx + 0x14]
je 0x48c974
push eax
lea eax, [esp + 0x60]
push eax
call dword [0x514ca0]
push 0
push 0
push 0x4020
push 1
push 1
push 0x80
lea eax, [esp + 0x74]
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x58], eax
lea eax, [esp + 0x7c]
push 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
push 0x80100000
lea eax, [esp + 0x7c]
mov dword [esp + 0x6c], 0x40
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [0x514ca4]
test eax, eax
jne 0x48c961
mov esi, dword [esp + 0x54]
jmp 0x48c98f
push eax
call dword [0x514c98]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x48c994
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48c99e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
test edi, edi
jne 0x48c9cd
cmp esi, 0xffffffff
jne 0x48c9dc
mov edi, dword [esp + 0x28]
test edi, edi
je 0x48cb63
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
jne 0x48c8e0
jmp 0x48cb63
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp esi, 0xffffffff
je 0x48cb63
push str.ZwQueryVolumeInformationFile
push dword [0x514eb0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
push 0x114
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
call eax
test eax, eax
jne 0x48ca1f
test dword [esp + 0x90], 0x80000
je 0x48ca1f
mov dword [esp + 0x20], 1
jmp 0x48ca25
xor eax, eax
mov dword [esp + 0x20], eax
push 0x10000
push 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x48cafb
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x58]
push ecx
push eax
push 0
lea eax, [esp + 0x30]
push eax
push 0x10000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x48cad5
push ecx
mov edx, edi
mov ecx, edi
call fcn.0048c560
add esp, 4
push dword [esp + 0x24]
push edi
push dword [esp + 0x20]
call fcn.0044ffae
add esp, 0xc
cmp dword [esp + 0x24], eax
jne 0x48cab7
cmp dword [esp + 0x14], 0
je 0x48cae3
mov eax, dword [esp + 0x30]
jmp 0x48ca60
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0xc], 0x1e
jmp 0x48cb57
test eax, eax
jne 0x48cae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0xc], 0
jne 0x48cb57
push 0x15
push 0x24
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
lea edi, [ebx + 0x404]
call dword [0x514c94]
test eax, eax
je 0x48cb21
xor eax, eax
mov word [edi], ax
jmp 0x48cb44
mov eax, dword [esp + 0x6c]
xor ecx, ecx
shr eax, 1
mov word [esp + eax*2 + 0x70], cx
lea eax, [esp + 0x70]
push dword [esp + 0x6c]
push eax
push edi
call fcn.004abd70
add esp, 0xc
or dword [ebx + 0xc], 2
mov eax, dword [esp + 0x1c]
or dword [ebx + 8], 1
mov dword [ebx + 0x10], eax
mov dword [esp + 0xc], 0
cmp esi, 0xffffffff
je 0x48cb63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call fcn.00450168
mov esi, dword [esp + 0x10]
add esp, 4
test esi, esi
je 0x48cb84
lea eax, [ebx + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20]
test byte [ebx + 8], 2
jne 0x48c858
test esi, esi
jne 0x48c858
test ecx, ecx
je 0x48cbba
mov eax, 0x1779
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
xor esi, esi
mov dword [esp + 0xc], 0x15e
mov dword [esp + 0x14], esi
lea edi, [ebx + 0x14]
nop dword [eax + eax]
test byte [ebx + 0xc], 1
push 0x80
push edi
je 0x48ccaa
call fcn.0048d620
push edi
lea eax, [esp + 0x60]
push eax
call dword [0x514ca0]
push 0
push 0
push 0x20
push 1
push 7
push 0x80
lea eax, [esp + 0x74]
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x58], eax
lea eax, [esp + 0x48]
push 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
push 0x110000
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], 0x40
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [0x514ca4]
test eax, eax
jne 0x48cc98
push 0xd
push 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 1
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [0x514c9c]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48cc8b
push esi
call dword [0x514c98]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test esi, esi
mov esi, dword [esp + 0x14]
sete bl
jmp 0x48ccb9
push eax
call dword [0x514c98]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x48ccb9
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test esi, esi
jne 0x48cceb
test ebx, ebx
jne 0x48ccf9
mov eax, dword [esp + 0x28]
test eax, eax
je 0x48c858
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x48c858
mov ebx, dword [esp + 0x2c]
jmp 0x48cbd0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test ebx, ebx
je 0x48c858
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
or dword [eax + 8], 2
xor eax, eax
pop ebx
xor ecx, esp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4