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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450698
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1a
push str._____DIAS_data_folders___
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404d06
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404cfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
push edx
push ecx
call fcn.004120fb
add esp, 8
mov ecx, dword [0x45e964]
cmp ecx, dword [0x45e968]
je 0x404f53
mov eax, dword [ecx]
mov dword [ebp - 0x44], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x40]
call fcn.004090c0
mov dword [ebp - 4], 1
mov edi, dword [0x45e964]
mov ebx, dword [0x45e968]
lea esi, [edi + 0x1c]
cmp esi, ebx
je 0x404d63
mov eax, dword [esi]
lea ecx, [edi + 4]
mov dword [edi], eax
lea eax, [esi + 4]
push eax
call fcn.00408fa0
add esi, 0x1c
lea edi, [edi + 0x1c]
cmp esi, ebx
jne 0x404d43
mov ebx, dword [0x45e968]
mov ecx, dword [ebx - 4]
cmp ecx, 0x10
jb 0x404d97
mov eax, dword [ebx - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x404d8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
mov eax, edx
push ecx
push eax
call fcn.004120fb
add esp, 8
mov dword [ebx - 8], 0
mov dword [ebx - 4], 0xf
mov byte [ebx - 0x18], 0
sub dword [0x45e968], 0x1c
mov eax, dword [ebp - 0x44]
cmp eax, 1
jne 0x404efd
lea eax, [ebp - 0x40]
mov edx, str.__del_dir_:
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401ca0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404e13
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404f0a
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0xffffffff
jne 0x404eaf
push 0xd
push str.____not_exist
call fcn.00409910
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401ca0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404f0a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404ea3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
push edx
push ecx
call fcn.004120fb
add esp, 8
jmp 0x404f0a
push 0x21
push str.____not_empty._skipped_deletion.
call fcn.00409910
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401ca0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404f0a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404ef1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
push edx
push ecx
call fcn.004120fb
add esp, 8
jmp 0x404f0a
cmp eax, 2
jne 0x404f0a
lea ecx, [ebp - 0x40]
call fcn.00406e20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x404f41
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6f
push edx
push ecx
call fcn.004120fb
add esp, 8
mov ecx, dword [0x45e964]
cmp ecx, dword [0x45e968]
jne 0x404d18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
int3