Function at 0x40e0d0
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 0x4bc04b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x4f84d8]
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 edi, ecx
cmp dword [edi + 0x14], 8
jb 0x40e10a
mov eax, dword [edi]
jmp 0x40e10c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e13c
cmp dword [edi + 0x14], 8
jb 0x40e11f
mov edi, dword [edi]
push edi
push str.path___s__not_exist__delete_dir_failed_
push 0x101
push str.deleteDirectory
call fcn.0042c780
add esp, 0x10
jmp 0x40e3d1
cmp dword [edi + 0x14], 8
jb 0x40e146
mov eax, dword [edi]
jmp 0x40e148
mov eax, edi
push eax
push str.deleteDirectory__s
push 0x104
push str.deleteDirectory
call fcn.0042c780
push str..
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.00410410
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2dc], ebx
cmp ebx, 0xffffffff
je 0x40e3ae
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x2ac], ax
jne 0x40e1d1
xor ecx, ecx
jmp 0x40e1ef
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x28]
call fcn.004063e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, 1
mov ebx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp ebx, esi
cmovb esi, ebx
test esi, esi
je 0x40e235
mov edx, 0x4db80c
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40e245
add ecx, 2
add edx, 2
dec esi
jne 0x40e224
xor eax, eax
test eax, eax
jne 0x40e25d
cmp ebx, 1
jae 0x40e253
or eax, 0xffffffff
jmp 0x40e25b
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40e237
xor eax, eax
cmp ebx, 1
setne al
test eax, eax
sete al
test al, al
jne 0x40e376
push 2
push 0x4db810
push ebx
push ecx
lea ecx, [ebp - 0x28]
call fcn.004056f0
test eax, eax
je 0x40e376
test byte [ebp - 0x2d8], 0x10
lea ecx, [ebp - 0x40]
push 0x4db7dc
mov edx, edi
je 0x40e30c
call fcn.00410410
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00410500
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 8
jb 0x40e2c6
push dword [ebp - 0x40]
call fcn.00486360
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040e0d0
cmp dword [ebp - 0x5c], 8
jb 0x40e2f3
push dword [ebp - 0x70]
call fcn.00486360
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
jmp 0x40e37a
call fcn.00410410
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00410500
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x40e33a
push dword [ebp - 0x40]
call fcn.00486360
add esp, 4
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x44], 8
jb 0x40e35d
push dword [ebp - 0x58]
call fcn.00486360
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], al
jmp 0x40e37a
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x40e38b
push dword [ebp - 0x28]
call fcn.00486360
add esp, 4
mov ebx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e1b0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x40e3b6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x74], 8
jb 0x40e3d1
push dword [ebp - 0x88]
call fcn.00486360
add esp, 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.00486203
mov esp, ebp
pop ebp
ret