Function at 0x52f480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60aec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
je 0x52f62a
mov eax, dword [0x6d159c]
cmp eax, ebx
jne 0x52f4d2
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x6d159c], eax
je 0x52f62a
cmp dword [0x6d1648], ebx
jne 0x52f4f0
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6d1648], eax
mov eax, dword [0x6d159c]
mov ecx, dword [0x6d164c]
cmp ecx, ebx
jne 0x52f50e
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x6d164c], ecx
cmp dword [0x6d1648], ebx
je 0x52f62a
cmp ecx, ebx
je 0x52f62a
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov ecx, str._s.tmp
mov byte [ebp - 4], 1
test ecx, ecx
je 0x52f5f8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00402060
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.tmp
lea ecx, [ebp - 0x38]
call fcn.00401fd0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402050
push eax
call fcn.005c7292
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005dfcbc
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x20], edi
je 0x52f5db
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00402050
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00402050
push esi
push eax
mov eax, dword [ebp - 0x20]
push ebx
push eax
call fcn.005c7222
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005c7292
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x20]
xor ebx, ebx
cmp eax, ebx
jne 0x52f5ff
lea eax, [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0020000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x52f63b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push ebx
push 4
push 1
push esi
call dword [0x6d1648]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x52f661
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x52f61e
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x60000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x52f61e
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push ebx
push ebx
push 4
push 1
push esi
call dword [0x6d164c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x52f61e