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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba288
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4f2008]
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
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x40]
movlpd qword [ebp - 0x90], xmm0
call fcn.00402693
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402bb0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x58]
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
movlpd qword [ebp - 0x60], xmm0
call fcn.00401bd5
mov byte [ebp - 4], 2
push 4
mov dword [ebp - 0x94], 0
call fcn.00495cb6
add esp, 4
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
push 0x4dbe80
lea ecx, [ebp - 0x28]
call fcn.0040d510
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00418a80
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov esi, dword [ebp - 0x94]
test bl, bl
je 0x40ce33
lea ecx, [ebp - 0x80]
call fcn.004187f0
test al, al
jne 0x40ccda
mov eax, dword [ebp - 0x60]
and eax, 0x10
or eax, 0
je 0x40cc63
mov al, 1
jmp 0x40cc65
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
je 0x40cca4
call fcn.00402802
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.0040cb30
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
jmp 0x40ccf2
call fcn.00402802
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.00418ff0
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x8c], eax
mov edi, edx
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
jmp 0x40ccf2
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], ebx
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00418860
test al, al
je 0x40ce3f
mov edi, dword [ebp - 0x60]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x40cd16
mov al, 1
jmp 0x40cd18
xor al, al
test al, al
je 0x40cd71
lea ecx, [ebp - 0x58]
call fcn.00402620
test al, al
jne 0x40cd71
lea ecx, [ebp - 0x58]
call fcn.00401970
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x40cd3a
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x40cd71
lea ecx, [ebp - 0x58]
call fcn.00402630
cmp eax, 1
je 0x40ce12
cmp dword [ebx + 0x14], 8
jb 0x40cd59
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x40cd71
lea ecx, [ebp - 0x58]
call fcn.00402630
cmp eax, 2
je 0x40ce12
or edi, 0
je 0x40cd7a
mov al, 1
jmp 0x40cd7c
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x58]
push eax
je 0x40cdcd
lea ecx, [ebp - 0xac]
call fcn.00402802
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.0040cb30
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x84]
add ebx, eax
mov dword [ebp - 0x8c], ebx
adc edi, edx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.0040192c
jmp 0x40ce1e
lea ecx, [ebp - 0x28]
call fcn.00402802
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.00418ff0
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x84]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x8c], ebx
adc edi, edx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
jmp 0x40ce1e
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x8c]
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00418860
test al, al
jne 0x40cd05
jmp 0x40ce3f
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40ce57
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40ce57
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40cfc5
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00419c90
test al, al
je 0x40cea0
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40cfb9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
lea ecx, [ebp - 0x40]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x84], eax
cmp eax, 0xffffffff
jne 0x40cf0f
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00419c90
test al, al
je 0x40cef6
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
cmp dword [ebp - 0x84], 0xffffffff
je 0x40cfcb
push 0
lea ecx, [ebp - 0x40]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40cf5c
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00419c90
test al, al
je 0x40cf50
push 0
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
lea ecx, [ebp - 0x40]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40cfc5
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00419c90
test al, al
je 0x40cf9d
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40cfb9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x40]
call fcn.00418ea0
jmp 0x40cfcb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040192c
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40cfe7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40cfe7
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.00495ce6
add esp, 8
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040192c
mov eax, ebx
mov edx, edi
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.00495ca5
mov esp, ebp
pop ebp
ret