Function at 0x10074b18
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x100a6b34]
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.10075c3c
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x10074ee6
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 0x10074e93
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 0x10074e82
push 0x28
lea eax, [esp + 0x44]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x10074e82
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 0x10074e71
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 0x10074d01
cmp word [eax], cx
je 0x10074d01
push 0x3a
pop ecx
cmp word [eax + 2], cx
jne 0x10074d01
call fcn.10075823
test eax, eax
je 0x10074d01
cmp dword [esp + 0x90], 1
jbe 0x10074d01
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 0x10074d5b
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 [0x100a73dc]
mov ecx, esi
call dword [0x100a83d4]
call esi
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x10074cfd
push dword [esp + 0x10]
push edi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x10074cee
lea eax, [edi + 4]
mov dword [esp + 0x20], 0x7ffc
push eax
lea eax, [esp + 0x24]
push eax
push esi
mov esi, dword [0x100a73e0]
mov ecx, esi
call dword [0x100a83d4]
call esi
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10074cf6
jmp 0x10074cb2
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 0x10074d74
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 0x10074d74
cmp eax, 0xc0000003
jne 0x10074d50
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x10074d7c
push 0x10006e08
push 0x3000000
push 0x100a7310
call fcn.10074ff5
add esp, 0xc
jmp 0x10074d01
mov dword [esp + 0x28], 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 0
je 0x10074e56
xor edx, edx
mov ecx, edi
call fcn.10075c3c
test byte [esp + 0x34], 4
mov edi, eax
jne 0x10074dd3
push dword [esp + 0x24]
push 0x10006e78
push 0x4000000
push 0x100a7310
call fcn.10074ff5
push edi
push 0x10006ed0
push 0x4000000
push 0x100a7310
call fcn.10074ff5
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 0x10074e3f
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 0x10074e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x10006f38
push 0x3000000
push 0x100a7310
call fcn.10074ff5
add esp, 0x14
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10074e56
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10074e58
xor edi, edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10074ed5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10074ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x10006fb8
jmp 0x10074ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x10007040
jmp 0x10074ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10074ebc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10074ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x100070b8
jmp 0x10074ec3
push ebx
push esi
push 0x10007118
push 0x3000000
push 0x100a7310
call fcn.10074ff5
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.1002bcc0
mov esp, ebp
pop ebp
ret