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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ed3c
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4921d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x278], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x284], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c6f7
mov eax, 1
jmp 0x40cae0
push 0x24c
lea ecx, [ebp - 0x260]
push 0
push ecx
mov dword [ebp - 0x264], 0
call fcn.0044f3f0
add esp, 0xc
lea edx, [ebp - 0x288]
push esi
push edx
mov ebx, 0x47c030
call fcn.004060a0
mov eax, dword [eax]
add esp, 8
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov dword [ebp - 0x27c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x40c772
xor eax, eax
jmp 0x40cae0
lea esi, [ebp - 0x238]
shr esi, 0x10
mov dword [ebp - 0x274], 1
mov dword [ebp - 0x280], esi
jmp 0x40c790
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x26c], edi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40c7db
lea ecx, [ebp - 0x238]
movzx esi, cx
push 0
push esi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40c80c
push esi
push eax
lea ecx, [ebp - 0x26c]
call fcn.00401870
jmp 0x40c806
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c7e4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x26c]
call fcn.00401b60
mov edi, dword [ebp - 0x26c]
mov dword [ebp - 4], 1
mov ecx, 0x47bc54
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c846
test dx, dx
je 0x40c842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c846
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c820
xor eax, eax
jmp 0x40c84b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40ca74
mov ecx, 0x47c038
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c886
test dx, dx
je 0x40c882
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c886
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c860
xor eax, eax
jmp 0x40c88b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40ca74
mov eax, dword [ebp - 0x278]
mov esi, dword [eax]
mov ebx, eax
cmp esi, dword [ebx + 4]
je 0x40c8d2
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40caba
push eax
push edi
call fcn.0044c94c
add esp, 8
test eax, eax
je 0x40ca74
add esi, 4
cmp esi, dword [ebx + 4]
jne 0x40c8a7
mov esi, dword [ebp - 0x284]
lea ecx, [ebp - 0x268]
push esi
push ecx
mov ebx, 0x47bd18
call fcn.004060a0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ebx, [ebp - 0x268]
call fcn.0040b850
test byte [ebp - 0x264], 1
je 0x40c91c
mov edx, dword [ebp - 0x268]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x264], 0x10
je 0x40c947
lea eax, [ebp - 0x268]
push eax
call fcn.0040c2f0
add esp, 4
test eax, eax
jne 0x40ca4e
mov dword [ebp - 0x274], eax
jmp 0x40ca4e
mov esi, dword [esi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x40c96f
cmp eax, dword [esi - 0x10]
jne 0x40c96f
lea ebx, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40c9a7
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cac4
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0044b9cb
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x270], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x40c9cf
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x270]
call fcn.00401990
mov esi, dword [ebp - 0x270]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0044ddfb
add esp, 8
test eax, eax
js 0x40cac9
cmp eax, dword [esi - 8]
jg 0x40cac9
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ca2e
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x268]
push edx
call fcn.0040d330
add esp, 8
test eax, eax
jne 0x40ca2e
mov dword [ebp - 0x274], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x264]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40cad3
mov esi, dword [ebp - 0x280]
jmp 0x40c790
push 0x80004005
call fcn.00401b10
call fcn.00401a20
push 0x80070057
call fcn.00401b10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b96b
mov esp, ebp
pop ebp
ret