Function at 0x40d52c
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.00401ad1
mov eax, esi
push 0x10
push eax
call fcn.0040d0b5
pop ecx
pop ecx
lea eax, [esp + 0x60]
call fcn.0040d2b3
lea esi, [esp + 0x20]
call fcn.0040eb23
lea eax, [esp + 0x44]
push 0x443df4
push eax
lea eax, [esp + 0x30]
call fcn.00401fdf
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x64]
mov ecx, eax
call fcn.0040da20
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x4c]
mov byte [esp + 0x27], al
call fcn.00401432
cmp byte [esp + 0x1f], bl
je 0x40d6a5
lea esi, [esp + 0x60]
call fcn.0040d3ab
test al, al
jne 0x40d693
mov eax, esi
call fcn.0040d398
test al, al
mov eax, esi
je 0x40d5f6
call fcn.0040d394
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00402011
push eax
call fcn.0040d52c
jmp 0x40d618
call fcn.0040d394
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00402011
lea eax, [esp + 0x4c]
push eax
call fcn.0040d527
movzx eax, al
cdq
add esp, 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d688
lea esi, [esp + 0x60]
call fcn.0040d3ab
test al, al
jne 0x40d693
mov eax, esi
call fcn.0040d398
test al, al
mov eax, esi
je 0x40d65b
call fcn.0040d394
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00402011
push eax
call fcn.0040d52c
jmp 0x40d67d
call fcn.0040d394
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
call fcn.00402011
lea eax, [esp + 0x4c]
push eax
call fcn.0040d527
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.00401432
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.0040da8d
test al, al
jne 0x40d625
lea eax, [esp + 0x20]
call fcn.0040dade
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x40d6bd
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call esi
test eax, eax
jne 0x40d71a
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.0040d0b5
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d6e7
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40d734
push ebx
push ebx
lea eax, [esp + 0x30]
call fcn.0040db9f
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
jae 0x40d713
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
je 0x40d724
add dword [esp + 0x10], edi
adc dword [esp + 0x14], ebx
jmp 0x40d734
push ebx
push dword [esp + 0x28]
lea eax, [esp + 0x30]
call fcn.0040db9f
pop ecx
pop ecx
lea edi, [esp + 0x20]
call fcn.0040da08
lea eax, [esp + 0x60]
call fcn.0040d2e1
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.00401432
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