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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6140
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x50e008]
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 - 0x44]
movlpd qword [ebp - 0x98], xmm0
call fcn.00402770
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.0040a060
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x60]
movlpd qword [ebp - 0x88], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
movlpd qword [ebp - 0x68], xmm0
call fcn.00402750
mov byte [ebp - 4], 2
push 4
mov dword [ebp - 0x14], 0
call fcn.004a101b
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
push 0x4ed164
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00408bf0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00413f10
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
mov esi, dword [ebp - 0x14]
test bl, bl
je 0x408268
lea ecx, [ebp - 0x88]
call fcn.00413be0
test al, al
jne 0x408109
mov eax, dword [ebp - 0x68]
and eax, 0x10
or eax, 0
je 0x408092
mov al, 1
jmp 0x408094
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
je 0x4080d3
call fcn.00408ca0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.00407f60
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
jmp 0x408121
call fcn.00408ca0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.004147f0
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x94], eax
mov edi, edx
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
jmp 0x408121
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x94], ebx
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00413c50
test al, al
je 0x408274
mov edi, dword [ebp - 0x68]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x408148
mov al, 1
jmp 0x40814a
xor al, al
test al, al
je 0x4081a3
lea ecx, [ebp - 0x60]
call fcn.00402650
test al, al
jne 0x4081a3
lea ecx, [ebp - 0x60]
call fcn.00402850
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x40816c
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x4081a3
lea ecx, [ebp - 0x60]
call fcn.00402860
cmp eax, 1
je 0x408244
cmp dword [ebx + 0x14], 8
jb 0x40818b
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x4081a3
lea ecx, [ebp - 0x60]
call fcn.00402860
cmp eax, 2
je 0x408244
or edi, 0
je 0x4081ac
mov al, 1
jmp 0x4081ae
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
je 0x4081ff
lea ecx, [ebp - 0xb0]
call fcn.00408ca0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.00407f60
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
add ebx, eax
mov dword [ebp - 0x94], ebx
adc edi, edx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00402290
jmp 0x408250
lea ecx, [ebp - 0x2c]
call fcn.00408ca0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.004147f0
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x94], ebx
adc edi, edx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
jmp 0x408250
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x94]
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00413c50
test al, al
jne 0x408137
jmp 0x408274
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40828c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40828c
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4083b3
lea ecx, [ebp - 0x2c]
call fcn.00402750
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00414cb0
test al, al
je 0x4082d5
lea ecx, [ebp - 0x2c]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4083a7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
lea ecx, [ebp - 0x44]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x408340
lea ecx, [ebp - 0x2c]
call fcn.00402750
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00414cb0
test al, al
je 0x40832b
lea ecx, [ebp - 0x2c]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
cmp dword [ebp - 0x8c], 0xffffffff
je 0x4083b9
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.00414420
lea ecx, [ebp - 0x44]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4083b3
lea ecx, [ebp - 0x2c]
call fcn.00402750
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00414cb0
test al, al
je 0x40838b
lea ecx, [ebp - 0x2c]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4083a7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call fcn.00414420
jmp 0x4083b9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00402290
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4083d5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4083d5
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004a12e5
add esp, 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00402290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret