Function at 0x407260
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4509c8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1b8], edi
xor al, al
mov dword [ebp - 0x1ac], 0
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x1a1], al
call fcn.004090c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 4
push str..
cmp eax, 4
jb 0x407302
cmp edx, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ecx + 4]
cmovae esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041b280
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x407319
mov byte [ebp - 0x1a8], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1a8]
push 4
call fcn.0040b490
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x1a0]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x1b4], esi
cmp esi, 0xffffffff
je 0x4076b1
test byte [ebp - 0x1a0], 0x14
jne 0x407692
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x2c]
mov edx, edi
push 0x459a2c
mov byte [eax], 0
call fcn.0040a590
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1a8], ecx
lea edi, [ebp - 0x174]
mov byte [ebp - 4], 1
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x407390
mov esi, dword [ecx + 0x14]
sub edi, edx
mov edx, dword [ecx + 0x10]
mov eax, esi
sub eax, edx
cmp edi, eax
ja 0x4073d6
lea eax, [edx + edi]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x4073b6
mov eax, dword [ecx]
lea esi, [eax + edx]
push edi
lea eax, [ebp - 0x174]
push eax
push esi
call fcn.0041b280
mov eax, dword [ebp - 0x1a8]
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4073f1
push edi
lea eax, [ebp - 0x174]
mov byte [ebp - 0x1b0], 0
push eax
push dword [ebp - 0x1b0]
push edi
call fcn.0040b490
movups xmm0, xmmword [eax]
or dword [ebp - 0x1ac], 1
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x5c]
push eax
movq qword [ebp - 0x4c], xmm0
call fcn.00408fa0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x40745a
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407450
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770c
push edx
push ecx
call fcn.004120fb
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x407492
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770c
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4074c0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x80
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x2c]
mov edx, str.__del_file:
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401ca0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x407517
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40750d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770c
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
je 0x4075e1
cmp eax, 0x21
jne 0x407676
mov ecx, dword [0x45ff4c]
nop dword [eax + eax]
cmp ecx, 0x1f
jae 0x4075e1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
mov edx, str.__del_file:
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401ca0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4075bb
mov eax, dword [ebp - 0x44]
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x4075b1
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x40770c
push edx
push eax
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
call edi
mov ecx, dword [0x45ff4c]
inc ecx
mov dword [0x45ff4c], ecx
cmp eax, 0x21
je 0x407550
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407603
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00409910
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00407720
test al, al
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
sete al
mov byte [ebp - 0x1a1], al
cmp edx, 0x10
jb 0x40766b
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40765b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770c
push edx
push ecx
call fcn.004120fb
mov al, byte [ebp - 0x1a1]
add esp, 8
test al, al
jne 0x4076b1
mov byte [ebp - 0x1a1], 1
mov esi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, dword [ebp - 0x1b8]
jmp 0x4076a0
lea eax, [ebp - 0x1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407343
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4076b8
mov byte [ebp - 0x1a1], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4076e8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4076de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770c
push edx
push ecx
call fcn.004120fb
add esp, 8
mov al, byte [ebp - 0x1a1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041c6cd
int3