Function at 0x466010
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
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 0x4cf20d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x505034]
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
xor eax, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
cmp dword [edi + 0x10], eax
jne 0x46606d
xor al, al
jmp 0x46645e
push 0x4ed9f0
mov edx, edi
lea ecx, [ebp - 0x2a0]
call fcn.00414ad0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x46608a
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x4660e4
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4660da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46647c
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp esi, 0xffffffff
je 0x4663da
nop dword [eax]
mov ecx, 0x4e7ea4
lea eax, [ebp - 0x254]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466126
test dx, dx
je 0x466122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466126
add eax, 4
add ecx, 4
test dx, dx
jne 0x466100
xor eax, eax
jmp 0x46612b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4663bd
mov ecx, 0x4eca28
lea eax, [ebp - 0x254]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x466166
test dx, dx
je 0x466162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x466166
add eax, 4
add ecx, 4
test dx, dx
jne 0x466140
xor eax, eax
jmp 0x46616b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4663bd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
xor eax, eax
mov dword [ebp - 0x290], 0
mov word [ebp - 0x2a0], ax
mov eax, dword [ebp - 0x284]
or eax, 1
mov dword [ebp - 0x28c], 7
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], eax
mov eax, dword [edi + 0x10]
inc eax
push eax
call fcn.00414c10
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4661c3
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x2a0]
push eax
call fcn.00414dc0
push 0x5c
lea ecx, [ebp - 0x2a0]
call fcn.00417aa0
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4661f0
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00414dc0
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x284]
or eax, 2
and eax, 0xfffffffe
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28c]
cmp edx, 8
jb 0x46629a
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46647c
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [ebp - 0x290], 0
test byte [ebp - 0x280], 0x10
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
je 0x46636d
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2a8], eax
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
mov word [ebp - 0x2b8], ax
mov dword [ebp - 0x2a4], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x288], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4662f1
sub ecx, dword [ebp - 0x288]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2b8]
call fcn.00415170
push 1
mov dl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b8]
call fcn.00466010
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x46637f
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46647c
push edx
push ecx
call fcn.00479e95
add esp, 8
jmp 0x46637f
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dl, 1
cmovae ecx, dword [ebp - 0x2c]
call fcn.00466950
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4663bd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4663b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46647c
push edx
push ecx
call fcn.00479e95
add esp, 8
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4660f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4663e4
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x466444
test al, 0x10
je 0x466444
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x466400
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x466421
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46642b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46643e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x46644c
mov edi, dword [edi]
push edi
call esi
cmp eax, 0xffffffff
je 0x46645c
test al, 0x10
jne 0x466066
mov al, 1
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.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049b19a
int3