Function at 0x10076b55
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x100a8ba4]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, edx
xor edx, edx
push ebx
push esi
push edi
mov dword [esp + 0x34], eax
mov ebx, edx
and al, 1
mov dword [esp + 0x28], edx
movzx edi, al
neg edi
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
sbb edi, edi
and edi, 0xfffffff9
add edi, 7
mov dword [esp + 0x2c], edi
call fcn.10077c79
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x10076f23
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push edi
push 0x10180
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x10076ed0
push 0x34
lea eax, [esp + 0x6c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [esp + 0x40]
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10076ebf
push 0x28
lea eax, [esp + 0x44]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x10076ebf
push 0x28
lea eax, [esp + 0x44]
mov dword [esp + 0x64], 0x2000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
je 0x10076eae
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov edi, ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0xf], 1
test eax, eax
je 0x10076d3e
cmp word [eax], cx
je 0x10076d3e
push 0x3a
pop ecx
cmp word [eax + 2], cx
jne 0x10076d3e
call fcn.10077860
test eax, eax
je 0x10076d3e
cmp dword [esp + 0x90], 1
jbe 0x10076d3e
push 0x10000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x10076d98
mov eax, dword [esp + 0x10]
push 0x3a
mov ax, word [eax]
mov word [edi], ax
pop eax
mov word [edi + 2], ax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x7ffc
push eax
xor eax, eax
push eax
push esi
mov esi, dword [0x100a945c]
mov ecx, esi
call dword [0x100aa3f8]
call esi
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x10076d3a
push dword [esp + 0x10]
push edi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x10076d2b
lea eax, [edi + 4]
mov dword [esp + 0x20], 0x7ffc
push eax
lea eax, [esp + 0x24]
push eax
push esi
mov esi, dword [0x100a9460]
mov ecx, esi
call dword [0x100aa3f8]
call esi
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10076d33
jmp 0x10076cef
mov dword [esp + 0x30], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
push 0xd
push 1
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [esp + 0x18], eax
test eax, eax
jns 0x10076db1
push 0x40
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x10076db1
cmp eax, 0xc0000003
jne 0x10076d8d
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x10076db9
push 0x10008c38
push 0x3000000
push 0x100a9380
call fcn.10077032
add esp, 0xc
jmp 0x10076d3e
mov dword [esp + 0x28], 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 0
je 0x10076e93
xor edx, edx
mov ecx, edi
call fcn.10077c79
test byte [esp + 0x34], 4
mov edi, eax
jne 0x10076e10
push dword [esp + 0x24]
push 0x10008ca8
push 0x4000000
push 0x100a9380
call fcn.10077032
push edi
push 0x10008d00
push 0x4000000
push 0x100a9380
call fcn.10077032
add esp, 0x20
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push dword [esp + 0x3c]
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x10076e7c
mov eax, dword [esp + 0x68]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x40]
push 0x28
push eax
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x10076e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x10008d68
push 0x3000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10076e93
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10076e95
xor edi, edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10076f12
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10076f12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x10008de8
jmp 0x10076f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x10008e70
jmp 0x10076f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10076ef9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10076f12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x10008ee8
jmp 0x10076f00
push ebx
push esi
push 0x10008f48
push 0x3000000
push 0x100a9380
call fcn.10077032
add esp, 0x14
push esi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002c750
mov esp, ebp
pop ebp
ret