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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x55300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x668], edx
push 0
push eax
mov edi, ecx
call fcn.004b62b0
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, edx
mov esi, 0x104
sub edi, eax
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x475f90
movzx eax, word [edi + edx]
test ax, ax
je 0x475f90
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x475f72
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475fa6
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jg 0x475fce
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482225
mov esp, ebp
pop ebp
ret
add eax, eax
movzx ecx, word [ebp + eax - 0x414]
cmp ecx, 0x5c
je 0x475fe2
cmp ecx, 0x2f
jne 0x475ff7
cmp eax, 0x208
jae 0x4761b0
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
xor eax, eax
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x414]
push eax
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046b850
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47618b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [eax]
test byte [ebp - 0x664], 0x10
lea eax, [ebp - 0x638]
je 0x476113
mov ecx, 0x52b0d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47608e
test dx, dx
je 0x47608a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47608e
add eax, 4
add ecx, 4
test dx, dx
jne 0x476068
xor eax, eax
jmp 0x476093
sbb eax, eax
or eax, 1
test eax, eax
je 0x476175
mov ecx, 0x531028
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4760cc
test dx, dx
je 0x4760c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4760cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4760a6
xor eax, eax
jmp 0x4760d1
sbb eax, eax
or eax, 1
test eax, eax
je 0x476175
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046b850
mov edx, dword [ebp - 0x668]
lea ecx, [ebp - 0x20c]
add esp, 0x14
call fcn.00475f30
jmp 0x476175
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046b850
mov eax, dword [ebp - 0x664]
add esp, 0x14
test al, 1
je 0x47615e
cmp dword [ebp - 0x668], 0
je 0x476175
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x476175
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476050
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00482225
mov esp, ebp
pop ebp
ret
call fcn.004823bb
int3