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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f020
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x495014]
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 - 0x2e8], xmm0
call fcn.00403ae0
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.00419d40
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.00403ac0
mov byte [ebp - 4], 2
push 4
mov dword [ebp - 0x14], 0
call fcn.00436e50
add esp, 4
mov dword [ebp - 0x2dc], 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 edx, [ebp - 0x44]
push 0x483a80
lea ecx, [ebp - 0x2c]
call fcn.0040c8b0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004205d0
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
mov esi, dword [ebp - 0x14]
test bl, bl
je 0x417021
mov edi, dword [ebp - 0x68]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x416e3f
mov al, 1
jmp 0x416e41
xor al, al
test al, al
je 0x416e92
lea ecx, [ebp - 0x60]
call fcn.00403bd0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x416e92
mov ebx, dword [eax + 0x14]
mov edx, eax
cmp ebx, 8
jb 0x416e60
mov edx, dword [eax]
cmp word [edx], 0x2e
jne 0x416e92
cmp ecx, 1
je 0x416e7e
cmp ebx, 8
jb 0x416e72
mov eax, dword [eax]
cmp word [eax + 2], 0x2e
jne 0x416e92
cmp ecx, 2
jne 0x416e92
mov eax, dword [ebp - 0x2e8]
mov ebx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
jmp 0x416eec
or edi, 0
je 0x416e9b
mov al, 1
jmp 0x416e9d
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
je 0x416ec0
call fcn.004178c0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.00416d20
jmp 0x416ed8
call fcn.004178c0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00420910
movzx eax, al
cdq
mov ebx, edx
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
mov edi, dword [ebp - 0x2dc]
cmp dword [esi], 0xffffffff
je 0x41702d
push 0x250
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.0044de20
add esp, 0xc
lea eax, [ebp - 0x2d8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41702d
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.00420410
mov edi, dword [ebp - 0x68]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x416f4c
mov al, 1
jmp 0x416f4e
xor al, al
test al, al
je 0x416f92
lea ecx, [ebp - 0x60]
call fcn.00403bd0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x416f92
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x416f6b
mov edx, dword [eax]
cmp word [edx], 0x2e
jne 0x416f92
cmp ecx, 1
je 0x416eec
cmp dword [eax + 0x14], 8
jb 0x416f82
mov eax, dword [eax]
cmp word [eax + 2], 0x2e
jne 0x416f92
cmp ecx, 2
je 0x416eec
or edi, 0
je 0x416f9b
mov al, 1
jmp 0x416f9d
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
je 0x416fe5
lea ecx, [ebp - 0x300]
call fcn.004178c0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.00416d20
mov edi, dword [ebp - 0x2dc]
add edi, eax
mov dword [ebp - 0x2dc], edi
adc ebx, edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x300]
call fcn.004039d0
jmp 0x416ef2
lea ecx, [ebp - 0x2c]
call fcn.004178c0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.00420910
mov edi, dword [ebp - 0x2dc]
movzx eax, al
cdq
add edi, eax
mov dword [ebp - 0x2dc], edi
adc ebx, edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
jmp 0x416ef2
mov ebx, dword [ebp - 0x2e4]
mov edi, dword [ebp - 0x2e8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x417045
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x417045
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41716c
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00420b40
test al, al
je 0x41708e
lea ecx, [ebp - 0x2c]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
lea ecx, [ebp - 0x44]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x4170f9
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00420b40
test al, al
je 0x4170e4
lea ecx, [ebp - 0x2c]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
cmp dword [ebp - 0x2dc], 0xffffffff
je 0x417172
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.004207b0
lea ecx, [ebp - 0x44]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41716c
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00420b40
test al, al
je 0x417144
lea ecx, [ebp - 0x2c]
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
mov edx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x44]
call fcn.004207b0
jmp 0x417172
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039d0
add edi, 1
adc ebx, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41718e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41718e
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.00436e80
add esp, 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004039d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004039d0
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 - 0x10]
xor ecx, ebp
call fcn.00436e3f
mov esp, ebp
pop ebp
ret