Function at 0x10007b21
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3c4]
sub esp, 0x444
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x3c0], eax
mov eax, dword [ebp + 0x3cc]
push esi
push eax
mov esi, 0x104
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.100075c8
lea eax, [ebp + 0x1b4]
push eax
call fcn.100167d3
add esp, 0x10
mov dword [ebp - 0x5c], eax
push esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x10007b92
lea eax, [ebp + 0x1b4]
push eax
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.10016ac1
add esp, 0xc
test byte [0x10275d3c], 4
je 0x10007bf3
lea eax, [ebp + 0x1b4]
push 0
push eax
call fcn.1000792d
pop ecx
pop ecx
test eax, eax
jle 0x10007bcd
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:DecrementSharedCount__s_
push 3
call fcn.101d1209
add esp, 0xc
xor eax, eax
inc eax
jmp 0x10007ea0
jge 0x10007bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:DecrementSharedCount__s__err__d
push 1
call fcn.101d1209
add esp, 0x10
xor eax, eax
jmp 0x10007ea0
push 0x80
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10007c24
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x10007bc5
call esi
cmp eax, 3
je 0x10007bc5
call esi
cmp eax, 0x7b
je 0x10007bc5
push ebx
push edi
xor esi, esi
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.1000776e
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop ecx
pop ecx
push esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
cmp eax, esi
je 0x10007c66
push 0x27da
call fcn.10018d5b
add esp, 0xc
lea eax, [ebp + 0x1b4]
push eax
call ebx
jmp 0x10007cd7
push 0x27db
call fcn.10018d5b
add esp, 0xc
test byte [0x10275d3c], 0x20
lea eax, [ebp + 0x1b4]
je 0x10007cd0
push closesocket
push eax
call fcn.1001661b
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 + 0x1b6], cx
push ecx
lea eax, [ebp - 0x80]
push eax
call fcn.101d19d0
lea eax, [ebp + 0x1b4]
mov dword [ebp - 0x78], eax
mov eax, 0x414
mov word [ebp - 0x70], ax
add esp, 0x14
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 3
call edi
mov esi, eax
xor eax, eax
test esi, esi
sete al
jmp 0x10007cd7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x10007e75
test byte [0x10275d3c], 8
je 0x10007d65
and dword [ebp - 0x5c], eax
cmp dword [ebp - 0x58], 0
jne 0x10007e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x10007d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10007d65
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x60], 0
je 0x10007d2a
lea eax, [ebp + 0x1b4]
push eax
call ebx
jmp 0x10007d51
test byte [0x10275d3c], 0x20
je 0x10007d44
lea eax, [ebp - 0x80]
push eax
call edi
mov esi, eax
xor eax, eax
test esi, esi
sete al
jmp 0x10007d51
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0xa
mov dword [ebp - 0x58], eax
jl 0x10007cee
test eax, eax
jne 0x10007e75
test esi, esi
jne 0x10007d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10007e6c
cmp esi, 3
je 0x10007e6c
test byte [0x10275d3c], 0x10
mov edi, 0x91
je 0x10007dc9
cmp esi, edi
je 0x10007da9
cmp esi, 5
jne 0x10007dc9
cmp dword [ebp - 0x60], 0
je 0x10007dc9
call sym.AhnIEx.dll_AhnIEx_IsWinNT
test eax, eax
jne 0x10007dc9
push esi
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:Delete__s_isnotEmpty__d_
push 3
call fcn.101d1209
mov dword [ebp - 0x58], 1
jmp 0x10007e91
xor ebx, ebx
inc ebx
test byte [0x10275d3c], bl
je 0x10007e37
cmp esi, 0x20
je 0x10007de7
cmp esi, 5
je 0x10007de7
cmp esi, edi
je 0x10007de7
cmp esi, 0x10
jne 0x10007e37
lea eax, [ebp + 0x1b4]
push 0
push eax
call fcn.1000c929
pop ecx
pop ecx
test eax, eax
jne 0x10007e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov esi, eax
push esi
push 0x32810145
jmp 0x10007e5b
push esi
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:Delete__s__d____DeleteOnReboot
push 3
mov dword [ebp - 0x58], ebx
call fcn.101d1209
add esp, 0x10
test byte [0x10275d3c], 2
jne 0x10007e94
call sym.AhnIEx.dll_AhnIEx_SetReboot
jmp 0x10007e94
push esi
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:Delete__s__err_d
push ebx
call fcn.101d1209
add esp, 0x10
xor eax, eax
push eax
push esi
cmp dword [ebp - 0x60], eax
je 0x10007e65
push 0x32810148
call fcn.10019470
add esp, 0xc
jmp 0x10007e94
push 0x32810149
jmp 0x10007e5b
mov dword [ebp - 0x58], 1
jmp 0x10007e94
lea eax, [ebp + 0x1b4]
push eax
push str.AIL:Delete__s_ok
push 4
call fcn.101d1209
lea eax, [ebp - 0x54]
push eax
call fcn.1000c987
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x58]
pop edi
pop ebx
mov ecx, dword [ebp + 0x3c0]
xor ecx, ebp
pop esi
call fcn.101d14d7
add ebp, 0x3c4
leave
ret