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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x98
cmp eax, 7
push ebx
push ebp
push esi
push edi
jae 0x10014c89
cmp eax, 3
je 0x10014c89
mov ebp, dword [esp + 0xb4]
xor esi, esi
cmp ebp, esi
je 0x10014c89
mov edi, dword [esp + 0xb0]
cmp edi, esi
je 0x10014c89
cmp byte [edi], 0
je 0x10014c89
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.10017da0
add esp, 0xc
test eax, eax
je 0x10014c89
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.10017e40
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x10014c89
push edi
call fcn.10012080
add esp, 4
test eax, eax
je 0x10014b27
push esi
push 0x10000080
push 3
push esi
push 1
push 0x80000000
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014c5d
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014a94
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10014a9c
mov dword [esp + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
jne 0x10014b08
cmp dword [esp + 0x18], 0x4d4c4150
jne 0x10014add
cmp dword [esp + 0xac], 4
jne 0x10014c5d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10014b37
push esi
push edi
mov ecx, ebx
call fcn.10007e00
test eax, eax
je 0x10014c5d
cmp word [ebx + 0x6a8], si
jne 0x10014b37
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x10014c5d
jmp 0x10014b37
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x1004c474]
test ecx, ecx
je 0x10014b37
jmp 0x10014b31
mov ecx, dword [0x1004c474]
cmp ecx, esi
je 0x10014b37
push ebx
call fcn.100104c0
mov ecx, dword [esp + 0xac]
push ebp
push ebx
push ecx
call fcn.10018140
xor edx, edx
mov edi, ebp
mov dx, word [ebp + 0x7e]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebx + 0x6a8], edx
lea edx, [ebx + 0x6c4]
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]
mov eax, dword [ebp + 0x84]
test eax, eax
jne 0x10014ba0
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, ebx
call fcn.10008ea0
test eax, eax
je 0x10014c5d
jmp 0x10014c55
push ebx
call fcn.10016e20
mov edx, dword [ebp + 0x84]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x14], eax
je 0x10014c5d
mov eax, dword [ebp + 0x80]
xor esi, esi
test eax, eax
jle 0x10014c15
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [esp + 0xac]
push eax
push ebx
call dword [ecx*4 + 0x10047e98]
mov edx, dword [ebp + 0x80]
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 + 0x80]
inc esi
add edi, 4
cmp esi, eax
jl 0x10014bd2
push ebx
call fcn.10016ea0
mov esi, dword [esp + 0xc0]
add esp, 4
test esi, esi
je 0x10014c42
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.10007500
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x10014c29
mov edx, dword [esp + 0xb0]
mov ecx, ebx
push edx
call fcn.10008ea0
test eax, eax
je 0x10014c5d
mov dword [esp + 0x10], 1
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10014c7a
mov ecx, dword [ebp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret