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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41df0e
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4251d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._____DIAS_data_folders___
lea ecx, [ebp - 0x4c]
call fcn.00406560
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004077c0
mov ecx, dword [0x436668]
sub ecx, dword [0x436664]
sar ecx, 5
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
jne 0x403bd6
mov eax, dword [0x436664]
mov dword [ebp - 0xd4], eax
push 0x436658
mov ecx, dword [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.0040a220
lea ecx, [ebp - 0xd0]
call fcn.0040a280
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xdc], ecx
push 0
push 0
mov ecx, dword [ebp - 0xdc]
call fcn.004077c0
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xd8]
add eax, 4
push eax
mov ecx, dword [ebp - 0xdc]
call fcn.00407220
mov dword [ebp - 4], 1
mov ecx, dword [0x436664]
mov dword [ebp - 0xe0], ecx
push 0x436658
mov edx, dword [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0040a220
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov ecx, 0x436658
call fcn.00406e20
cmp dword [ebp - 0x30], 1
jne 0x403bac
lea edx, [ebp - 0x2c]
push edx
push str.__del_dir_:
lea eax, [ebp - 0x80]
push eax
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.00401580
add esp, 4
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.004077c0
cmp dword [ebp - 0x14], 0x10
jb 0x403af1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1a4], eax
jmp 0x403afa
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x403b10
jmp 0x403baa
cmp dword [ebp - 0x14], 0x10
jb 0x403b21
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1a8], eax
jmp 0x403b2a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403b74
push str.____not_exist
lea ecx, [ebp - 0x9c]
call fcn.00406560
mov byte [ebp - 4], 3
lea eax, [ebp - 0x9c]
push eax
call fcn.00401580
add esp, 4
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.004077c0
jmp 0x403baa
push str.____not_empty._skipped_deletion.
lea ecx, [ebp - 0xb8]
call fcn.00406560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00401580
add esp, 4
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.004077c0
jmp 0x403bbe
cmp dword [ebp - 0x30], 2
jne 0x403bbe
lea edx, [ebp - 0x2c]
push edx
call fcn.00405040
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004077c0
jmp 0x4039ae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411116
mov esp, ebp
pop ebp
ret