Function at 0x40d4da
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.00401aa5
mov eax, esi
push 0x10
push eax
call fcn.0040d063
pop ecx
pop ecx
lea eax, [esp + 0x60]
call fcn.0040d261
lea esi, [esp + 0x20]
call fcn.0040ea71
lea eax, [esp + 0x44]
push 0x443df4
push eax
lea eax, [esp + 0x30]
call fcn.00401fb3
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x64]
mov ecx, eax
call fcn.0040d9ce
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x4c]
mov byte [esp + 0x27], al
call fcn.00401451
cmp byte [esp + 0x1f], bl
je 0x40d653
lea esi, [esp + 0x60]
call fcn.0040d359
test al, al
jne 0x40d641
mov eax, esi
call fcn.0040d346
test al, al
mov eax, esi
je 0x40d5a4
call fcn.0040d342
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe5
push eax
call fcn.0040d4da
jmp 0x40d5c6
call fcn.0040d342
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe5
lea eax, [esp + 0x4c]
push eax
call fcn.0040d4d5
movzx eax, al
cdq
add esp, 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d636
lea esi, [esp + 0x60]
call fcn.0040d359
test al, al
jne 0x40d641
mov eax, esi
call fcn.0040d346
test al, al
mov eax, esi
je 0x40d609
call fcn.0040d342
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe5
push eax
call fcn.0040d4da
jmp 0x40d62b
call fcn.0040d342
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00401fe5
lea eax, [esp + 0x4c]
push eax
call fcn.0040d4d5
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.00401451
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.0040da3b
test al, al
jne 0x40d5d3
lea eax, [esp + 0x20]
call fcn.0040da8c
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x40d66b
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call esi
test eax, eax
jne 0x40d6c8
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.0040d063
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d695
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40d6e2
push ebx
push ebx
lea eax, [esp + 0x30]
call fcn.0040db4d
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d6c1
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
je 0x40d6d2
add dword [esp + 0x10], edi
adc dword [esp + 0x14], ebx
jmp 0x40d6e2
push ebx
push dword [esp + 0x28]
lea eax, [esp + 0x30]
call fcn.0040db4d
pop ecx
pop ecx
lea edi, [esp + 0x20]
call fcn.0040d9b6
lea eax, [esp + 0x60]
call fcn.0040d28f
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.00401451
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