Function at 0x41e7a0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7c5e
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x523228]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x474], ebx
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41eafb
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00488730
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx]
push eax
call esi
push 0x4f54a0
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x41ea1a
test eax, eax
je 0x41ea1a
mov esi, eax
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x41e86a
test ax, ax
je 0x41e9f0
cmp ax, 0x2e
jne 0x41e87e
cmp word [ebp - 0x438], 0
je 0x41e9f0
mov eax, dword [ebx]
mov dword [ebp - 4], 3
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41e897
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41e8ab
call fcn.00402e90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x41eb21
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or edi, 1
mov dword [ebp - 0x47c], edi
lea esi, [eax + 0x10]
mov eax, dword [ebx]
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x480], eax
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
test ebx, ebx
js 0x41eb17
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x41e8fd
push ebx
lea ecx, [ebp - 0x478]
call fcn.00403c70
mov esi, dword [ebp - 0x478]
add edi, edi
push edi
push dword [ebp - 0x480]
push edi
push esi
call fcn.0041f7a0
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x41e929
call fcn.00492dad
mov dword [eax], 0x16
call fcn.00492c86
jmp 0x41e932
mov ax, word [0x4f459c]
mov word [ecx], ax
cmp ebx, dword [esi - 8]
jg 0x41eb17
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004140b0
add esp, 0xc
mov edi, dword [ebp - 0x47c]
and edi, 0xfffffffe
mov dword [ebp - 0x47c], edi
or ebx, 0xffffffff
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e98e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x41e9b4
lea eax, [ebp - 0x46c]
push eax
call fcn.0041e7a0
add esp, 4
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41e9c0
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x46c]
mov eax, ebx
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e9e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x470]
mov ebx, dword [ebp - 0x474]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e850
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41eafb
lea eax, [ebp - 0x484]
push eax
call fcn.00423510
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x480]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x41ea6e
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x41ea6e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x41ea6e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, bl
je 0x41eafb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x484]
push eax
call fcn.00423510
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x51c]
mov dword [ebp - 4], 1
call fcn.0040d990
mov esi, eax
push str.FindFirstFile_failed__error_code_
push esi
mov byte [ebp - 4], 2
call fcn.0040df50
add esp, 8
mov ecx, esi
push ebx
call fcn.0040dcb0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x51c]
call fcn.00405be0
mov esi, dword [ebp - 0x480]
test esi, esi
je 0x41eafb
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41eafb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41eafb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f043
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402bd0
push 0x80004005
call fcn.00402bd0
int3