Function at 0x476640
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 0x4ca3c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x519100]
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 ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x476691
xor al, al
jmp 0x476936
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x476954
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4766ab
mov eax, dword [edi]
push 2
push 0x508e18
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2a0]
call fcn.0040cb50
cmp dword [ebp - 0x28c], 7
lea ecx, [ebp - 0x288]
lea eax, [ebp - 0x2a0]
cmova eax, dword [ebp - 0x2a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 0
call fcn.00423780
cmp esi, 0xffffffff
je 0x47689f
nop word [eax + eax]
mov ecx, 0x500dac
lea eax, [ebp - 0x25c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x476746
test dx, dx
je 0x476742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x476746
add eax, 4
add ecx, 4
test dx, dx
jne 0x476720
xor eax, eax
jmp 0x47674b
sbb eax, eax
or eax, 1
test eax, eax
je 0x476882
mov eax, 0x508e20
lea ecx, [ebp - 0x25c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x476786
test dx, dx
je 0x476782
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x476786
add ecx, 4
add eax, 4
test dx, dx
jne 0x476760
xor eax, eax
jmp 0x47678b
sbb eax, eax
or eax, 1
test eax, eax
je 0x476882
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x18], ax
cmp ecx, 0x7ffffffe
je 0x476954
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4767b5
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2b8]
call fcn.0040cb50
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4767e0
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040ba30
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2b8]
call fcn.00423780
mov eax, dword [ebp - 0x288]
test al, 0x10
je 0x47686e
test eax, 0x400
jne 0x476876
push 1
push 0
mov dl, 1
lea ecx, [ebp - 0x34]
call fcn.00476640
add esp, 8
jmp 0x476876
lea ecx, [ebp - 0x34]
call fcn.00476e80
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00423780
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476710
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4768a9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476918
test al, 0x10
je 0x476918
xor esi, esi
nop dword [eax + eax]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4768ca
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4768f5
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x4768ed
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4768ff
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x476918
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 1
jl 0x4768c0
cmp dword [edi + 0x14], 7
jbe 0x476920
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476934
test al, 0x10
jne 0x47668a
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.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004237f0
int3