Function at 0x40e5d0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push 0x54
mov eax, 0x43d245
call fcn.004212a4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00419459
push 0x44413c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00405457
mov ebx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.0040dd75
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00403f19
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.0041514a
jmp 0x40e6f7
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e647
mov eax, dword [eax + 4]
jmp 0x40e64a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e6ef
test al, 0x10
jne 0x40e6ef
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0041514a
jmp 0x40e6b3
lea ecx, [ebp - 0x1c]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e686
mov esi, dword [eax + 4]
jmp 0x40e689
lea esi, [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e69c
mov eax, dword [eax + 4]
jmp 0x40e69f
add eax, 4
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x40e6ef
lea ecx, [ebp - 0x1c]
call fcn.00414503
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x24]
call fcn.0041514a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041464f
test al, al
je 0x40e673
lea ecx, [ebp - 0x14]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e6e5
mov eax, dword [eax + 4]
jmp 0x40e6e8
add eax, 4
push eax
call fcn.0040b15d
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00414503
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.0041514a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041464f
lea ecx, [ebp - 0x14]
test al, al
je 0x40e637
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
call fcn.0041514a
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.0041514a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041464f
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e7ae
lea ecx, [ebp - 0x14]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e75f
mov eax, dword [eax + 4]
jmp 0x40e762
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e78b
test al, 0x10
je 0x40e78b
lea ecx, [ebp - 0x14]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x40e785
mov eax, dword [eax + 4]
jmp 0x40e788
add eax, 4
push eax
call edi
lea ecx, [ebp - 0x14]
call fcn.00414503
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.0041514a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041464f
test al, al
je 0x40e74c
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x40e7bf
mov eax, dword [esi]
jmp 0x40e7c1
mov eax, esi
push eax
call edi
cmp dword [ebx + 0x18], 8
jb 0x40e7cc
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x44]
sete bl
call fcn.0041968a
push dword [ebp - 0x44]
call fcn.004205ee
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0041968a
push dword [ebp + 0xc]
call fcn.004205ee
pop ecx
mov al, bl
call fcn.0042137c
ret