Function at 0x280a6afa
Capabilities:
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
call sym.perl510.dll_Perl_get_context
mov esi, eax
call fcn.280a382c
test eax, eax
je 0x280a6bc7
push 2
pop ebx
push dword [ebp + 8]
mov edi, ebx
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x280a6b34
push 3
pop edi
push dword [ebp + 8]
mov eax, dword [esi + 0x88c]
push eax
call dword [eax + 0x24]
push eax
lea eax, [ebp - 0x318]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, dword [esi + 0x88c]
add esp, 0x10
push edi
push dword [ebp + 0xc]
push esi
call dword [esi + 0x24]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x280a6bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x280a6b93
je 0x280a6bb0
cmp eax, ebx
jb 0x280a6ba2
cmp eax, 3
jbe 0x280a6bb0
cmp eax, 0xf
je 0x280a6bb0
cmp eax, 0x12
jmp 0x280a6ba0
sub eax, 0x43
je 0x280a6bb0
sub eax, 0x5e
je 0x280a6bb0
sub eax, 0x2d
je 0x280a6bb0
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xd
jmp 0x280a6bb8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x280a6d5b
xor eax, eax
jmp 0x280a6d5b
push dword [ebp + 8]
mov eax, dword [esi + 0x88c]
xor ebx, ebx
push eax
call dword [eax + 0x24]
push eax
lea eax, [ebp - 0x318]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
mov esi, dword [esi + 0x88c]
push esi
call dword [esi + 0x24]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x20
lea eax, [ebp - 0x318]
push eax
call esi
or edi, 0xffffffff
cmp eax, edi
jne 0x280a6c27
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x280a6d59
lea eax, [ebp - 0x210]
push eax
call esi
mov esi, dword [sym.imp.MSVCRT.dll_rename]
cmp eax, edi
je 0x280a6d1c
test al, 0x10
jne 0x280a6d0e
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strlen
mov edi, eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp + edi - 0x108]
lea ecx, [ebp - 0x108]
add esp, 0xc
cmp eax, ecx
jbe 0x280a6cba
mov cl, byte [eax]
cmp cl, 0x2f
je 0x280a6c94
cmp cl, 0x5c
je 0x280a6c94
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x280a6c7b
jmp 0x280a6c97
and byte [eax], 0
lea ecx, [ebp - 0x108]
cmp eax, ecx
jbe 0x280a6cba
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x420]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov ebx, eax
pop ecx
jmp 0x280a6cbf
mov ebx, 0x280b4c98
lea eax, [ebp - 0x108]
push eax
push 0
push 0x280bf070
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x280a6ce9
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x280a6bb8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x280a6d1c
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xd
jmp 0x280a6d59
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
call esi
pop ecx
mov edi, eax
test ebx, ebx
pop ecx
je 0x280a6d59
test edi, edi
jne 0x280a6d47
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x280a6d59
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret