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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x44f4e8]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x28]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401aa6
mov eax, esi
push 0x10
push eax
call fcn.0040d09e
pop ecx
pop ecx
lea eax, [esp + 0x60]
call fcn.0040d29c
lea esi, [esp + 0x20]
call fcn.0040d9ea
lea eax, [esp + 0x44]
push 0x443df4
push eax
lea eax, [esp + 0x30]
call fcn.00401fb4
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x64]
mov ecx, eax
call fcn.0040da1a
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x4c]
mov byte [esp + 0x27], al
call fcn.00401452
cmp byte [esp + 0x1f], bl
je 0x40d687
lea esi, [esp + 0x60]
call fcn.0040d38d
test al, al
jne 0x40d675
mov eax, esi
call fcn.0040d37a
test al, al
mov eax, esi
je 0x40d5d8
call fcn.0040d376
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe6
push eax
call fcn.0040d50e
jmp 0x40d5fa
call fcn.0040d376
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe6
lea eax, [esp + 0x4c]
push eax
call fcn.0040d509
movzx eax, al
cdq
add esp, 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d66a
lea esi, [esp + 0x60]
call fcn.0040d38d
test al, al
jne 0x40d675
mov eax, esi
call fcn.0040d37a
test al, al
mov eax, esi
je 0x40d63d
call fcn.0040d376
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe6
push eax
call fcn.0040d50e
jmp 0x40d65f
call fcn.0040d376
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe6
lea eax, [esp + 0x4c]
push eax
call fcn.0040d509
movzx eax, al
cdq
add esp, 0xc
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push edi
lea esi, [esp + 0x4c]
call fcn.00401452
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.0040da87
test al, al
jne 0x40d607
lea eax, [esp + 0x20]
call fcn.0040dad8
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x40d69f
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call esi
test eax, eax
jne 0x40d6fc
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.0040d09e
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d6c9
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40d716
push ebx
push ebx
lea eax, [esp + 0x30]
call fcn.0040db99
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d6f5
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
je 0x40d706
add dword [esp + 0x10], edi
adc dword [esp + 0x14], ebx
jmp 0x40d716
push ebx
push dword [esp + 0x28]
lea eax, [esp + 0x30]
call fcn.0040db99
pop ecx
pop ecx
lea edi, [esp + 0x20]
call fcn.0040da02
lea eax, [esp + 0x60]
call fcn.0040d2ca
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.00401452
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004327eb
mov esp, ebp
pop ebp
ret