Function at 0x10014ff0
Capabilities:
Delete file
Read file on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1f8
cmp eax, 3
push ebx
push ebp
push esi
push edi
jne 0x100152fe
mov ebp, dword [esp + 0x214]
xor edi, edi
cmp ebp, edi
je 0x100152fe
mov esi, dword [esp + 0x210]
cmp esi, edi
je 0x100152fe
cmp byte [esi], 0
je 0x100152fe
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
push 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.10017da0
add esp, 0xc
test eax, eax
je 0x100152fe
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10017e40
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x100152fe
push esi
call fcn.10012080
add esp, 4
test eax, eax
je 0x1001515a
push 0
push 0x10000080
mov edi, 1
push 3
push 0
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100152d2
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x27]
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100150c9
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100150cb
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
jne 0x1001512e
mov eax, dword [esp + 0x210]
push edi
push eax
mov ecx, ebx
call fcn.10007e00
test eax, eax
je 0x100152d2
cmp word [ebx + 0x6a8], di
je 0x100152d2
mov esi, dword [esp + 0x210]
push ebp
push ebx
push 3
call fcn.100181e0
mov eax, dword [ebp + 0x1e4]
add esp, 0xc
test eax, eax
jne 0x1001516c
push esi
mov ecx, ebx
call fcn.10008ea0
test eax, eax
je 0x100152d2
jmp 0x100152ca
mov esi, dword [esp + 0x210]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x1004c474]
test ecx, ecx
je 0x100150fc
push ebx
call fcn.100104c0
jmp 0x100150fc
mov ecx, dword [0x1004c474]
cmp ecx, edi
je 0x10015103
push ebx
call fcn.100104c0
jmp 0x10015103
push ebx
call fcn.10016e20
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x6c4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x10], eax
je 0x100152d2
mov eax, dword [ebp]
xor esi, esi
test eax, eax
jle 0x100151f6
mov edi, dword [esp + 0x10]
push edi
push ebx
call fcn.1001cf30
mov edx, dword [ebp]
add esp, 8
lea ecx, [esp + 0x18]
sub edx, esi
push 4
push ecx
push 0x10046e8c
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.10008a20
mov eax, dword [ebp]
inc esi
add edi, 0x130
cmp esi, eax
jl 0x100151c1
push ebx
call fcn.10016ea0
or ecx, 0xffffffff
lea edi, [ebp + 0x84]
xor eax, eax
lea edx, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0xa4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0xc4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0xe4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
push ecx
push ebx
push 3
call fcn.10017810
mov edx, dword [esp + 0x220]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.10008ea0
test eax, eax
je 0x100152d2
mov dword [esp + 0x14], 1
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100152ef
mov ecx, dword [ebp + 0x1e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1f8
ret