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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c706
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
push eax
movlpd qword [ebp - 0xcc], xmm0
call fcn.004075c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push 0x10
push eax
call fcn.0040e030
add esp, 8
mov dword [ebp - 0x84], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x64]
movlpd qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movlpd qword [ebp - 0x6c], xmm0
call fcn.004075a0
mov byte [ebp - 4], 2
push 4
mov dword [ebp - 0x18], 0
call fcn.00477265
add esp, 4
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push 0x4b94ac
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040c1a0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b930
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
mov esi, dword [ebp - 0x18]
test bl, bl
je 0x40b663
lea ecx, [ebp - 0x8c]
call fcn.0041b5b0
test al, al
jne 0x40b09a
mov eax, dword [ebp - 0x6c]
and eax, 0x10
or eax, 0
je 0x40b023
mov al, 1
jmp 0x40b025
xor al, al
test al, al
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
je 0x40b066
call fcn.0040c250
add esp, 0xc
mov byte [ebp - 4], 6
push eax
call fcn.0040aee0
mov edi, eax
mov dword [ebp - 0xb8], edx
add esp, 4
mov dword [ebp - 0xb4], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
jmp 0x40b0b2
call fcn.0040c250
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.0041c260
movzx eax, al
cdq
mov edi, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
jmp 0x40b0b2
mov edx, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edi
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0041b670
test al, al
je 0x40b4e3
lea ecx, [ebp - 0x64]
call fcn.00407700
mov ebx, eax
mov edi, dword [ebp - 0x6c]
and edi, 0x10
mov ecx, edi
or ecx, 0
je 0x40b0e3
mov al, 1
jmp 0x40b0e5
xor al, al
test al, al
je 0x40b138
lea ecx, [ebp - 0x64]
call fcn.004073f0
test al, al
jne 0x40b138
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40b0ff
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x40b138
lea ecx, [ebp - 0x64]
call fcn.004077a0
cmp eax, 1
je 0x40b4c7
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40b120
mov eax, dword [ebx]
cmp word [eax + 2], 0x2e
jne 0x40b138
lea ecx, [ebp - 0x64]
call fcn.004077a0
cmp eax, 2
je 0x40b4c7
or edi, 0
je 0x40b141
mov al, 1
jmp 0x40b143
xor al, al
test al, al
je 0x40b304
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.004075a0
or dword [ebp - 0xb0], 1
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc0], eax
call fcn.004077a0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.004077a0
add edi, eax
lea ecx, [ebp - 0x30]
push edi
call fcn.0040c540
lea ecx, [ebp - 0x48]
call fcn.00407700
mov dword [ebp - 0xac], eax
cmp dword [eax + 0x14], 8
jb 0x40b19d
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xa8], eax
call fcn.00407700
mov edi, eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x40b222
cmp dword [edi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0xbc], ecx
mov dword [edi + 0x10], ecx
mov ecx, edi
mov dword [ebp - 0xa8], edi
jb 0x40b1e4
mov ecx, dword [edi]
mov dword [ebp - 0xa8], ecx
push eax
push dword [ebp - 0xac]
lea eax, [ecx + edx*2]
push eax
call fcn.00407ac0
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xac]
add esp, 0xc
mov dword [ebp - 0xac], 0
push eax
mov eax, dword [ebp - 0xa8]
lea eax, [eax + ecx*2]
push eax
call fcn.00407ab0
add esp, 8
jmp 0x40b23f
push eax
push dword [ebp - 0xac]
mov byte [ebp - 0xd4], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0xd4]
push eax
call fcn.00407ee0
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x40b249
mov edx, dword [ebx]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xa8]
cmp ecx, eax
ja 0x40b2b2
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0xa8]
lea esi, [eax + ecx]
mov dword [ebp - 0xa8], esi
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x18]
jb 0x40b27f
mov edi, dword [edi]
push ecx
push edx
lea eax, [edi + eax*2]
push eax
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0xbc], 0
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0xa8]
lea eax, [edi + eax*2]
push eax
call fcn.00407ab0
add esp, 8
jmp 0x40b2ca
push ecx
push edx
mov byte [ebp - 0xd8], 0
push dword [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00407ee0
push dword [ebp - 0xc0]
call fcn.0040aee0
mov edi, dword [ebp - 0xb4]
add esp, 4
add edi, eax
mov dword [ebp - 0xb4], edi
adc dword [ebp - 0xb8], edx
and dword [ebp - 0xb0], 0xfffffffe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
jmp 0x40b4cd
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa4]
call fcn.004075a0
or dword [ebp - 0xb0], 2
lea ecx, [ebp - 0x64]
call fcn.004077a0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.004077a0
add edi, eax
lea ecx, [ebp - 0xa4]
push edi
call fcn.0040c540
lea ecx, [ebp - 0x48]
call fcn.00407700
mov dword [ebp - 0xac], eax
cmp dword [eax + 0x14], 8
jb 0x40b356
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xc0], eax
call fcn.00407700
mov edi, eax
mov eax, dword [ebp - 0xc0]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x40b3de
cmp dword [edi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0xbc], ecx
mov dword [edi + 0x10], ecx
mov ecx, edi
mov dword [ebp - 0xa8], edi
jb 0x40b3a0
mov ecx, dword [edi]
mov dword [ebp - 0xa8], ecx
push eax
push dword [ebp - 0xac]
lea eax, [ecx + edx*2]
push eax
call fcn.00407ac0
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xc0]
add esp, 0xc
mov dword [ebp - 0xc0], 0
push eax
mov eax, dword [ebp - 0xa8]
lea eax, [eax + ecx*2]
push eax
call fcn.00407ab0
add esp, 8
jmp 0x40b3fe
push eax
push dword [ebp - 0xac]
mov byte [ebp - 0xc8], 0
lea ecx, [ebp - 0xa4]
push dword [ebp - 0xc8]
push eax
call fcn.00407ee0
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x40b408
mov edx, dword [ebx]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xa8]
cmp ecx, eax
ja 0x40b471
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0xa8]
lea esi, [eax + ecx]
mov dword [ebp - 0xbc], esi
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x18]
jb 0x40b43e
mov edi, dword [edi]
push ecx
push edx
lea eax, [edi + eax*2]
push eax
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0xc0], 0
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0xbc]
lea eax, [edi + eax*2]
push eax
call fcn.00407ab0
add esp, 8
jmp 0x40b48c
push ecx
push edx
mov byte [ebp - 0xd0], 0
push dword [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00407ee0
lea ecx, [ebp - 0xa4]
call fcn.0041c260
mov edi, dword [ebp - 0xb4]
movzx eax, al
cdq
add edi, eax
mov dword [ebp - 0xb4], edi
adc dword [ebp - 0xb8], edx
and dword [ebp - 0xb0], 0xfffffffd
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.004074c0
jmp 0x40b4cd
mov edi, dword [ebp - 0xb4]
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0041b670
test al, al
jne 0x40b0d2
mov ebx, dword [ebp - 0xb8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40b501
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40b501
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b680
lea ecx, [ebp - 0x30]
call fcn.004075a0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041ca30
test al, al
je 0x40b54a
lea ecx, [ebp - 0x30]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b674
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
lea ecx, [ebp - 0x48]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xac], eax
cmp eax, 0xffffffff
jne 0x40b5b9
lea ecx, [ebp - 0x30]
call fcn.004075a0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041ca30
test al, al
je 0x40b5a0
lea ecx, [ebp - 0x30]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
cmp dword [ebp - 0xac], 0xffffffff
je 0x40b686
push 0
lea ecx, [ebp - 0x48]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40b606
lea ecx, [ebp - 0x30]
call fcn.004075a0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041ca30
test al, al
je 0x40b5fa
push 0
lea ecx, [ebp - 0x30]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
lea ecx, [ebp - 0x48]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b680
lea ecx, [ebp - 0x30]
call fcn.004075a0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041ca30
test al, al
je 0x40b647
lea ecx, [ebp - 0x30]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b674
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
mov edx, dword [ebp - 0xac]
lea ecx, [ebp - 0x48]
call fcn.0041bf00
jmp 0x40b686
mov ebx, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xcc]
jmp 0x40b4e9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004074c0
add edi, 1
adc ebx, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40b6a2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40b6a2
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.0047752f
add esp, 8
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004074c0
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret